K22: 9Bit UART with eDMA

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K22: 9Bit UART with eDMA

1,211 Views
noisternig
Contributor II

Hi,

I'd like to know if it's possible to transmit 9Bit data with the UART by using the eDMA. How will the 9th bit be set?I haven't found anything about this in the reference manual.

Br,

Wolfgang

Labels (1)
0 Kudos
Reply
2 Replies

953 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi Wolfgang,

Yes, if you look into the UART register map, you may find the ninth bit to be transmitted is in UART_C3, as well as the received ninth bit, and UART_C3 is followed by UART_D.

pastedImage_1.png

pastedImage_0.png

so you may use 16 bit access mode to write/read data to this space by eDMA, just please prepare the data carefully so that would not modify other bits in UART_C3.

Hope that helps,


Have a great day,
Kan

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

953 Views
noisternig
Contributor II

Hi Kan,

thanks for clarification.

So I need to put the whole content of UART_C3 into the 16Bit value and not only the 9th Bit.

I'll try that.

Thanks for your help.

Br,

Wolfgang

0 Kudos
Reply