ADC
Abstract
The ADC is a macro to read ADCL/ADCH registers.
Source Code
The ADC is defined in hardware/tools/avr/avr/include/avr/iom328p.h as below.
|
|
0x78 is an I/O address of ADCL. This is a macro to call _SFR_MEM16().
This reads 16 bits value from 0x78, so 0x78 and 0x79. As 0x79 is an I/O address of ADCH, this returns combination of ADCL and ADCH.
Version
7.3.0-atmel3.6.1-arduino7
Last Update
March 21, 2023