S32 design studio HOW TO ADC

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

S32 design studio HOW TO ADC

738件の閲覧回数
SAL_111
Contributor II

Hi, so I recently started with S32 design studio now I want to use the ADC unit, I looked through the provided example and I could get it to run on the evaluation board but not on my PCB. But for now I want to read the supply voltage on the PCB it is routed to an analog input pin of ADC0 I can't get this application to run on my PCB with the example code when I switch the channels and pins in the config tool. Has somebody done a similar project and can provide me a snippet of the code so I know which functions I should use and how to read the voltage correctly?

0 件の賞賛
返信
1 返信

703件の閲覧回数
Julián_AragónM
NXP TechSupport
NXP TechSupport

Hi @SAL_111,

If the RTD example works on the EVB but not on your custom board, it may point to a hardware issue. Please confirm connections and voltages. You can refer to the Hardware Design Guidelines from the HW Design Package.

That said, the example for the ADC provides the necessary APIs for getting the value. Just remember to configure the analog pin and correct channel. For example, in the S32K344 EVB board, the included potentiometer is wired to ADC1_S10 (channel 34). You can simply modify the example to measure ADC1_S10 instead for normal conversions:

Julin_AragnM_3-1727728058043.png

Julin_AragnM_4-1727728061681.png

Julin_AragnM_5-1727728067142.png

Best regards,
Julián

0 件の賞賛
返信