Set node of timer 1 only

This commit is contained in:
7u83 2024-05-19 21:01:15 +02:00
parent ff95ee6537
commit 696ccc30ab

View File

@ -5,7 +5,7 @@
void uart_init(long fosc, long baud) 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 TH1 = 0xFD; // 9600 baud rate
TL1 = 0xFD; // Initial value (not necessary) TL1 = 0xFD; // Initial value (not necessary)
TR1 = 1; // Start Timer 1 TR1 = 1; // Start Timer 1