ADCSRA

Abstract

The ADCSRA(ADC Control and Status Register A) is a register to control AD conversion.

Source Code

The ADCSRA is defined in hardware/tools/avr/avr/include/avr/iom328p.h as below.

1
2
3
4
5
6
7
8
9
#define ADCSRA _SFR_MEM8(0x7A)
#define ADPS0 0
#define ADPS1 1
#define ADPS2 2
#define ADIE 3
#define ADIF 4
#define ADATE 5
#define ADSC 6
#define ADEN 7

The 0x7A is the address where the ADCSRA register exists. It calls the _SFR_MEM8().

Version

7.3.0-atmel3.6.1-arduino7

Last Update

May 15, 2021

inserted by FC2 system