is it possible to trigger a IOC on a acd pin ?
cheers
Sheldon
is it possible to trigger a IOC on a acd pin ?
cheers
Sheldon
My hunch is that it should be possible. You may need to configure the pin for digital input to capture the IO Change and then switch the pin to analog to get the analog value.
but would that not work if i was looking for a analog change not a logic change ?
Obviously not. You cannot have an interrupt on analog change.
Hello,
You did not mention which pic you are using? Many pics have comparator modules connected to the analog pins. These can generate interrupts on change by setting the reference voltage to your desired trigger level.
Just an idea, depending on your specific pic and available pins.
thats a good thought . the pic i am using is 16F1947 ,
I IOC pins cannot be an analog pin on this chip.
reason is i am using a 4 analog pins connected to a touch panel , so would be good to use a interrupt to serve the routine
Bookmarks