K22: 9Bit UART with eDMA

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K22: 9Bit UART with eDMA

1,224件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

966件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------

966件の閲覧回数
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 件の賞賛
返信