S32K144 - FTM reload and synchronization

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

S32K144 - FTM reload and synchronization

1,310 Views
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
Labels (1)
0 Kudos
Reply
1 Reply

930 Views
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 Kudos
Reply