K22: 9Bit UART with eDMA

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

K22: 9Bit UART with eDMA

1,218 次查看
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 回复数

960 次查看
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!
-----------------------------------------------------------------------------------------------------------------------

960 次查看
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 项奖励
回复