LPC55S0x UART

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,408件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
1 解決策
1,300件の閲覧回数
chiara_delfini
Contributor I

Solved!

Thank you 
Chiara

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,301件の閲覧回数
chiara_delfini
Contributor I

Solved!

Thank you 
Chiara

0 件の賞賛
返信
1,366件の閲覧回数
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 件の賞賛
返信
1,369件の閲覧回数
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 件の賞賛
返信