S32K144 - FTM reload and synchronization

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

S32K144 - FTM reload and synchronization

1,312件の閲覧回数
swatimali
Contributor I

Please explain below highlighted points 1,2,3.(yellow). This is processor expert code for FTM . In our code we are using this function with softwareTrigger =1 .

  1.  What will happen if we uncomment 1. And comment 2.
  2. In this function we are using both PWMLoad and Software trigger is it ok?174161_174161.pngpastedImage_1.png
ラベル(1)
0 件の賞賛
返信
1 返信

932件の閲覧回数
PetrS
NXP TechSupport
NXP TechSupport

Hi,

If the LDOK bit is set the CnV registers will be updated on next reload point, if the SYNCEN=1.

Assuming enhanced PWM synchronization (SYNCMODE = 1), if SYNCEN=1, the SW trigger causes CNV register updating either immediately (if SWRSTCNT = 1) or on next selected reload point (if SWRSTCNT = 0).

 

Thus the code you mentioned can cause CnV update on the same time (reload point) or probably 2 updates at different times depending on configured sync mechanism.

 

The latest driver version (EAR 0.8.2) does not include LDOK bit setting.

BR, Petr

0 件の賞賛
返信