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.

cla任务中 变量值为正,但是运行时为负的,为什么

Other Parts Discussed in Thread: CONTROLSUITE

程序如下;

__interrupt void Cla1Task1 ( void )
{

duty=duty+1;

if(duty==3600)
{duty=0;
}

}