This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem with Baude rate of UART

Hi
I am using an Arm9 based micro controller.However there is some problem while using the uarts.The uarts do not seem to work at the standard rates of 9600,15200 bps etc.In order to make them work,I have to set the baud rate in software with some correcion e.g if I want to set the baud rate at 9600,I have to set it in software at 10800.Similarly for other rates.I am using the standard functions provided by kiel for configuring UARTs.
If anybody has any idea why this is happening,kindly share it with me.

Parents
  • I've seen similar complaints in another MCU forum. Possible answers are:
    1) If you are using an UART with fractional baud rate generator (STR9) and an old version of ST library, you may be experiencing a bug in the library. Verify that baud rate settings a calculated correctly by the library.
    2) The so-called Special Interrupt Mode of STR9 can alter system clock frequency leading to discrepancy in baud rate.
    3) Make sure you configured the PLL correctly. Verify system clock frequencies.

Reply
  • I've seen similar complaints in another MCU forum. Possible answers are:
    1) If you are using an UART with fractional baud rate generator (STR9) and an old version of ST library, you may be experiencing a bug in the library. Verify that baud rate settings a calculated correctly by the library.
    2) The so-called Special Interrupt Mode of STR9 can alter system clock frequency leading to discrepancy in baud rate.
    3) Make sure you configured the PLL correctly. Verify system clock frequencies.

Children
No data