Max baud rate for UART #35
-
I see that the UART for the Teensy 4.1 is set to 115200 in this firmware. Why is that? It seems that the Teensy ought to be able to Tx and Rx much faster than that. I saw somewhere on the PJRC forum that its UART uses a 24MHz clock, so that should allow bauds at least 20x faster than 115200. Has anyone tested out faster baud rates for the Teensy's UART ports? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I have only tested slower rates (for VFD control).
iMXRT1062/grblHAL_Teensy4/src/driver.c Lines 2309 to 2314 in f860aac
iMXRT1062/grblHAL_Teensy4/src/driver.c Lines 2408 to 2420 in f860aac |
Beta Was this translation helpful? Give feedback.
-
Success! (mostly) Thanks, @terjeio
I also edited line 82 of config.h to uncomment the checkmode pause option:
However, I am still tweaking the timings of 2000000 baud comm between the Teensy and my pendant receiver (an ESP32-S2) to deal with too-fast responses being lost. I have seen no garbled chars and the pulses are very clean on the scope so I think both devices can easily handle this speed, which is 17x faster than the default 115200. |
Beta Was this translation helpful? Give feedback.
Success! (mostly) Thanks, @terjeio
I have edited driver.c starting at line 2408 to use 2000000 baud and verified with my scope that UART bits are 500ns long.