LPIT-TRIGMUX-PDB-ADC-DMA

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

LPIT-TRIGMUX-PDB-ADC-DMA

2,008 Views
syam
Contributor I

Hi,

iam using s32k146 , in our project we use ADC0 Channel 6, 7 & 12. For adc0 channel 12 PDB0 is used for triggering and for ADC0 channel 6 & 7 PDB1 is used for triggering. then now using  seperate channels in LPIT0 channel 0 for triggering PDB0 and  LPIT0 channel 1 for triggering PDB1. please support in this cofiguration for LPIT-TRIGMUX-PDB-ADC-DMA.

0 Kudos
Reply
7 Replies

1,971 Views
syam
Contributor I

kindly help me to solve  mentioned issue

0 Kudos
Reply

1,996 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Please specify a question or issue. Thanks

0 Kudos
Reply

1,991 Views
syam
Contributor I

In our project we need to trigger PDB0 and PDB1 individually. Here we are using LPIT0 channel 0 for PDB0 and LPIT0 channel 1 for PDB1.

PDB0 is triggering successfully by LPIT0 channel0.

but i can't able to trigger PDB1 by using LPIT0 channel1.

Here screenshots for configuration settings of PDB1, LPIT0 and TRIGMUX is attached, please support to do this.

0 Kudos
Reply

1,970 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

components setting you share looks normal, so be sure all necessary init is done in software.
However, one ADC and one PDB work as one pair: PDB0-ADC0, PDB1-ADC1. So you cannot trigger ADC0 from PDB1, you mentioned.

You can refer to below example. It just trigger both PBDs from single LPIT channel, but can be easily modified.https://community.nxp.com/t5/S32K-Knowledge-Base/Example-S32K144-PDB-ADC-DMA-S32DS-ARM-2018-R1/ta-p/...

BR, Petr

0 Kudos
Reply

1,967 Views
syam
Contributor I

thanks for reply,

i already got the example you shared now.

I already configured PDB0-ADCO for triggering channel 12 and collected data successfully.

in my project we only using ADC0 channels channel 12 , channel 6 and channel 7.  but not need to trigger all channel in same time . based on my requirements i need to trigger ADC0 channel 12  at some conditions and another conditions  i need trigger ADC0 channel 6 & 7. Is it possible to do like this.

 

0 Kudos
Reply

1,927 Views
syam
Contributor I

Hi,

Kindly  inform me is it possible to do like this.

0 Kudos
Reply

1,918 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

this will not be possible using single PBD module. Either sample all channels together or use second PDB-ADC modules for rest of channels.

BR, Petr

0 Kudos
Reply