Compact Flash operation by interrupts

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

Reply to
Vladimir Vassilevsky
Loading thread data ...

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 to
Michael N. Moran

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

formatting link

Reply to
Vladimir Vassilevsky

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.