aen-analog-validate
On-silicon analog validation: drive a voltage out of DAC0 and read it back through the ADC in a closed loop, using the portable <alp/dac.h> + <alp/adc.h> surfaces. RESULT PASS on E8.
Source: examples/aen/aen-analog-validate/.
What it does
- Opens DAC0 and writes a sweep of millivolt setpoints.
- Reads each back on the wired-loopback ADC channel and checks the match within tolerance.
The bench pinned down the correct Alif E8 references — DAC 0.750 V (DAC12_VREF_CONT=0x4) and ADC 1.8 V (ADC_VREF_CONT=0x10, RDIV=0), both grounded in hal_alif's analog_ctrl.h. This also repaired a latent build break: the four alif,adc nodes had been missing the #io-channel-cells that adc-controller.yaml requires.
board.yaml
som:
sku: E1M-AEN801
preset: e1m-evk
cores:
m55_he:
app: ./src
peripherals: [adc, dac]
diagnostics:
log_level: info
Expected output
[aen-analog-validate] DAC0 = 375 mV -> ADC = 372 mV (PASS)
[aen-analog-validate] DAC0 = 750 mV -> ADC = 748 mV (PASS)
[aen-analog-validate] RESULT PASS
See also
Questions about this page? Discuss in Community Forum