K60 Uart Communication with Parity

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

K60 Uart Communication with Parity

1,079件の閲覧回数
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,070件の閲覧回数
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,067件の閲覧回数
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,055件の閲覧回数
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 件の賞賛
返信