Hello,
I am not able to enable UART other than UART0,1 and 2.How to configure all the 8 uart in tm4c123g.
With Regards,
Prakash
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am not able to enable UART other than UART0,1 and 2.How to configure all the 8 uart in tm4c123g.
With Regards,
Prakash
Hi Bob,
I am not using any drivers. I am accessing uart through registers
SYSCTL_RCGCUART_R |= 0x00000020;
SYSCTL_RCGCGPIO_R |= 0x00000010;
GPIO_PORTC_LOCK_R = 0x4C4F434B;
GPIO_PORTC_CR_R |= 0x000000FF;
GPIO_PORTC_AFSEL_R |= 0x00000030;
GPIO_PORTC_PCTL_R |= 0x00110000;
GPIO_PORTC_DEN_R |= 0x00000030;
UART5_CTL_R &= ~(0x00000001);
UART5_IBRD_R = iBaudrate;
UART5_FBRD_R = intBaudrateFloat;
UART5_LCRH_R = 0x00000060;
UART5_CC_R = 0x00000000;
UART5_CTL_R |= 0x00000301;
i tried like this but i can't transmit or receive data
Thanks in advance