28335 boot到main函数之前加一段设置GPIO的代码,可以在boot过程中以最快的速度将GPIO拉低??
来自21ic论坛 TI DSP版块
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
28335 boot到main函数之前加一段设置GPIO的代码,可以在boot过程中以最快的速度将GPIO拉低??
来自21ic论坛 TI DSP版块
是的。
你可以在DSP2833x_CodeStartBranch.asm文件中,在下面位置将你要设置的GPIO汇编代码或者调用C函数加进去:
wd_disable:
SETC OBJMODE ;Set OBJMODE for 28x object code
EALLOW ;Enable EALLOW protected register access
MOVZ DP, #7029h>>6 ;Set data page for WDCR register
MOV @7029h, #0068h ;Set WDDIS bit in WDCR to disable WD
;IO代码放在这里
EDIS ;Disable EALLOW protected register access
LB _c_int00 ;Branch to start of boot.asm in RTS library