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.

EK-LM4F232H5QD uart BAUD RATE ISSUE

I didnt get any serial data for baudrate 9600 while it works fine for 115200. Code i used is

for 115200 baudrate:-
 ROM_UARTConfigSetExpClk(UART0_BASE, ROM_SysCtlClockGet(),115200,(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |UART_CONFIG_PAR_NONE));

for 9600 baudrate:- 
ROM_UARTConfigSetExpClk(UART0_BASE, ROM_SysCtlClockGet(),9600,(UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |UART_CONFIG_PAR_NONE)); 

I used Keil.When debugged code doesnt hang , it goes through the sending function too. not going to uarthandler when baudrate set is 9600.
checked ibrd and fbrd values that is fine.
any suggestions??thanks in advance. 

  • sooraj r k said:
    I didnt get any serial data for baudrate 9600

    While clear to you - not so to would be helpers.  Tighter description/specification of an issue - always yields faster/improved response.

    Your 9600 listing - if a true representation of that w/in your IDE code - seems perfectly consistent w/ the 115200 listing - which your report as working. 

    So - needed is your meaning of "didn't get."  Did no data at all come thru?  Or - was it garbled?  And - in each case - how did you test for such UART data?  (perhaps your test receiver is "tied/restricted" to that 115K setting?)

    Realize that you must reconfigure your remote system to this new 9600 setting - prior to your 9600 MCU transmission.  Was this done?  And - you must disable that 115K speed reference - in any (and all) places it may appear.

    I don't recall the Uart Interrupt being at all baud-rate sensitive - thus my belief is something other in your code is the, "guilty party."