R5F10DPJLFB ADC Driver Sample code

Hello Sir,

I already have driver written, but the raw ADC count is differ in between 10-20 count.

So might be we are missing something in the logic.

If we have sample driver code,

FYI:

We are using below configuration for ADC

- Single Shot

- Software trigger

Thanks,

Nitin

Parents
  • You will always have a smaller or bigger fluctuation, first and foremost due to thermal noise which exists always.

    You may also have other sources of noise as Hossein mentioned, and as a result there will be an overall error of the ADC.

    On your device the overall error is ensured to be < 3.5 LSB and has a typical value of 1.2 LSB.

    Also, please make sure you do not have any floating analog input as they can induce noise in an adjacent analog input. Please follow section 2.3 section on how to handle unused pins.

    www.renesas.com/.../rl78d1a-users-manual-hardware-rev110

Reply
  • You will always have a smaller or bigger fluctuation, first and foremost due to thermal noise which exists always.

    You may also have other sources of noise as Hossein mentioned, and as a result there will be an overall error of the ADC.

    On your device the overall error is ensured to be < 3.5 LSB and has a typical value of 1.2 LSB.

    Also, please make sure you do not have any floating analog input as they can induce noise in an adjacent analog input. Please follow section 2.3 section on how to handle unused pins.

    www.renesas.com/.../rl78d1a-users-manual-hardware-rev110

Children