Attiny3224 / MegaTinyCore 2.6.10 / Baud Rate Error on baud rate of 1200 on UART1 TX #1229
Replies: 3 comments 3 replies
-
|
Did you try on lower F_CPU than 20MHZ and that also does not work? |
Beta Was this translation helpful? Give feedback.
-
|
I'm guessing you are using a 20MHz clock? It looks like there is an overflow bug configuring the USART for such a low baud rate. You could try either:
The (on second thought, maybe I'd consider this a documentation issue rather than a bug) |
Beta Was this translation helpful? Give feedback.
-
|
Many thanks for your replies. I have confirmed that it does indeed work if I use a 16MHz clock. It seems I did not craft a good enough google search to find that. Having had it pointed out to me, it does appear to be a documentation error (at least) since 1200 appears to be acceptable at 20MHz based on the link provided at https://github.com/SpenceKonde/megaTinyCore/blob/master/megaavr/extras/Ref_Serial.md#minimums . |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Attiny3224 / MegaTinyCore 2.6.10 / Baud Rate Error on baud rate of 1200 on UART1 TX . However, it appears OK if the baud rate is higher, say 2400 and above. Has anyone experienced this ?
More details: I need 1200 baud to connect to a peripheral device. I have tried a small sketch writing to the TX pin at 1200 baud and checked with a logic analyzer. The detected baud rate is 70670 instead of 1200.
I won't spend too long on this because I have currently implemented SoftwareSerial on UART1 RX/TX pins as a work around and which is OK for this low baud rate, however a bit of a retrograde step, though, for a chip with two UARTs.
Beta Was this translation helpful? Give feedback.
All reactions