how to measure 100% PWM using S12ZVML64

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to measure 100% PWM using S12ZVML64

ソリューションへジャンプ
1,179件の閲覧回数
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,159件の閲覧回数
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,160件の閲覧回数
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 件の賞賛
返信