Rainbow-electronics ATmega64M1 Manuel d'utilisateur Page 248

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 343
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 247
248
8209A–AVR–08/09
ATmega16M1/32M1/64M1
Consequently, in 10-bit configuration, the ADCL register must be read first before the ADCH.
Nevertheless, to work easily with only 8-bit precision, there is the possibility to left adjust the
result thanks to the ADLAR bit in the ADCSRA register. Like this, it is sufficient to only read
ADCH to have the conversion result.
22.10.5.1 ADLAR = 0
22.10.5.2 ADLAR = 1
22.10.6 DIDR0 – Digital Input Disable Register 0
Bit 7:0 – ADC7D..ADC0D, ACMPN0D, ACMPN1D, ACMPN2D, ACMPN3D, ACMP2D,
AMP2ND:
ADC7:0, ACMPN0, ACMPN1, ACMPN2, ACMPN3, ACMP2, AMP2N Digital Input Disable
When this bit is written logic one, the digital input buffer on the corresponding ADC pin is dis-
abled. The corresponding PIN Register bit will always read as zero when this bit is set. When an
analog signal is applied to the ADC7:0 pin and the digital input from this pin is not needed, this
bit should be written logic one to reduce power consumption in the digital input buffer.
22.10.7 DIDR1 – Digital Input Disable Register 1
Bit 76543210
- - - - - - ADC9 ADC8 ADCH
ADC7 ADC6 ADC5 ADC4 ADC3 ADC2 ADC1 ADC0 ADCL
Read/Write RRRRRRRR
RRRRRRRR
Initial Value 0 0 0 0 0 0 0 0
00000000
Bit 76543210
ADC9 ADC8 ADC7 ADC6 ADC5 ADC4 ADC3 ADC2 ADCH
ADC1 ADC0 - - - - - - ADCL
Read/Write RRRRRRRR
RRRRRRRR
Initial Value 0 0 0 0 0 0 0 0
00000000
Bit 76543210
ADC7D ADC6D
ACMPN1D
AMP2ND
ADC5D
ACMPN0D
ADC4D ADC3D
ACMPN2D
ADC2D
ACMP2D
ADC1D ADC0D
ACMPN3D
DIDR0
Read/Write R/W R/W R/W R/W R/W R/W R/W R/W
Initial Value 00000000
Bit 76543210
- AMP2PD ACMP0D AMP0PD AMP0ND ADC10D
ACMP1D
ADC9D
AMP1PD
ACMP3D
ADC8D
AMP1ND
DIDR1
Read/Write - - R/W R/W R/W R/W R/W R/W
Initial Value 00000000
Vue de la page 247
1 2 ... 243 244 245 246 247 248 249 250 251 252 253 ... 342 343

Commentaires sur ces manuels

Pas de commentaire