eTimer

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

eTimer

2,234件の閲覧回数
zhang_ke_dong
Contributor I

Hello, when I use the IC module of SDK to capture PWM signal, I first capture the high level in the interrupt, after changing the capture mode, in the capture cycle, the result is always captured high level data is wrong, the cycle is correct, why is this

0 件の賞賛
返信
2 返答(返信)

2,217件の閲覧回数
zhang_ke_dong
Contributor I

我在回调中进行测试,而高级不断拾取错误,所以我只是把它放在了 while(1) 中,而高级和周期正在拾取周期值,我对哪个步骤有问题?

0 件の賞賛
返信

2,225件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

where do you call those functions? In callback function? Can you share whole project you have?
What if you call IC_StopChannel before and IC_StartChannel after you change mode?

BR, Petr

0 件の賞賛
返信