how to measure 100% PWM using S12ZVML64

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to measure 100% PWM using S12ZVML64

Jump to solution
1,148 Views
NoahXu
Contributor III

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?

0 Kudos
Reply
1 Solution
1,128 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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.

danielmartynek_0-1706002339583.png

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

 

 

 

 

View solution in original post

0 Kudos
Reply
1 Reply
1,129 Views
danielmartynek
NXP TechSupport
NXP TechSupport

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.

danielmartynek_0-1706002339583.png

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

 

 

 

 

0 Kudos
Reply