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.

C6747怎么初始化,我写的一个程序怎么总是跑飞

初始化过程如下

initpsc();
SystemConfig();
InitPLL();
emifconfig();
CEint();

TIMER0_TRC=0x0;

initTIMER0();
TIMER0_EMUMGT=0x1;
CSR=CSR|0x1; //开总中断
uartTtp = C6747_UART_open(TtpId, TTP_Baud);


//uartInter=intiUartInter(0,9600);
//intiUart0Interrupt();
//CSR=CSR|0x1; // 开中断

GPIO_DIR23&=0xffffbfff;//con1 out
GPIO_DIR45&=0xfBDffffd;//con0 con2 out
GPIO_OUT_DATA23=0xffffffff;

之后是一些变量初始化。最后是一个for(;;){} 循环  循环中做一些计算。 定时器经常出错,不能正常工作,有时候 要先单步执行几步,才能正常运行