COMP[Z] interrupt | Cypress Semiconductor
Hi to all,
Well, following my previous post (Freeing IOs) I need to open this new one, as it's indirectly related to.
Using now COMPZ as a ZCD in the design, I need to generate an interrupt on every change of its output (I mean going positive OR negative).
I've looked at the module and TRM datasheets but found nothing close to, and search in the forums didn't give me any clue.
I'm thinking about switching/reversing the polarity of the comparator in the interrupt handler (before the starting of the next half period) but I'd like to know if there would be a cleaner way to do it.