Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UART wrong bound rate #9

Open
klangner opened this issue Feb 24, 2017 · 1 comment
Open

UART wrong bound rate #9

klangner opened this issue Feb 24, 2017 · 1 comment
Assignees
Labels

Comments

@klangner
Copy link
Owner

It looks that at bound rate=9600 the timer sends data with the speed of ~888. And then computer can't understand the output.

@klangner klangner added the bug label Feb 24, 2017
@klangner klangner self-assigned this Feb 24, 2017
@gergoerdi
Copy link
Contributor

gergoerdi commented Dec 3, 2017

I think I just got bitten by this bug: https://arduino.stackexchange.com/q/47297/1568

However, I am confused by your comment. Do you mean that setting the rate to 9600 baud results in an effective rate of 888 baud? Doesn't that mean I should be able to get good output by setting the baud rate to 103783?

Because I've just now tried that, and I am now only getting garbage out, whereas when using the nominal baud rate of 9600, I am at least getting some bits (the lower nybble) right.

However, by using the only-slightly-off baud rate of 11000, I am now able to receive my 0x5a byte correctly at 9600 baud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants