S32K144 PDB pulse-out trigger ADC

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

S32K144 PDB pulse-out trigger ADC

跳至解决方案
235 次查看
joshua9264
Contributor II

joshua9264_0-1788314383945.pngjoshua9264_0-1788314383945.png

joshua9264_1-1788314500502.pngjoshua9264_1-1788314500502.png

#S32K144,Can I use Pulse-OUT to trigger ADC conversion?

0 项奖励
回复
1 解答
204 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

It is possible to trigger the ADC from a PDB Pulse-Out signal, and the trigger muxing table shows this connection as a valid option.

However, the default hardware triggering scheme uses the PDB to trigger the ADC directly, which is the recommended approach. In this mode, the PDB generates all required channel pre-triggers as well as the ADC hardware trigger.

An alternative hardware triggering scheme is to use TRGMUX, selected by SIM_ADCOPT[ADCxTRGSEL].

A drawback of this approach is the limited number of pre-triggers (four) and their hardware availability. Only LPIT supports hardware pre-triggers. For other trigger sources, software pre-triggers must be configured using SIM_ADCOPT[ADCxSWPRETRG].

Therefore, in your case, you would need to configure the software pre-trigger before each PDB Pulse-Out event that is used as the ADC hardware trigger.

BR, Petr

在原帖中查看解决方案

0 项奖励
回复
2 回复数
205 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

It is possible to trigger the ADC from a PDB Pulse-Out signal, and the trigger muxing table shows this connection as a valid option.

However, the default hardware triggering scheme uses the PDB to trigger the ADC directly, which is the recommended approach. In this mode, the PDB generates all required channel pre-triggers as well as the ADC hardware trigger.

An alternative hardware triggering scheme is to use TRGMUX, selected by SIM_ADCOPT[ADCxTRGSEL].

A drawback of this approach is the limited number of pre-triggers (four) and their hardware availability. Only LPIT supports hardware pre-triggers. For other trigger sources, software pre-triggers must be configured using SIM_ADCOPT[ADCxSWPRETRG].

Therefore, in your case, you would need to configure the software pre-trigger before each PDB Pulse-Out event that is used as the ADC hardware trigger.

BR, Petr

0 项奖励
回复
195 次查看
joshua9264
Contributor II

joshua9264_1-1788335844473.pngjoshua9264_1-1788335844473.png

This config is valid,thank you

0 项奖励
回复