I've snooped through the megamanual and can't find any reference to 7 bit mode (aka M7 flag on Teensy 4.x) or how to achieve 7N1 format on the 3.x hardware serial ports. I was wondering if anyone had knowledge/experience with this.
For 7N1 on Teensy 4, I found a post in here, snooped that megamanual, and found someone was kind enough to annotate in the correct mappings for CNTRL registers and Serials. I came up with this, and have been using it to drive LEDs:
Thanks! Oh BTW... Teensy Serial ports are awesome LED drivers.
For 7N1 on Teensy 4, I found a post in here, snooped that megamanual, and found someone was kind enough to annotate in the correct mappings for CNTRL registers and Serials. I came up with this, and have been using it to drive LEDs:
Code:
Serial1.begin(baudKhz * 3000, SERIAL_8N1_TXINV);
LPUART6_CTRL |= LPUART_CTRL_M7; //Set 7N1
Thanks! Oh BTW... Teensy Serial ports are awesome LED drivers.
Last edited: