K40 uart PARITY problem

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

K40 uart PARITY problem

971 次查看
see
Contributor II

I set up K40 UART3 for 9 data bit and 1 stop bit, parity enable and even parity transmission. However When I transmit modbus data with odd parity or no parity to the K40, it can still receive data perfectly.

the same goes to odd parity or no parity setting.  And I verified that UART3_C1 register was showing the correct setting. is there something wrong with this K40 parity ?

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

768 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

I checked K40 UART module validation code, which already test UART 9-bit data receive with parity enable. And there is no error reported.

During the UART module validation, it use two UART modules to do 9-bit data transmit and receive.

More detailed info, please check attached UART RX validation code (related validation code located at uart_9bit_rx_test() function).


Wish it helps.
best regards
Ma Hui

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

0 项奖励
回复