PER Firmware
Loading...
Searching...
No Matches
adc_test.c File Reference

G4 ADC loopback test verifying end-to-end conversion accuracy. More...

#include "g4_testing.h"
Include dependency graph for adc_test.c:

Detailed Description

G4 ADC loopback test verifying end-to-end conversion accuracy.

PA4 (DAC1_OUT1) must be wired to PA0 (ADC1_IN1). The test sweeps 12-bit DAC codes, reads each back with an asynchronous DMA conversion, and checks the error against a fixed tolerance. Green LED = pass, red LED = failure.

Author
Ronak Jain (jain7.nosp@m.17@p.nosp@m.urdue.nosp@m..edu)