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

📄 configdai.asm

📁 一段ADSP21262用DAI口实现UART通讯的汇编源代码。
💻 ASM
字号:
#include <sru.h>
#include <def21262.h>

// This function will setup the SRU Registers
.section /pm seg_pmco ; 
.global InitSRU ;
InitSRU :

	// Enable pull-up resistors on unused DAI pins
	r0 = 0xfbcff;
	dm(DAI_PIN_PULLUP) = r0;

	//Generating Code for connecting : SPORT1_DA to DAI_PIN9
	SRU (HIGH, PBEN09_I); 
	SRU (SPORT1_DA_O, DAI_PB09_I); 

	//Generating Code for connecting : SPORT3_CLK to DAI_PIN15
	SRU (HIGH, PBEN15_I); 
	SRU (SPORT3_CLK_O, DAI_PB15_I); 

	//Generating Code for connecting : DAI_PIN10 to SPORT3_FS
	SRU (LOW, PBEN10_I); 
	SRU (DAI_PB10_O, SPORT3_FS_I); 

	//Generating Code for connecting : DAI_PIN10 to SPORT3_DB
	SRU (LOW, PBEN10_I); 
	SRU (DAI_PB10_O, SPORT3_DB_I); 

	// Return back from the subroutine
	rts;
InitSRU.end:

⌨️ 快捷键说明

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