Can the channelB to N of ADC in S32K144 triggered by software?

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

Can the channelB to N of ADC in S32K144 triggered by software?

2,025 Views
timwang
Contributor II

I can't change the channel ID of the ADC using swtrigger to complete the conversion.捕获.PNG 

The number of the channel can only be 0,i  can't get the result of conversion if i change it.

In the RM,i find this sentence: None of the SC1B-SC1n registers are used for
software trigger operation and therefore writes to the SC1BSC1
n registers do not initiate
a new conversion.

So,should i have to enable the pdb to use multiple channels for AD conversion at the same time?

Hope to get a reply as soon as possible.

0 Kudos
Reply
2 Replies

1,495 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

You could also use SDK Peripheral Abstraction Layer (ADC PAL).

Which allows you to trigger a group of ADC conversions with a single SW or HW trigger.

SDK v0.8.5 includes adc_pal_example_s32k144

S32K144_ADC_PAL.png

Regards,

Daniel

0 Kudos
Reply

1,495 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,
I’m sorry for the late response.
Yes, only SCIA (SC1[chanIndex == 0]) can be used for software trigger.
And you can trigger only a single channel with a write to SCIA.
If you want to trigger more channels in a back-to-back conversion, use PDB.

You may refer to: https://community.nxp.com/docs/DOC-339644 

Regards,
Daniel

0 Kudos
Reply