s32k144 - PWM to ADC sync

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

s32k144 - PWM to ADC sync

Jump to solution
2,038 Views
aniket_bagade
Contributor III

dumitru-daniel.popa

Hi

  Can you please elaborate the use of PDB(Programmable delay block) in s32k144.How PDB block helps to make synchronization of FTM and ADC? What will Happen if I bypass this block? also can you share any document or Videos that gives information about Synchronization between ADC and FTM through PDB. 

Regards

Aniket

Tags (5)
1 Solution
1,769 Views
mariuslucianand
NXP Employee
NXP Employee

Hello aniket.bagade@external.hella.com‌,

Regarding of using the FTM-PWM-ADC chain triggering I can attach a figure that shows how to set the peripherals in the Model Based Design Toolbox. The following image shows the configuration for FTM3 peripheral, set to propagate the Initialization Trigger signal. Now, the PDB is set to be triggered by The TRGMUX source, which is selected to be the FTM3 Initialize Trigger (the one enabled before). For the ADC this is set to be triggered by the PDB, a hardware conversion having the PDB output signal as source.

pastedImage_3.png

For more information, you can have a look on the Module 6: Current Sensing (Part 1/2)  lessons from the PMSM Control Workshop. Unfortunately we don't have a dedicated video about PDB module.

A good Application note, even if the platform is different, but the peripherals are the same is [3]. Also, the link [2] provides an Application node about the ADC and has a chapter related with the PDB.

But, in the end the most information you can get is from the S32K Reference Manual [1].

As examples, together with our toolbox, we provide an example called ftm_pdb_adc_chaining_s32k14x and also a FreeMaster project for this example. You can start your implementation from this example.

If you encounter issues with a Simulink  model that you are trying to develop, feel free to send us the model and we will have a look on it.

Hope this helps,

Marius

[1]https://www.nxp.com/docs/en/reference-manual/S32K-RM.pdf 

[2]https://www.nxp.com/docs/en/application-note/AN12217.pdf 

[3]https://www.nxp.com/docs/en/application-note/AN5380.pdf 

View solution in original post

1 Reply
1,770 Views
mariuslucianand
NXP Employee
NXP Employee

Hello aniket.bagade@external.hella.com‌,

Regarding of using the FTM-PWM-ADC chain triggering I can attach a figure that shows how to set the peripherals in the Model Based Design Toolbox. The following image shows the configuration for FTM3 peripheral, set to propagate the Initialization Trigger signal. Now, the PDB is set to be triggered by The TRGMUX source, which is selected to be the FTM3 Initialize Trigger (the one enabled before). For the ADC this is set to be triggered by the PDB, a hardware conversion having the PDB output signal as source.

pastedImage_3.png

For more information, you can have a look on the Module 6: Current Sensing (Part 1/2)  lessons from the PMSM Control Workshop. Unfortunately we don't have a dedicated video about PDB module.

A good Application note, even if the platform is different, but the peripherals are the same is [3]. Also, the link [2] provides an Application node about the ADC and has a chapter related with the PDB.

But, in the end the most information you can get is from the S32K Reference Manual [1].

As examples, together with our toolbox, we provide an example called ftm_pdb_adc_chaining_s32k14x and also a FreeMaster project for this example. You can start your implementation from this example.

If you encounter issues with a Simulink  model that you are trying to develop, feel free to send us the model and we will have a look on it.

Hope this helps,

Marius

[1]https://www.nxp.com/docs/en/reference-manual/S32K-RM.pdf 

[2]https://www.nxp.com/docs/en/application-note/AN12217.pdf 

[3]https://www.nxp.com/docs/en/application-note/AN5380.pdf