A paused chip is not running in real time, so timing questions need to be investigated with the scope. We’ll come back to this when we start using interrupts.
Digital multimeter (DMM) and Analog Discovery 2 (AD2); the checklist is in the Reference section
A breakpoint stops the processor, so anything that depends on real-time behavior stops with it: a paused chip cannot blink, sample, or keep time. For a timing question the oscilloscope is the better tool, because it watches the pins without pausing the program. We’ll come back to this when we start using interrupts.
These tools are also how you check code you did not write, including code an AI tool drafted for you. The course policy (AI Policy for ENGS 28) asks you to be able to explain every line you submit; the compiler’s report, a well-placed printf, and a register audit in the debugger are the tooling that lets you find out whether you can.
Launch your ADCPot.c under the debugger. Set a breakpoint on the line after the EOC (end of conversion) wait, and watch ADC_DR in the SFRs view while you turn the potentiometer between stops.
Then audit your own initialization: halt after pa0_adc_init() and check ADC_CHSELR and ADC_CR against what your code claims to have written. Does every bit you set actually read back set?