Hello,
status = "okay";
};
compatible = "nordic,nrf-spim";
status = "okay";
sck-pin = <13>;
mosi-pin = <09>;
miso-pin = <40>;
};
Hello,
Hi Learner,
Yes, that should be correct.
p0.04 of the nRF5340, so AIN1
https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf5340_pdk%2FUG%2Fnrf5340_PDK%2Fhw_analog_pins.html
Hi Martin,
According to the PCA10095 schematics of the nRF5340 PDK (nRF5340-QKAA) pin 4 on P0.04 is AIN0 not AIN1.
Could you please double check. Thank you.
Kind regards
Mohamed
Hi Mohamed,
You are correct, there seems to be some difference in the User guide and the Schematic.
I will check this internally so it will be corrected.
Since the only inconsistency is the user guide, The correct Pin naming is the the schematic and the product spec. which states: P0.04 is AIN0
Thank you.
Hi Martin,
I give up. I tried few flavours of the overlay file and none worked. The project always fail to load.
# Method 1:
&adc {
# compatible = "nordic,nrf-saadc";
compatible = "voltage-divider";
adc5:adc@... {
label = "AIN_5";
}
adc7:adc@... {
label = "AIN_5";
}
n: node {
io-channels = <&adc5 26>, <&adc7 28>;
io-channel-names = "FOIL", "STRAP";
};
};
# Method 2:
adc0: adc@4000E000 {
compatible = "nordic,nrf-saadc";
# compatible = "voltage-divider";
label = "ADC_0";
};
n: node {
io-channels = <&adc0 4>;
io-channel-names = "AIN_0";
};
Kind regards
Mohamed