ADC Configuration Settings for S32K118

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

ADC Configuration Settings for S32K118

943 Views
durgaprasad6122000
Contributor I

Hi,

Please share Doc how to configure ADC in S32 Design studio.

0 Kudos
Reply
3 Replies

914 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @durgaprasad6122000,

Please refer to the SDK example:

Julin_AragnM_0-1725647103268.png

There is also the following document for S32K1xx ADC guidelines, spec and configuration.

Best regards,
Julián

0 Kudos
Reply

871 Views
durgaprasad6122000
Contributor I
Hi @Julián_AragónM,

I need to configure an S32K118 MCU from scratch and I'm new to this. Could you help me with it?

Thanks!
0 Kudos
Reply

862 Views
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @durgaprasad6122000,

You can use the examples I've mentioned before to configure the ADC. The Adc_Pdb_Ip_Example_S32K118 does the following.

The example uses the software trigger and hardware trigger from Pdb module to trigger ADC conversion.

The used ADC channel is BandGap (~1.45V corresponding to 1200 with 12 bits resolution at assumed 5.0V reference). The raw read ADC data will be compared with provided value. If the result is correct, the program will go through the While loop of checking this result in Adc user notification (AdcConversionCompleteNotif).

The example is divided in 2 parts:

  • Part 1: The sequence of conversion is triggered using Software triggering from ADC
  • Part 2: The sequence of conversion is triggered using Hardware triggering from Pdb

Both parts of the example make use of ADC interrupts.

  • Initialize the ADC/PDB modules.
  • Enable ADC IRQs in interrupt controller.
  • Start the ADC conversion by software trigger from ADC
  • Read raw ADC data conversion and compare with provided value
  • Switch ADC trigger from sofware to hardware
  • Configure PDB for triggering.
  • Start the ADC conversion by hardware trigger from Pdb
  • Read raw ADC data conversion and compare with provided value

Julin_AragnM_0-1726004430179.png

Best regards,
Julián

0 Kudos
Reply