K60 Uart Communication with Parity

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

K60 Uart Communication with Parity

1,150 次查看
mdrasool_yadwad
Contributor II

Hello,

I am using UART for communicating with parity enabled (Even parity) according to the data sheet of MK60DN512ZVLL10 to enable the parity UARTX_C1 they have mentioned to enable 7816E in control register UARTX_C7816 before it. 

After enabling this and setting the parity i m getting hard fault while i debug. 

I am not able to figure out what is the problem

Please help out.

0 项奖励
回复
3 回复数

1,141 次查看
mjbcswitzerland
Specialist V

Hi

Do not enable ISO-7816E.

You have misread the register description - it doesn't say you have to enable it; instead it states that you should set even parity "if you were to use 7816".

Regards

Mark
[uTasker project developer for Kinetis and i.MX RT]
Contact me by personal message or on the uTasker web site to discuss professional training, solutions to problems or rapid product development requirements

For professionals searching for faster, problem-free Kinetis and i.MX RT 10xx developments the uTasker project holds the key: https://www.utasker.com/iMX/RT1064.html

0 项奖励
回复

1,138 次查看
mdrasool_yadwad
Contributor II

Hello, 

If that is the case if I send data from the hyper terminal i am able to receive response but when i send data through K60 controller Uart i am not receiving data.

0 项奖励
回复

1,126 次查看
mjbcswitzerland
Specialist V

Hi

There could be various reasons for your problem. Measure that the parity actually being used using an oscilloscope or logic analyser first to ensure it is as you expect it to be.
If you are receiving data check the status register for parity errors too.

Regards

Mark

 

0 项奖励
回复