S32k144 Adc Triggering using FTM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32k144 Adc Triggering using FTM

767 次查看
Jeevansagar
Contributor III

I am working with the NXP S32K144 microcontroller and need help configuring ADC triggering. I am using the FTM3 module to generate a 10 kHz PWM signal, which also provides an initialization trigger when the counter reaches the MOD value.

I am utilizing both ADC modules (ADC0 and ADC1) and have the following requirements:

1. ADC0 should be triggered at every PWM cycle (10 kHz) but at the peak or trough of the PWM signal, avoiding triggers during the rising or falling edges.


2. ADC1 should be triggered at 1 kHz (every 10 PWM cycles) and also avoid being triggered near the PWM edges.



Is there a way to achieve this configuration using the FTM3 or PDB modules? Any guidance or examples would be appreciated.

标记 (1)
0 项奖励
回复
1 回复

742 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi @Jeevansagar,

The FTM module provides two triggers, on Initialization and External trigger on match - but this is when the PWM signal toggles.

1.

If you need to delay the trigger, there is the PDB for that purpose. You can refer to the S32K144 Motor control demos: https://www.nxp.com/design/design-center/development-boards-and-designs/MCSPTE1AK144 

2.

The PDB interrupt can be used to count the cycles. And the PDB channel that triggers the ADC every 10 cycle can be dynamically enabled and disbabled (PDB_CHnC1).

 

Regards,

Daniel

0 项奖励
回复