本人新手,对dsp汇编一窍不通。哪位高手帮忙注释一下!!!不需要说明功能,只要每句话的意思。满意再加50分。
*********************************************
* 主程序
**********************************************
MAINLOOP:
LDP #EVBIFRA>>7
BIT EVBIFRA,BIT7
BCND LOOP_COM,NTC
SPLK #80H,EVBIFRA
KICK_DOG
CALL SCI_TIMER,AR1
LDP #MS_CNT>>7
LACL MS_CNT
ADD #1
SACL MS_CNT ;MS计数器
LDP #MS_CNT1>>7
LACC MS_CNT1
ADD #1
SACL MS_CNT1
SUB #2
BCND MS2_LOOP,EQ
SUB #2
BCND LOOP_COM,NEQ
MS2_LOOP:
**********************************************
KICK_DOG
CALL SUB_KEYBOARD,AR1
CALL SUB_CON_CAL,AR1
CALL SUB_SVC_WR,AR1
CALL SUB_VFIRMS_CAL,AR1
CALL SUB_COMMAND_PARA_SET,AR1
CALL SUB_RUN_DEAL,AR1
CALL SUB_PROTECT_DEAL,AR1
CALL SUB_VF_CURVE_CAL,AR1
CALL SUB_RUN_CONTROL,AR1
LDP #MS_CNT1>>7
LACC MS_CNT1
SUB #4
BCND LOOP_COM,NEQ
SPLK #0,MS_CNT1
**********************************************
KICK_DOG
CALL SUB_ACTUAL_TO_MARK,AR1 ;;实际值转化为标幺值
CALL SUB_INPUT_ERR,AR1
CALL SUB_OUTPUT_ERR,AR1
CALL SUB_TIME_CAL,AR1
CALL SUB_FAN_CONTROL,AR1 ;;风扇控制子程序
CALL SUB_OVERLOAD,AR1 ;;过载保护检测子程序
CALL SUB_DIS_FILT,AR1 ;;滤波子程序
CALL SUB_TEMPERATURE,AR1 ;;散热器1/2温度计算
CALL SUB_POWER_TOR_CAL,AR1
CALL SUB_ANALOG_IN,AR1
CALL SUB_ANALOG_OUT,AR1
CALL SUB_SWITCH_INPUT,AR1
CALL SUB_SWITCH_OUTPUT,AR1
CALL SUB_DI_COMD,AR1 ;;完成端子命令处理
LOOP_COM:
CALL SUB_SCI,AR1 ;;通讯处理子程序
CALL SUB_FAULT_CHECK,AR1 ;;故障检测子程序
CALL SUB_CON_SET,AR1 ;;参数设定子程序
CALL SUB_ICOE_CAL,AR1
CALL SUB_POFFSAVE,AR1
B MAINLOOP