cancel
Showing results for 
Search instead for 
Did you mean: 

hello, may i know which code can i refer for ADC potentiometer ?

Angle
Associate II
 
1 ACCEPTED SOLUTION

Accepted Solutions
ODOUV.1
ST Employee

Hello,

in SPC5Studio, click on 0693W00000QKGAaQAP.pngselect you product family:0693W00000QKGAfQAP.pngselect a product and click on next:0693W00000QKGAzQAP.pngselect a driver example:

0693W00000QKGB4QAP.pngand finally select the demo application and click on finish:

0693W00000QKGBEQA5.png 

It is the same answer for any driver example, any product family

Best regards

View solution in original post

14 REPLIES 14
Erwan YVIN
ST Employee

hello ,

Which MCU do you use ?

please check the test Application in SPC5 families in SPC5Studio (ADC part)

Best Regards

Erwan

ODOUV.1
ST Employee

Hello,

in SPC5Studio, click on 0693W00000QKGAaQAP.pngselect you product family:0693W00000QKGAfQAP.pngselect a product and click on next:0693W00000QKGAzQAP.pngselect a driver example:

0693W00000QKGB4QAP.pngand finally select the demo application and click on finish:

0693W00000QKGBEQA5.png 

It is the same answer for any driver example, any product family

Best regards

Hi Erwan,

i'm using SPC57 (SPHAERO). Which one i need to select?0693W00000QKGCHQA5.png 

what is different between "saradc_lld_cfg.h" and "adc_lld_cfg.h"? i got confuse between these two.

ODOUV.1
ST Employee

saradc_lld_cfg.h is the only one used on SPHAERO product, do not mind about other.

What means by {8U,9U} and {0U,0U} ? One more thing whats is "anp" stand for and function?.

0693W00000QKGMMQA5.png

be careful, you are not looking to the SPHAERO demo (SPC574S) but to the VELVETY one (SPC570S) do you confirm you product is SPC574S ?

ODOUV.1
ST Employee

U is used to define unsigned immediate for MISRA purposes

anp, I suppose it stands for analogue port ? as it is used to select analogue channels

oh i think i wrongly open the VELVELTY one. is it this one for sphaero line (ref pic i send) ? yes i confirm my product is spc574s0693W00000QKGVOQA5.png