Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: Serial Port Interrupt

2004-11-11 by Robert Adsett

At 06:57 PM 11/11/04 +0000, you wrote:
>The FIFO IS empty (I haven't yet loaded anything into the FIFO).
>But no THRE interrupt.  Did you mean to say this is correct
>behavior?  (Again, if I manually load the first byte into the FIFO,
>from then on the interrupt works great.)

Sorry, I misunderstood, I had thought you were already transmitting.  That 
is correct behaviour as well.  It's meant to keep you from going into an 
infinite transmission interrupt loop if you have nothing to transmit.  You 
have to 'prime the pump' by placing at least one byte in the transmit FIFO 
to start.  If you ever run out of bytes to transmit you have to do it again.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

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.