MikroElektronika PIC Microcontrollers PIC16 Dokumentacja Strona 122

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 266
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 121
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules
Fig. 7-1 ADC Mode and Registers
The module is under the control of the bits of four registers:
ADRESH - Contains high byte of conversion result;
ADRESL - Contains low byte of conversion result;
ADCON0 - Control register 0; and
ADCON1 Control register 1
ADRESH and ADRESL Registers
When converting an analog value into a digital one, the result of the 10-bit A/D conversion will be stored in these two
registers. In order to deal with this value easier, it can appear in two formats- left justified and right justified. The ADFM
bit of the ADCON1 register determines the format of conversion result (see figure 7-2). In the event that A/D converter is
not used, these registers may be used as general-purpose registers.
http://www.mikroe.com/en/books/picmcubook/ch7/ (2 of 14)5/3/2009 11:34:24 AM
Przeglądanie stron 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 265 266

Komentarze do niniejszej Instrukcji

Brak uwag