how to measure 100% PWM using S12ZVML64

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

how to measure 100% PWM using S12ZVML64

跳至解决方案
1,154 次查看
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 项奖励
回复
1 解答
1,134 次查看
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 项奖励
回复
1 回复
1,135 次查看
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 项奖励
回复