Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: Questions on the UART Interface

2004-11-18 by Leighton Rowe

> Do you know (and can you tell) if the packet is truncated or maybe 
just 
> missing characters from its body?  If it always just characters at 
the end 
> I'm less optimistic about the race condition.

Well after double checking & changing my code to the single IIR read 
concept, things remained the same. The affected packet I receive 
always get's somewhat truncated in the middle, with the last bytes 
showing up a few bytes earlier than expected. 

I however notice LSR interrupt occuring at the point where the 
problem occurs but I don't see any signs of any LSR errors. 

Just a crazy question though...can the UART ISR interrupt itself?
(eg. while processing a THRE an RDA interrupt comes in)

Should I enable the FIFOs (write 1 to U0FCR) before running the 
interrupts? I seem to be getting by without this up until this point.

Thanks again,
Leighton

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.