Say I'm using pic16f17126
How do you setup On Interrupt PORTChange to interrupt on both rising and falling edge?
Back story if needed. I'm creating a quadrature encoder and I would like to read both rising and falling edge of both channels A and B to create x4 resolution.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
my first assumption is for example you are setting on PortA IOC on both edges, you set IOCAP for positif edge, and IOCAN for negative edge. So, you can catch both event.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Say I'm using pic16f17126
How do you setup On Interrupt PORTChange to interrupt on both rising and falling edge?
Back story if needed. I'm creating a quadrature encoder and I would like to read both rising and falling edge of both channels A and B to create x4 resolution.
Hello,
my first assumption is for example you are setting on PortA IOC on both edges, you set IOCAP for positif edge, and IOCAN for negative edge. So, you can catch both event.
Thank you.