[1cd.c] "D:\CCStudio_v3.1\C2400\cgtools\bin\dspcl" -g -q -fr"D:/CCStudio_v3.1/MyProjects/xing/dd/Debug" -d"_DEBUG" -v2xx -@"Debug.lkf" "1cd.c"
[1cd.c]
CALL MON_RT_CNFG
"C:\DOCUME~1\ADMINI~1.E8D\LOCALS~1\Temp\1cd.asm", line 1189: AN IDENTIFIER IN THE EXPRESSION IS INVALID
The following symbols are undefined:
MON_RT_CNFG
1 Error, No Warnings
Errors in source - Assembler Aborted
[c200mnrt.asm] "D:\CCStudio_v3.1\C2400\cgtools\bin\dspcl" -g -q -fr"D:/CCStudio_v3.1/MyProjects/xing/dd/Debug" -d"_DEBUG" -v2xx -@"Debug.lkf" "c200mnrt.asm"
<c200mnrt.asm>
[dsp.asm] "D:\CCStudio_v3.1\C2400\cgtools\bin\dspcl" -g -q -fr"D:/CCStudio_v3.1/MyProjects/xing/dd/Debug" -d"_DEBUG" -v2xx -@"Debug.lkf" "dsp.asm"
<dsp.asm>
LACL IMR ; Disable selected interrupts.
"rtvecs.h", line 2: AN IDENTIFIER IN THE EXPRESSION IS INVALID
SACL IMR ;
"rtvecs.h", line 2: AN IDENTIFIER IN THE EXPRESSION IS INVALID
The following symbols are undefined:
IMR
2 Errors, No Warnings
Errors in source - Assembler Aborted
Build Complete,
3 Errors, 0 Warnings, 0 Remarks.
程序如下
#include"LF2407.h"
unsigned int i=1,j=0;
void rtmon_init(void)
{
asm(" CALL MON_RT_CNFG ");
}
initial()
{asm(" setc SXM");
asm(" clrc OVM");
asm(" clrc CNF");
asm(" clrc INTM");
*SCSR1=0x8E07;
*WDCR=0x68;
*IMR=0x0002;
*IFR=0xFFFF;
*MCRA=0xFBFF;//IOPB2¿Ú´ó¿ª
*PBDATDIR=*PBDATDIR;//Çå0
*GPTCONA=0x0000;
*T1CON=0x174C;
*T1PR=5000;
*T1CNT=0;
*EVAIFRA=*EVAIFRA;
*EVAIMRA=0x0080;
}
main()
{
initial();
rtmon_init();
while(1)
{if(i==1)
{*PBDATDIR=0xfffB;}
else
{
*PBDATDIR=0xFFfF;}
}
}
void c_int2()
{if(i==1)i=0;
else i=1;
*EVAIFRA=*EVAIFRA;
asm(" clrc INTM");
return;}
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |