void main()
{
uchar wakeup=0;
uint i,j;
PCA0MD &= ~0x40; // Disable Watchdog timer
Oscillator_Init(); // Initialize the system clock
Port_Init (); // Initialize crossbar and GPIO
Ext_Interrupt_Init(); // Initialize External Interrupts
EA = 1;
while(1)
{
wakeup++;
for(j=0;j<3;j++)
{
RUN=0 ; // 2灯亮
delay1s(1);
RUN=1 ; // 2灯灭
delay1s(1);
}
RUN=1 ;
}
我看他们有的说 我子程序里的“看门狗”需要打开, 那主程序里关闭了,在延时程序里再打开一次? 我真不知道该怎么解决 以前在STC上面 没有遇到过类似的问题
请各位给小弟些许建议,往哪里去改动,有方向了 我才知道去哪里找资料 改程序
15# lyjian
|