:
问题:我定义了long long K4,K5,K6,K7;但是,当我运算K5=K4+2时,结果是(K5=1;寄存器ACC=1,P=1;XT=0),出错误!
#include \"DSP280x_Device.h\" // DSP280x Headerfile Include File
#include \"DSP280x_Examples.h\" // DSP280x Examples Include File
void error();
long K1,K2,K3;
long long K4,K5,K6,K7;
void main(void)
{
InitSysCtrl();
InitPieCtrl();
IER = 0x0000;
IFR = 0x0000;
InitPieVectTable();
K1=2147483647;//31 (2^31-1)
K2=2147483647;//31 (2^31-1)
K3=2147483647;//31( 2^31-1)
K4=4294967295;//32 (2^32-1)
K5=K4+2;//33 ???????????????????????出错误!
K6=K5+1;//??????????????????????????出错误!
EINT; // Enable Global interrupt INTM
ERTM; // Enable Global realtime interrupt DBGM
for(;
;
}
void error(void)
{
asm(\" ESTOP0\"
; //Test failed!! Stop!
for (;
;
}