I'm asking a question to check my knowledge; I don't have a specific code example.
I am familiar with other Arduino hardware such as the Uno, Mega and Nano IOT. All of them support a mechanism whereby a compare counter is checked during a count. When the count matches, a signal can be generated on a GPIO. The RP2040 Connect also supports this basic feature. But the other controllers can also be made to fire an IRQ/ISR when the count has matched. In my case, I want to have a phase correct PWM and choose whether to fire the IRQ/ISR on either the uptick or downtick side of the waveform when the count matches with the compare register/counter. I have done this on the other devices.
I am familiar with the fact that when counter wraps (for phase correct, when the counter downcounts to zero again) and can fire an ISR, but was looking to see if there was a way to fire this when a compare/match was made.
I know there are ways to do something similar with timers, etc. but am asking specifically about this feature in case I overlooked something in the datasheet or sdk documentation.