MikroElektronika PIC Microcontrollers PIC16 Spezifikationen Seite 134

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 266
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 133
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 7: Analog Modules
Formula used to calculate voltage reference:
VRR = 1 (low range)
CVref = ([VR3:VR0]/24)VLADDER
VRR = 0 (high range)
CVref = (VLADDER/4) + ([VR3:VR0]VLADDER/32)
Vladder = Vdd or ([Vref+] - [Vref-]) or Vref+
Step 3 - Starting operation:
Enable interrupt by setting bits CMIE (PIE register), PEIE and GIE (both in the INTCON register);
Read bits C1OUT and C2OUT of the CMCON register; and
Read flag bit CMIF of the PIR register. After being set, this bit must be cleared in software.
Previous Chapter | Table of Contents | Next Chapter
http://www.mikroe.com/en/books/picmcubook/ch7/ (14 of 14)5/3/2009 11:34:24 AM
Seitenansicht 133
1 2 ... 129 130 131 132 133 134 135 136 137 138 139 ... 265 266

Kommentare zu diesen Handbüchern

Keine Kommentare