We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi I am trying to use UARTS on my board which has a STR91XFAW_128 MCU.However on trying to simply send data from the board to hyperterminal I am not getting the correct data.If anybody has sample code for the same can they please post a link to it.Also does the baudrate used dictate the performance of the UARTS.
For low baudrates, you can normally configure your microcontroller very exactly.
For higher baudrates, the granularity will increase, i.e. if you change the baudrate divisor one step, the error percentage will increase.
In some situations, you may be able to use a crystal (or PLL configuration) that allows you to perfectly match all standard baudrates. But with wrong input frequency sent into the baudrate generator, the produced baudrate may become so much off that ou are starting to get broken transfers.
With higher baudrates, the sensitivity to cable lengths, grounding etc will also increase.
Have you verified your baudrates with an oscilloscope? Just have your microcontroller send sime data, and measure the bit length - how close is it to the expected baudrate?
Are you using any FIFO or similar when receiving? Are you sure that you are reading out the data fast enough so you don't get a lot of lost bytes?