2 Replies Latest reply on May 13, 2015 6:39 AM by ShawnA_01

    adc_readSampleRaw gets negative value

      In SDK2.1.1, I tested adc function in BCM920736.

      When 0.2xxV is applied, adc_readSampleRaw outputs negative value.

      I understood that too high voltage over Vadc can make the output negative, but can the too low voltage affect like this?

      I just set like following.

       

      adc_SetInputRange(ADC_RANGE_0_3P6V);

      adc_adcCalibrate(3300,(ADC_INPUT_CHANNEL_SEL)Mon_cfg.adcInputConnectedToBattery);

      measurement = adc_readSampleRaw((ADC_INPUT_CHANNEL_SEL)Mon_cfg.adcInputConnectedToBattery);

       

      Thank you.