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
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