2022-06-30 07:08 PM
Solved! Go to Solution.
2022-07-01 02:29 AM
if i used the potentiometer on pin PI[1] and PI[2], which part in the code that explain about the pin number/ where i need to modified the code for pin number?
2022-07-01 03:16 AM
ion default example, the SARADC supervisor0 is used:
/* change driverUnderTest value to test others SARADC modules. */
driverUnderTest = &SARADC12DSV;
corresponding into low level driver component to this check box:
the channel used in channel 1:
uint8_t anp[NUMOFCHANNELS] = {1U};
in Reference Manual, it correspond to pin PB[6]:
you can verify it in the outline of the pinmap tool:
ANP1 correspond to pin PB[6]
On your side, if you want to use for example PI[1] as analogue input, then use the pinmap tool to do so
and then you will have to enable channel5 ANP5 of ADC_12b_1
2022-07-01 03:21 AM
of course you will have to reconfigure the low level driver component to enable ADC_12b_1 and configure channel 5 of ADC_1 instead of channel1 of ADC_SV0 which is the default example
2022-07-03 02:21 AM
ohh i understand. Btw where can i get this reference manual ?
2022-07-04 12:52 AM
go to www.st.com
search for you product (eg SPC574)
you will find associated documentation and the reference manual