I have two separate concertos with one being a master and one being a slave. I’m using a PWM interrupt to do controls periodically (every 5th time a PWM counter is zero). The interrupts of the master and slave need to be synced. The master gives the slave a PWM sync signal so the PWM clocks are synced up between the master and slave. The SYNCOUT of the master is defined to be when the PWM1 counter is zero. The SYNCI of the slave is the SYNCOUT of the master.
When debugging, the interrupts of the master and slave are offset from each other if the master and slave don’t start at exactly the same time. Their INTCNT counters are offset. The tech reference says “The counter is only cleared when an interrupt is sent to the PIE” so how can I get the INTCNT of each concerto synced up?
Ideally I would make the period of the sync signal longer and interrupt every time the sync event occurs so that there cannot be an offset, but I’m not sure if I have the ability to do that. I have limited gpio resources to make a different SYNCOUT signal and am not able to change the period of PWM1 which is currently serving as SYNCOUT.