Skip to main content
Visitor II
May 14, 2008
Question

256k Baud Rate on UART

  • May 14, 2008
  • 4 replies
  • 1661 views
Posted on May 14, 2008 at 08:27

256k Baud Rate on UART

    This topic has been closed for replies.

    4 replies

    daryl2Author
    Visitor II
    May 5, 2008
    Posted on May 05, 2008 at 05:19

    Hi,

    Anyone tried to configured 256K baud rate on their UART? I tried doing it with UART_Init but the host not able to receive any data. Did some calculation based on the reference manual example and found that output is 256410 which is 0.16% error. Could this be the problem? What setting should I use? Thanks

    Visitor II
    May 6, 2008
    Posted on May 06, 2008 at 03:50

    You could have miscalculated. Or you are using a RS-232 driver that is not able to support the 256K data rate. Ultimately, a digitizing scope can tell you what's wrong: you'll be able to see if the bits are on the wire, and verify timing.

    daryl2Author
    Visitor II
    May 14, 2008
    Posted on May 14, 2008 at 08:25

    Using the default STR7 library codes, so the calculations should not be incorrect. Use my IAR debugger to verified that the calculation is correct. Data is send to the host through an USB-to-Serial converter.

    To ensure the dongle is working, I have separate a device that can send out a baud rate of 256000 and there are no data error. It is only when using this USB dongle with the STR751 at 256000 baud, the data received are incorrect.

    daryl2Author
    Visitor II
    May 14, 2008
    Posted on May 14, 2008 at 08:27

    one more thing, I am using a STR7 demo board and a modification of the STR7 In-Application Programming example code for testing.