I am trying to edit the Adc_Sar_Bctu_Ip_example_S32K344 example to read from an input pin, in this case Pin78 on the 100 pin package which corresponds to S9, rather than the internal bandgap. Is changing the ADC Physical Channel name to S9 and the define to match the correct channel number? When I try to run it it gets stuck in the endofchainnotif with data having the maxed out 14 bit value despite not having any power connected to the pin
Is there an easier/barebones way to do this?
已解决! 转到解答。
Hi,
changes you did would be enough. Even not connected external signal you will get some value converted. Put some voltage and check if you got correct conversion.
You can omit while loop in notification callback, it is there just for example purpose. Do your stuff with converted value.
BR, Petr
It never shows me a conversion, in variables all I have are these optimized out values, am I looking in the wrong place? Regardless of whether I give S9 voltage or not the data only shows 16838 if i hover it
Hi,
I tried this example on S32K344_EVB, do little code modification to do SW trigger still, connect POT output to S9 channel and see conversion normally changing as per input value.
BR, Petr
I tried to copy this and it still does not show on the variables/ data goes maximum 14 bit value. I attached the project to maybe help. My board is just an s32k342 with the bare minimum requirements to power on the board. Also for some reason in the 342 SDK VS_0 is named Board_peripherals according to a different post which is why that is different to the 344 version.
also the