Re: replace polling with interrupt
- From: Jack Klein <jackklein@xxxxxxxxxxx>
- Date: Fri, 30 Jun 2006 15:45:48 -0500
On 30 Jun 2006 11:26:35 -0700, swathimathur80@xxxxxxxxx wrote in
comp.arch.embedded:
Hello Everyone,
I am trying for the first time to write an interrupt driven routine.
Here I want to transmit n*8 bytes of data over a serial interface
While( Count < n) {
// sent an byte
for(;;) // i will be polling the registers to check which flag is
set
{
read_register()
If (Tx_Flag_Successful)
Decrement Count
break
else
Count=0 ; Resend data from begining
}
}
Now if I want to replace the above with an interupt driven process, I
can do so
easily for the inner for loop(). If I want to replace even the while
loop
( i.e transmit a bolck of data with interrupts) how can I do it ?
Please advice me on this.
Thanks in advance,
Warm Regards,
Swathi
What processor or microcontroller? What UART?
--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~ajo/docs/FAQ-acllc.html
.
- References:
- replace polling with interrupt
- From: swathimathur80
- replace polling with interrupt
- Prev by Date: Re: TI MSP430 question: Is there a software emulator for this chip?
- Previous by thread: replace polling with interrupt
- Next by thread: TI MSP430 question: Is there a software emulator for this chip?
- Index(es):
Relevant Pages
|