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.
Dear all,
What are the register settings for 921600 baud @ 20MHz clock?
I already tried (UCA0BR0/UCABR1/UCAMCTL) two possibilities from baudrate calculators:
0x15/0x00/0x5b
0x15/0x00/0xdd
With both I can receive and send some characters correctly ( e.g. w,W,u,U), others doesn't work
Any idea?
Lukas
Try not using UCOS16. 0x15 / 0x00 / 0x0C (makes UCBRSx = 6, for 7 of 10 bits longer, because 20M / 921.6K = 21.7)
Jeff
Hi Jeff,
thanks for your response. Unfortunately, your suggested values do not help to solve my problem. Any other idea?
Lukas
A couple of other thoughts:
Jeff
Hi Jeff,
thanks for your support. I switched to 4MHz SMCLK, but this does not help. Now I working with 4MHz.
Then I tried to produce 230400 baud, which worked. Then I increased the baudrate to 460800. With an oscilloscope I checked the timing which was slightly not as expected. I have to check that on monday.
Thank you and have a nice weekend
Lukas
Hi Jeff,
I checked the timing again with the oscilloscope. Today I also checked the timing directly on the Tx line of the microcontroller and there the timing is correct for 0x04/0x00/0x04. Therefore I guess that the line driver has a problem with the high baudrate and not the msp430 nor the software. Sorry!
Tank you again for your support
Lukas
**Attention** This is a public forum