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