void Timer0_Init(void) { TH0 = 0x0B; // Init Timer0 High register TL0 = 0xDC ; // Init Timer0 Low register // TMOD = 0x01;
Uart0_SendString("JW_20111125\r\n"); // Timer0 in 16-bit mode // CKCON = 0x02; // Timer0 uses a 1:48 prescaler // ET0 = 1; // Timer0 interrupt enabled // TCON = 0x10; Uart0_SendString("11125\r\n"); // Timer0 ON }
上面的四行注释加上去就运行不Uart0_SendString("JW_20111125\r\n"); 什么原因呢???????/???//
|