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?
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:
Best regards,
Julián