c8051F350 定时中断死机?

2019-03-24 19:33发布

void Timer0_Init(void)

   TH0 = 0x0B;           // Init Timer0 High register
   TL0 = 0xDC ;           // Init Timer0 Low register
 //  TMOD = 0x01;    Uart0_SendString("JW_20111125 ");                      // Timer0 in 16-bit mode
 //  CKCON = 0x02;                       // Timer0 uses a 1:48 prescaler
 //  ET0 = 1;                            // Timer0 interrupt enabled
 // TCON = 0x10;
   Uart0_SendString("11125 ");                        // Timer0 ON
}   上面的四行注释加上去就运行不Uart0_SendString("JW_20111125 ");  什么原因呢???????/???// 此帖出自小平头技术问答
0条回答

一周热门 更多>