创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


arduino:avrgcc:adcsra

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.

#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().

本页面的其他翻译:
arduino/avrgcc/adcsra.txt · 最后更改: 2016/12/25 22:15 (外部编辑)