Hi:
I have an lwip project that I'm trying to re-purpose for another application that will primarily be written in assembly code. Right now I'm trying to send and receive data through UART0. So far I can send bytes of data by putting them in the UARTDR register at 0x4000C000 but I'm not seeing how to pick up bytes of data that have been received.
If I disable the receive FIFO I can see my data coming in at UARTDR but I can't see that there is any bit that I can read that tells me that a new byte has been received. If I enable receive FIFO I can see that the data came in momentarily because it flashes at UARTDR, but I have no idea where the receive FIFO is located and I also don't know where the pointers to the FIFO stack are located.
I was thinking that the receive data might be getting picked up by an interrupt routine but I don't see any of the interrupt mask bits set in USARTIM.
Can anyone tell me how to talk to UART0 with assembly code?
Thank you.