ADC Configuration Settings for S32K118

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

ADC Configuration Settings for S32K118

938件の閲覧回数
durgaprasad6122000
Contributor I

Hi,

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

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

909件の閲覧回数
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 件の賞賛
返信

866件の閲覧回数
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 件の賞賛
返信

857件の閲覧回数
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 件の賞賛
返信