protocol usart problem

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

protocol usart problem

1,071 次查看
Nadia
Contributor III
Good afternoon, everyone. I am using a LPC54616 microcontroller. I am trying to communicate with the EMIC2 text-to-speek board, using a USART protocol. I have to send characters and the board answers me with characters, for sending and receiving I am using these functions: USART_ReadByte USART_WriteBlocking I'm having problems, I don't know if someone could tell me how to do it correctly. Thank you very much, best regards
0 项奖励
回复
2 回复数

1,056 次查看
diego_charles
NXP TechSupport
NXP TechSupport

Hi Nadia,

I hope you are doing well

Could you detail  us your issues?

By the way ,are you using the  USART SDK examples? Some of them implement UART blocking and others the UART non blocking  functions (see  ring buffer examples )

Diego

0 项奖励
回复

1,068 次查看
frank_m
Senior Contributor III

You might want to be a bit more specific, especially about the problems.

No reception, garbled messages, hardfault ?

Blocking function might cause problems. The transmission of a byte via takes a relatively long time, compared the the MCU's instruction speed.

0 项奖励
回复