⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.asm

📁 ADI 公司的DSP ADSP21369 EZ-KIT LITE开发板的全部源代码
💻 ASM
字号:
///////////////////////////////////////////////////////////////////////////////////////////////
//NAME:     main.asm                                                                         //
//DATE:     7/29/05                                                                          //
//PURPOSE:  ADSP-21369 EZ-KIT Test. Calls initialization routines then waits for interrupts  //
//                                                                                           //
//USAGE:    This file contains the main routine calls functions to set up the talkthrough    //
//          routine. It receives an input signal from the ADC via SPORT0A and outputs to     //
//          DAC's via SPORT1A, SPORT1B, SPORT2A, and SPORT2B.                                //
//                                                                                           //
///////////////////////////////////////////////////////////////////////////////////////////////

#include <def21369.h>

.section /pm seg_pmco;

.global _main;
.extern _initPLL;
.extern _initSDRAM;
.extern _initSRU;
.extern _initSPORT;
.extern _init1835viaSPI;


_main:
    call _initPLL;        // Initializes PLL for the correct core clock (CCLK) frequency

    call _initSDRAM;      // Initializes SDRAM for the correct SDRAM clock (SDCLK) frequency

    call _initSRU;        // Initializes the SRU & DAI/DPI pins

    call _initSPORT;      // Initializes the transmit and receive serial ports (SPORTS)

    call _init1835viaSPI; // Initializes the codec

    //-----------------------------------------------------------------
    // Enable interrupts (globally)
    BIT SET MODE1 IRPTEN;

    //----------------------------------------------------------------
    // Unmask the SPORT0 ISR
    LIRPTL = SP0IMSK;


_main.end:
    //----------------------------------------------------------------
    // Loop forever.  Work is driven by interrupts
    jump (pc,0);






⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -