eworldlz

    1. F2833x系列(F28335)DSP入门指导和使用心得 13/37818 DSP 与 ARM 处理器 2015-12-23
      很好 谢谢楼主
    2. BB Black入门基础之内核的编译 32/21240 DSP 与 ARM 处理器 2015-12-23
      很详细 谢谢楼主
    3. MSP430学习芯经(四)USCI 1/1900 微控制器 MCU 2015-12-23
      :)有用
    4. TMS320F28027中SCI-FIFO求助 13/6468 微控制器 MCU 2015-12-23
      他第一次是怎么进入中断的呢,一直没搞懂
    5. 关于scia_loopback_interrupt中断问题 2/3891 DSP 与 ARM 处理器 2015-12-23
      讨论讨论
    6. 关于scia_loopback_interrupt中断问题 2/3891 DSP 与 ARM 处理器 2015-12-23
      #include "DSP28x_Project.h"     // Device Headerfile and Examples Include File #define CPU_FREQ          150E6 #define LSPCLK_FREQ  CPU_FREQ/4 #define SCI_FREQ          100E3 #define SCI_PRD          (LSPCLK_FREQ/(SCI_FREQ*8))-1 // Prototype statements for functions found within this file. interrupt void sciaTxFifoIsr(void); interrupt void sciaRxFifoIsr(void); interrupt void scibTxFifoIsr(void); interrupt void scibRxFifoIsr(void); void scia_fifo_init(void); void scib_fifo_init(void); void error(void); // Global variables Uint16 sdataA[8];    // Send data for SCI-A Uint16 sdataB[8];    // Send data for SCI-B Uint16 rdataA[8];    // Received data for SCI-A Uint16 rdataB[8];    // Received data for SCI-A Uint16 rdata_pointA; // Used for checking the received data Uint16 rdata_pointB; void main(void) {    Uint16 i; // Step 1. Initialize System Control: // PLL, WatchDog, enable Peripheral Clocks // This example function is found in the DSP2833x_SysCtrl.c file.    InitSysCtrl(); // Step 2. Initalize GPIO: // This example function is found in the DSP2833x_Gpio.c file and // illustrates how to set the GPIO to it's default state. // InitGpio(); // Setup only the GP I/O only for SCI-A and SCI-B functionality // This function is found in DSP2833x_Sci.c    InitSciGpio(); // Step 3. Clear all interrupts and initialize PIE vector table: // Disable CPU interrupts    DINT; // Initialize PIE control registers to their default state. // The default state is all PIE interrupts disabled and flags // are cleared. // This function is found in the DSP2833x_PieCtrl.c file.    InitPieCtrl(); // Disable CPU interrupts and clear all CPU interrupt flags:    IER = 0x0000;    IFR = 0x0000; // Initialize the PIE vector table with pointers to the shell Interrupt // Service Routines (ISR). // This will populate the entire table, even if the interrupt // is not used in this example.  This is useful for debug purposes. // The shell ISR routines are found in DSP2833x_DefaultIsr.c. // This function is found in DSP2833x_PieVect.c.    InitPieVectTable(); // Interrupts that are used in this example are re-mapped to // ISR functions found within this file.    EALLOW;        // This is needed to write to EALLOW protected registers    PieVectTable.SCIRXINTA = &sciaRxFifoIsr;    PieVectTable.SCITXINTA = &sciaTxFifoIsr;    PieVectTable.SCIRXINTB = &scibRxFifoIsr;    PieVectTable.SCITXINTB = &scibTxFifoIsr;    EDIS;   // This is needed to disable write to EALLOW protected registers // Step 4. Initialize all the Device Peripherals: // This function is found in DSP2833x_InitPeripherals.c // InitPeripherals(); // Not required for this example    scia_fifo_init();  // Init SCI-A    scib_fifo_init();  // Init SCI-B // Step 5. User specific code, enable interrupts: // Init send data.  After each transmission this data // will be updated for the next transmission    for(i = 0; i
    7. 做DSP最应该懂得57个问题 27/7199 DSP 与 ARM 处理器 2015-12-23
      不:)错不错
    8. nemo1991 发表于 2015-4-3 10:32 是的啊。 要习惯看图!
      你好 我是初学 能讲讲这个是怎么进入中断的吗 看了框图还是不太懂 谢谢了

最近访客

< 1/1 >

统计信息

已有3人来访过

  • 芯积分:--
  • 好友:--
  • 主题:1
  • 回复:8

留言

你需要登录后才可以留言 登录 | 注册


现在还没有留言