Rainbow-electronics ATmega64C1 Manuale Utente Pagina 243

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 366
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 242
243
7647A–AVR–02/08
ATmega32/64/M1/C1
Bit 4, 2, 1, 0 – MUX4, MUX3, MUX2, MUX1, MUX0: ADC Channel Selection Bits
These 4 bits determine which analog inputs are connected to the ADC input. The different set-
ting are shown in Table 18-5.
If these bits are changed during a conversion, the change will not take effect until this conversion
is complete (it means while the ADIF bit in ADCSRA register is set).
18.9.2 ADC Control and Status Register A – ADCSRA
Bit 7 – ADEN: ADC Enable Bit
Set this bit to enable the ADC.
Clear this bit to disable the ADC.
Clearing this bit while a conversion is running will take effect at the end of the conversion.
Table 18-5. ADC Input Channel Selection
MUX4 MUX3 MUX2 MUX1 MUX0 Description
00000ADC0
00001ADC1
00010ADC2
00011ADC3
00100ADC4
00101ADC5
00110ADC6
00111ADC7
01000ADC8
01001ADC9
01010ADC10
0 1 0 1 1 Temp Sensor
01100VCC/4
01101ISRC
01110AMP0
0 1 1 1 1 AMP1 (- is ADC8, + is ADC9)
10000AMP2 (- is ADC6)
1 0 0 0 1 Bandgap
10010GND
10011Reserved
101xxReserved
11xxxReserved
Bit 76543210
ADEN ADSC ADATE ADIF ADIE ADPS2 ADPS1 ADPS0 ADCSRA
Read/Write R/W R/W R/W R R/W R/W R/W R/W
Initial Value 0 0 0 0 0 0 0 0
Vedere la pagina 242
1 2 ... 238 239 240 241 242 243 244 245 246 247 248 ... 365 366

Commenti su questo manuale

Nessun commento