Capture timer sync for MCPWM unit 0 and 1
Posted: Mon Jul 07, 2025 10:32 pm
I¨m dabbling with a Time Delay Of Arrival (TDOA) system using four microphones. The microphones provides a digital output when the sound level reaches above a threshold set by a potentiometer.
As each MCPWM unit only has three capture channels I need to capture using both MCPWM unit 0 and unit 1.
The capture timers for the two units seem to be a bit off. At least I get the same capture timer value for all three channels on unit 0 and a different value from the one on unit 1, tested by using the same input signal for all four inputs.
Anyone know of some example code that shows how to sync the capture timers used by unit 0 and unit 1?
As each MCPWM unit only has three capture channels I need to capture using both MCPWM unit 0 and unit 1.
The capture timers for the two units seem to be a bit off. At least I get the same capture timer value for all three channels on unit 0 and a different value from the one on unit 1, tested by using the same input signal for all four inputs.
Anyone know of some example code that shows how to sync the capture timers used by unit 0 and unit 1?