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 ADC初始化程序问题 InitAdc(); 有问题

Other Parts Discussed in Thread: CONTROLSUITE

我用ccs6做了一个ADC采集程序,在烧写调试模式的时候是能够运行的,但是下载模式的时候,程序在运行到 InitAdc(); 时候就卡那了,我单步执行发现是 InitAdc(); 里面的 DELAY_US(ADC_usDELAY);  有问题,运行到这一步他自动跳到下面这个非法ISR中去了,然后死循环了

interrupt void ILLEGAL_ISR(void) // Illegal operation TRAP
{
// Insert ISR Code here

// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
asm(" ESTOP0");
for(;;);

}