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

📄 main.asm

📁 ADI 公司的DSP ADSP21369 EZ-KIT LITE开发板的全部源代码
💻 ASM
字号:
///////////////////////////////////////////////////////////////////////////////////////
//NAME:     UART Echo Back
//DATE:     7/29/05
//PURPOSE:  UART Example for the ADSP-21369 Ez-kit
//
//USAGE:    Connect the UART connector (P1) to your PC and interact with the EZKit
//          when using the following settings.
//          Bits per Second  -> 19200
//          Data Bits        -> 8
//          Parity           -> odd
//          Stop Bits        -> 2
//          Flow Control     -> None
////////////////////////////////////////////////////////////////////////////////////////
#include <def21369.h>
#define MASKP14 (0x1f<<10)
#define UART0Rx (0x13<<10)


.extern _initDPI;
.extern _initUART;
.extern _initPLL;
.extern _initSDRAM;
.global _main;



.section/pm seg_pmco;
_main:


//Enable Global Interrupts
bit set mode1 IRPTEN;

// Maps the UART0 receive interrupt to P14 using the programmable interrupt controller
ustat1 = dm(PICR2);
bit clr ustat1 MASKP14;
bit set ustat1 UART0Rx;
dm(PICR2) = ustat1;

bit set IMASK P14I;     //Unmasks the UART Receive interrupt

ustat1 = UARTRBFIE;
dm(UART0IER) = ustat1;  // Enables UART receive interrupt

call _initPLL;          //Sets the core clock to 393MHz

call _initSDRAM;        //Sets up the SDRAM and AMI controllers for external memory

call _initDPI;          // initializes DPI with UART settings

call _initUART;         //calls the UART transmit program to display the welcome message


// Wait here forever, receive an interrupt for any communiction on the UART.
_main.end: jump (pc,0);





⌨️ 快捷键说明

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