Re: Replace polling with interrupt




swathimathur80@xxxxxxxxx wrote:
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.

Erm, I don't think thats assembly language. It looks like it is C, for
some kind of microprocessor. Also, the x86 line of processors
don't have a Tx_Flag that I know of, so this most definitly is not
on an x86 chip.

Wrong newsgroup, and more info needed.

--Dragontamer

.



Relevant Pages

  • Re: replace polling with interrupt
    ... 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 ... Now if I want to replace the above with an interupt driven process, ... easily for the inner for loop(). ...
    (comp.arch.embedded)
  • replace polling with interrupt
    ... 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 ... easily for the inner for loop(). ...
    (comp.arch.embedded)
  • Replace polling with interrupt
    ... 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 ... easily for the inner for loop(). ...
    (alt.lang.asm)
  • Re: Event Driven State Machine
    ... Place the case statement in an infinite loop, ... of it's own (aside from the occasional serial clock) it has to operate ... -- Defined as I2C Master Start Sequence ... -- Transmit the acknowledge ...
    (comp.lang.vhdl)
  • Re: Need Thread Advice
    ... immediately send data out the port. ... transmit operation was begun. ... but the release code hung in the whileloop. ... could "solve" this problem by declaring Ready volatile, ...
    (microsoft.public.vc.mfc)