From 3e0c47f9f174a2cd692a45c4a85524ab68e75997 Mon Sep 17 00:00:00 2001 From: Uttam Bhavimani Bhavimani Date: Fri, 29 Nov 2024 14:49:18 +0530 Subject: [PATCH] Update UART Frame --- main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.c b/main.c index c81aa5b..5fc02cd 100644 --- a/main.c +++ b/main.c @@ -16,7 +16,6 @@ void GPIO_PORT_F_init(void) void GPIO_PORT_B_init(void) { - SYSCTL_RCGCGPIO_R |= 0x02; // ENABLE CLOCK FOR GPIOB SYSCTL_RCGCUART_R |= 0x02; // ENABLE CLOCK FOR UART1 @@ -28,7 +27,7 @@ void GPIO_PORT_B_init(void) UART1_CTL_R &= ~0x01; // DISABLE UART1 DURING SETUP UART1_IBRD_R = 104; // Set integer part of baud rate (for 9600 baud at 16 MHz clock) UART1_FBRD_R = 11; // Set fractional part of baud rate - UART1_LCRH_R = 0x62; // 8-bit, odd parity, 1 stop bit + UART1_LCRH_R = 0x60; // 8-bit, No parity, 1 stop bit UART1_CC_R = 0x00; // Use system clock UART1_CTL_R |= 0x301; // Enable UART1, RX, and TX