RL78/G16 ADC counts not getting as expected

I am using RL78/G16 32pin micro, I have set the required fields for ADC counts,

As per  smart configurator in CS+ peripheral devices are set, but there is no option of setting internal reference voltage as 0.815volts hence I found that my ADC counts 774 value on 0volts.

Instead it should read 0 on 0volts.

Is it because reference is taken 4.9 or 5volts by default by the configurator or something else ?

As i am getting 1023 count value at 5volts.

Parents
  • Hello,

    Not sure what you are trying to do but if you want to convert the internal reference voltage, you cannot select it on Smart Configurator channels.

    Instead use the generated API to set the internal reference voltage channel:

    For example: R_Config_ADC_Set_ADChannel( ADINTERREFVOLT )

    The typical value of this voltage is 0.815 V.

    Regards

Reply
  • Hello,

    Not sure what you are trying to do but if you want to convert the internal reference voltage, you cannot select it on Smart Configurator channels.

    Instead use the generated API to set the internal reference voltage channel:

    For example: R_Config_ADC_Set_ADChannel( ADINTERREFVOLT )

    The typical value of this voltage is 0.815 V.

    Regards

Children