The NXP RT1024 Overview Page shows 8xUART in the block diagram.
The Reference manual repeats that the chip has 8xUART: IMXRT1024RM
Based on NXP documentation I stupidly assumed the RT1024 has UARTs with 9-bit support,
based on other NXP UART peripheral documentation.
Unfortunately, despite above NXP documentation, RT1024 seems to only have "LPUART",
which does not have 9-bit support (cannot handle 9-bit transfers).
Aaaarrrggg.... Is this really true?
So, Is it possible to use Flexio for 9-bit support?
Proper 9-bit support (for RS-485 networks etc) needs:
- start receiving into MCU on address match (on byte matching specified address and 9-bit set is received)
- continue receiving until software resets UART to again wait for matching address
- in my application, ideally send data with 2 stop bits, and receive data with either 1 or 2 stop bits.
- ideally provides external transmit-enable signal (goes high before transmitting first byte and low after last bit of last byte is sent)
Thanks for any pointers (before I must select a different part, hopefully with more consistent documentation),
Best Regards, Dave
Hello
Hope you are well.
The LPUART module on the RT1024 device is capable of using 9-bit characters.
Best regards,
Omar
Thanks @Omar_Anguiano that's great!
I was again led astray as I looked first at the NXP's documentation for LPUART driver here: https://mcuxpresso.nxp.com/api_doc/dev/1315/group__lpuart__driver.html#a58ce25b71bde98b9c09875481637...
This shows LPUART support only for 7 or 8 bit transfers - why???
In any case, I'll write my own driver, glad I do not have to change parts,
Thanks,
Best Regards, Dave
Maybe the document is from previous versions or from a device with LPUART but no support for 9-bits.
Anyway, RT1024 LPUART module is capable of 9-bit transfer, you can even refer to the SDK example of 9-bit transfer.
Best regards,
Omar