diff --git a/main.c b/main.c index 100d533..d736265 100644 --- a/main.c +++ b/main.c @@ -98,7 +98,7 @@ void uart2_init(void) USART2->CR1 &= ~0x1000; // M:--> Start bit, 8 Data bits, n Stop bit USART2->CR1 &= ~0x0400; // PCE: 0: Parity control disabled USART2->CR2 &= ~0x3000; // STOP: 00: 1 Stop bit afungsbil - USART2->BRR = 0x1D4C; // set Baudrate to 9600 Baud (SysClk 72Mhz) + USART2->BRR = 0x0753; // set Baudrate to 9600 Baud (SysClk 72Mhz) USART2->CR1 |= 0x0C; // enable Receiver and Transmitter USART2->CR1 |= 0x2000; // Set USART Enable Bit }