AnsweredAssumed Answered

lpc54102 UART stat TXRDY (not ready)

Question asked by Sven Savic on Oct 19, 2017
Latest reply on Oct 20, 2017 by Sven Savic

I have issue with developing UART comm from scratch. I don't use any libraries, as I am not big fan of them, so I go bare metal way.

 

Anyway, I don't know whether I am missing some config or not, but when I try to send string via UART, it got stuck after first char. Well, first char is not sent as well.

 

I went through the data sheet couple of times, and I just can't see what I am missing.

 

enable ASYNCAPB

set ASYNCAPBCLKCTRL to enable UART0,

disable reset via ASYNCPRESETCTRL,

set RX,TX pins

USART CFG, baud rate and enable uart.

 

And then just write to TXDAT. Everything seems to be OK from debugger point in MCUXPRESSO, but UART seems to get stuck on sending the char and next cycle STAT = b'10010' or RXRDY, TXIDLE.

Why doesn't it change to TXRDY I don't understand...

 

Attached is memory dump of UART.

Attachments

Outcomes