Hi guys,
I've been using the ADC with the internal reference of 0.9V.
However, to increase the scale of the ADC without using the gain 1/4 I've made a revision to the PCB to use the REF333 ic on pin P1.08 (External reference for SAADC). I'm now struggling with the setup on Zephyr. I've searched a bit but no luck so far.
I'm using the native SAADC libs since I have PPP set up for auto-converting based on a timer.
I've applied the following to the channels:
"saadc_channels[i].channel_config.gain = NRF_SAADC_GAIN1;
I think I need to change the REFSEL register to select "VREF = AREF" and maybe the EXTREFSEL to setup P1.08? What is the Zephyr way of doing this?
One last question, I've noticed this on the datasheet:
"Note: The external reference voltage should be close the internal reference voltage. Preferably no more than 5% deviation from the internal reference voltage, VREF. Using a lower reference voltage will lead to increased leakage, and can lead to undefined behaviour."
Does this means that I'm not recommended to supply 3.3V to the Ref pin? Or is this just a power saving thing, that cause leakage? This will be a device plugged to the outlet, so no need for power save modes.
Thank you for the ongoing support,
Best regards,
Fernando Fontes