We are using nRF Connect SDK 1.8.0 with Seggar Embedded and I have a number of questions.
1. What is the best Nordic example for ADC on this platform?
2. While we have been able to use add_read(), the call add_read_async() doesn't appear to exist in the 1.8.0 SDK. Why?
3. We have experimented with the ADC reference "Internal" and the accessor suggests that this is 600 mV. However, using ADC_REF_VDD_1 or ADC_REF_VDD_1_2 produce errors when adc_read() is called. Why is this?
prj.conf includes
# ADC
CONFIG_ADC=y
CONFIG_ADC_NRFX_SAADC=y
zephyr.dts includes:
adc: adc@40007000 {
compatible = "nordic,nrf-saadc";
reg = < 0x40007000 0x1000 >;
interrupts = < 0x7 0x1 >;
status = "okay";
label = "ADC_0";
#io-channel-cells = < 0x1 >;
};
4. we are using pins AIN6 and AIN7. We always get data, but it is apparently not always related to the voltage on the input pin.
Any input or suggestion would be welcome.