I'm trying to implement a volume dial. I've got a potentiometer hooked into ADC 0832B (http://www.ti.com/lit/ds/symlink/adc0832-n.pdf), timing diagram below:
When I turn the volume dial, I want an interrupt to happen, then I'll start reading the data. Is there any way this chip can issue an interrupt?
I also read that SPI on rpi does not work in slave mode, so does that mean the adc cannot initiate the data transmission?
The only other way I can think of handling this is by creating a new thread which continuously polls the adc. This doesn't seem like an efficient solution though.
Do ADC chips normally have some kind of interrupt feature? Or is threads the normal way of handling this?
Thanks!