Still working on my UART driver for the LPC2138. Now I'm having problems with lost Tx data from the LPC to a PC. I don't have a clue about what I'm doing wrong and I haven't found anything on the web indicating this is a common problem. The problem is that sometimes one or a few bytes that I write to the THR don't show up at the PC. If there is data to be transmitted I write one byte to the THR (first checking the LSR5 to be really shure there is room for a byte). Then I write 16 bytes to the THR every time I get a THR IRQ (also here checking LSR5 to be 100% sure the FIFO is empty). Doing the above results in lost data at the other end. This happens approximately every 20-50kbytes. I've tried this at different speeds, even as low as 57600bps. The FIFOs are enabled. Am I missing something? /PH
Message
More UART woes
2005-07-21 by vajper0
Attachments
- No local attachments were found for this message.