protocol usart problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

protocol usart problem

509 Views
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 Kudos
2 Replies

494 Views
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 Kudos

506 Views
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 Kudos