Set node of timer 1 only
This commit is contained in:
parent
ff95ee6537
commit
696ccc30ab
@ -5,7 +5,7 @@
|
||||
|
||||
void uart_init(long fosc, long baud)
|
||||
{
|
||||
TMOD = 0x20; // Timer 1 in Mode 2
|
||||
TMOD |= 0x20; // Timer 1 in Mode 2
|
||||
TH1 = 0xFD; // 9600 baud rate
|
||||
TL1 = 0xFD; // Initial value (not necessary)
|
||||
TR1 = 1; // Start Timer 1
|
||||
|
Loading…
Reference in New Issue
Block a user