5 Replies Latest reply on Mar 16, 2017 11:18 AM by mcprakash2009_2304236

    SAR ADC reading random values between 1430-1460




       I am trying to read an analog signal with the SAR ADC. In the components (Analog), I plug in the analog signal wire directly to the + input of SAR ADC and use (Vss) as - input. 


       I am uisng external VRef (2.000 V) in the config parameter. 


       I am definite that I am getting analog signal from my sensor. However, my ADC reading is some random noise between 1430 - 1450. 




       I am using these commands: 


      void init()






      void readADC()




          val = ADC_GetResult16(0);






      Please help me out if I am missing some commands.