Reply by Vladimir Vassilevsky●May 31, 20072007-05-31
Michael N. Moran wrote:
>> I am trying to implement a non-blocking driver for the CF card. So,
>> this driver has to operate by CF interrupt rather then by polling the
>> registers.
>
> Without knowing more details, I *can* say that I have
> successfully used the CF READY line as an interrupt
> mechanism, which (iirc) mirrors the ready status that
> you are polling.
Yes, you are right. I had to discover it myself; the documentation is
rather poor and often misleading. The IRQ is active by the raising
front. In the default configuration, on the sector write operation the
IRQ is generated twice: once after the "write sector" command is issued,
indicating that the CF is ready to accept the data, and the second time
after the actual write operation is complete.
Vladimir Vassilevsky
DSP and Mixed Signal Design Consultant
http://www.abvolt.com
Reply by Michael N. Moran●May 31, 20072007-05-31
Vladimir Vassilevsky wrote:
>
> I am trying to implement a non-blocking driver for the CF card. So,
> this driver has to operate by CF interrupt rather then by polling the
> registers. So far so good, however one problem remains:
> Is it possible to generate the interrupt when the write sector operation
> is complete, i.e. when the CF is ready for the next sector write?
Without knowing more details, I *can* say that I have
successfully used the CF READY line as an interrupt
mechanism, which (iirc) mirrors the ready status that
you are polling.
--
Michael N. Moran (h) 770 516 7918
5009 Old Field Ct. (c) 678 521 5460
Kennesaw, GA, USA 30144 http://mnmoran.org
"So often times it happens, that we live our lives in chains
and we never even know we have the key."
The Eagles, "Already Gone"
The Beatles were wrong: 1 & 1 & 1 is 1
Reply by Vladimir Vassilevsky●May 30, 20072007-05-30
I am trying to implement a non-blocking driver for the CF card. So,
this driver has to operate by CF interrupt rather then by polling the
registers. So far so good, however one problem remains:
Is it possible to generate the interrupt when the write sector operation
is complete, i.e. when the CF is ready for the next sector write?
VLV