LPC55S0x UART

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

LPC55S0x UART

Jump to solution
1,385 Views
chiara_delfini
Contributor I

Hi,

I have to implement a simple serial protocol on LPC5506.

I  would not use FIFOs because I have to send few (4 or 5) bytes at the time.

I saw that FIFO dimension is fixed to 16 bytes...

How have I to use the UART?

If I just write 1 byte in the FIFO, nothing happens...

 

 

Thanks for helping

Chiara

Labels (1)
0 Kudos
Reply
1 Solution
1,277 Views
chiara_delfini
Contributor I

Solved!

Thank you 
Chiara

View solution in original post

0 Kudos
Reply
3 Replies
1,278 Views
chiara_delfini
Contributor I

Solved!

Thank you 
Chiara

0 Kudos
Reply
1,343 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Of course, you can disable the FIFO feature of Usart module for the LPC550x.

xiangjun_rong_0-1679881425464.png

 

If you want to develop high efficient code, you can write register directly.

Hope it can help you

BR

XiangJun Rong

0 Kudos
Reply
1,346 Views
scottm
Senior Contributor II

The FIFO size is fixed at 16 entries, but that doesn't mean you need to send in multiples of 16 bytes. If you're writing data to the FIFO and it's not being sent, the UART must be configured wrong. Make sure it's enabled in CFG, and check TXDIS in CTL. Verify that you have the clocking set up correctly.

I'd suggest starting with one of the MCUX SDK examples, even if you're not going to use the SDK in your project. But beware - NXP isn't very careful about testing and documenting their examples. It's common to find UART loopback examples that use a free-running oscillator as their clock source, for example. That's fine on the same board, but if you're connecting two boards their clocks might be out of spec. So while the example will almost certainly work, you should be cautious about applying it to your example.

Scott

0 Kudos
Reply