MikroElektronika PIC Microcontrollers PIC16 Spécifications Page 65

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 266
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 64
mikroElektronika | Free Online Book | PIC Microcontrollers | Chapter 3: I/O Ports
Fig. 3-15 ANSEL and ANSELH Registers
The rule is:
To configure a pin as an analog input, the appropriate bit of the ANSEL or ANSELH registers must be set (1). To configure
pin as digital input/output, the appropriate bit must be cleared (0).
The state of the ANSEL bits has no affect on digital output functions. The result of any attempt to read some port pin
configured as analog input will be 0.
Fig. 3-16 ANSEL and ANSELH Configuration
In Short:
You will probably never write a program which fully utilises all the Ports in an efficient manner to justify learning all
http://www.mikroe.com/en/books/picmcubook/ch3/ (9 of 10)5/3/2009 11:32:31 AM
Vue de la page 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 265 266

Commentaires sur ces manuels

Pas de commentaire