Implementing UART Communication on NXP LPC Microcontrollers - Emmanuel Katto

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

Implementing UART Communication on NXP LPC Microcontrollers - Emmanuel Katto

131 Views
emmanuelkatto23
Contributor I

Hello everyone,

My name is Emmanuel Katto. I'm currently working on a project using the NXP LPC1768 microcontroller, and I need to implement UART communication to interface with a GPS module. I've read through the reference manual and some application notes, but I’m seeking advice on the best practices when setting up and using UART on this MCU.

 

  • What are the essential settings I should configure for UART (baud rate, data bits, stop bits, parity)? Are there any specific settings recommended for a GPS module?

  • What is the best way to handle incoming and outgoing data buffers in terms of size and management? Should I use interrupts to manage data reception, and if so, what are the best practices for implementing the ISR?

Thank you in advance for your assistance!

 

Best,

Emmanuel Katto

 

0 Kudos
Reply
1 Reply

115 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

As you know that the uart communication reliability is dependent on the uart driving clock accuracy. The internal IRC clock frequency is not accurate and subject to temperature.

I suggest you use external clock osc_clk as the source of uart clock.

So I suggest you connect an external crystal clock(osc_clk), use PLL to times it or directly use osc_clk as pllclk. you can use the pclkx to generate the uart baud rate.

Hope it can help you

BR

 

xiangjun_rong_0-1727429023022.png

 

0 Kudos
Reply