This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF52832: how to set AREF to external (P0.02)

Hello, 

How do I set the analog reference voltage to external pin P0.02? I'm using the arduino environment so I don't know how to set it via those registers?
I'm currently using this library. 

If it is not too much, can you share to me some code which I can base my code or any reference so I can achieve this goal.

Thank you in advance.

https://github.com/sandeepmistry/arduino-nRF5

Parents Reply
  • AREF: "You can use either positive or negative pin as the reference, depending on what numeric sign you want in your result. " 

    You can use any analog pin as an analog reference. I normal single-ended operation we tie the negative pin to ground, however to use an analog reference I suggest you tie the negative pin of channel 0 to AIN0 (p0.02), and the positive to whatever signal your're measuring. 

Children
Related