Skip to content

Serial buffer issue Attiny806 at 20MHz #920

Answered by SpenceKonde
Rollpopptery asked this question in Q&A
Discussion options

You must be logged in to vote

AAHA!
That serial output was exactly the thing I had a sneaking suspicion would be seen. There's a clock mismatch, so when you send multiple characters in a row with only one stop bit, it gets confused because the sender is sending the next character, the receiver thinks it's on the tail end of the stop bit, and within a few bytes, it's gotten far enough off that it's more than half a bitperiod off and seeing the wrong characters.

So, it's not specific to the 806, it's specific to THAT 806 in combination with THAT serial adapter, when running at that voltage I think the tiny is running a hair slow, and the serial adapter a hair fast. Either nudge the oscillator cal up a notch or two, or s…

Replies: 8 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Rollpopptery
Comment options

You must be logged in to vote
1 reply
@Rollpopptery
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Rollpopptery
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants