I tried using a second timer (Timer1) to count-down the edges, hoping to produce an interrupt when Timer1 gets to zero.
However, I didn't get an interrupt and introduced a side-effect I don't understand!
Image "FlexIO_interrupt_Timer1Disabled" shows the activity coming from FLEXIO2. This is the output I expect. The configuration of Timer0 (which drives the shift clock) is shown in image "FlexIO_interrupt_Timer0Config". (I'm parallel shifting 4-bit items using Timer0 as the shift clock.)
Image "FlexIO_interrupt_Timer1Config" shows the configuration for Timer1. My intent is to count down the shifts (edges) from Timer0, expecting an interrupt when the count gets down to 0. I added an output pin to monitor what is happening.
Image "FlexIO_interrupt_Timer1Enabled" shows the results. The trace labeled FlexIO_TIM1 shows the low-going pulse when the counter should reach zero, but no interrupt is detected. But I also see some additional clocks from Timer0 (and associated shifting on the shifter outputs)!
I've read every app note, posting, manual I can find trying to understand how this peripheral works, but clearly I don't understand what is happening...
Suggestions???
Thanks!