Adc hardware triggering using ftm-pdb S32k146

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

Adc hardware triggering using ftm-pdb S32k146

607件の閲覧回数
S32k1
Contributor I

Hi,

I need to trigger the adc1 Hw unit which need to be in hardware triggered by ftm0(pwm). The adc conversion has to be triggered at the midpoint of ON period of PWM output. I'm using 2 pwm signals which are left and right aligned(ftm0_ch0 and ftm0_ch2).

Can you help how to configure for the above combination.

0 件の賞賛
返信
2 返答(返信)

572件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@S32k1

you can refer to the demo in the attachment,this demo test on S32 DS V3.4 and SDK Version is RTM 4.0.2.

for you better understanding , you can take a look at the decument AN13000,Figure 16.

https://www.nxp.com/search?keyword=AN13000&start=0 

Senlent_0-1700646449346.png

 

0 件の賞賛
返信

555件の閲覧回数
S32k1
Contributor I

Hi@Senlent 

In my eb tresos their is no provision for configuring the pdb pretriggers, since I need to trigger the adc conversion at the mid of ON time period of the pwm signal. Also I need to know how this pretriggers values are configured( in my case I need the pretrigger to be at the 50% of the active pwm pulse).

I only see the trgmux logic group configuration in the mcl module where I can configure the trgmux_inout mapping like the trig source and the target module.

0 件の賞賛
返信