Re: Interrupt driven UART
- From: Paul Keinanen <keinanen@xxxxxx>
- Date: Thu, 12 Oct 2006 17:17:53 +0300
On Thu, 12 Oct 2006 04:53:04 -0400, CBFalconer <cbfalconer@xxxxxxxxx>
wrote:
The OP will also need to implement some sort of critical section in
either case. I imagine this will be most easily implmented by
controlling the interrupt enable.
Not really.
The two error situations with a ring buffer without critical section
is that you get a premature "buffer full" when writing to the buffer,
when there actually was one free byte in buffer (=extend the buffer by
one byte) or you get "buffer empty", when actually one more byte would
be available (=in a polling system read the byte at next poll).
This is valid for buffers less than 256 bytes for 8 bit data bus
systems and 64 KiB buffers in 16 bit data bus systems.
Paul
.
- References:
- Interrupt driven UART
- From: goister@xxxxxxxxx
- Re: Interrupt driven UART
- From: Ico
- Re: Interrupt driven UART
- From: CBFalconer
- Interrupt driven UART
- Prev by Date: Re: What micros do you actually hate to work with?
- Next by Date: Re: What micros do you actually hate to work with?
- Previous by thread: Re: Interrupt driven UART
- Next by thread: Codewarrior "Force C++ compilation" equivalent in cygwin - M68K cross-tool package
- Index(es):
Relevant Pages
|