how to measure 100% PWM using S12ZVML64?
i use the rising edge and falling edge to measure the period and hign pulse.
if 100%pwm, there is no edge to detect , how to measure?
Solved! Go to Solution.
Hello @NoahXu,
Since there won't be any edge detected, it has to be implemented in SW.
The state of the TIM pins can be read.
For example, in the TIM overflow interrupt.
If two pin reads HIGH in two interrupts, there is 100% duty cycle at least for one TIM period.
Regards,
Daniel
Hello @NoahXu,
Since there won't be any edge detected, it has to be implemented in SW.
The state of the TIM pins can be read.
For example, in the TIM overflow interrupt.
If two pin reads HIGH in two interrupts, there is 100% duty cycle at least for one TIM period.
Regards,
Daniel