MikroElektronika PIC Microcontrollers PIC16 Fiche technique Page 85

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 194
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 84
Programming PIC Microcontrollers in BASIC - mikroElektronika
Prototype
sub procedure CF_INIT_PORT(dim byref CtrlPort as byte, dim byref DataPort
as byte)
Description The procedure initializes ports appropriately:
<CtrlPort> is control port, and <DataPort> is data port to which CF is attached.
Example
CF_Init_Port(PORTB, PORTD) ' Control port is PORTB, Data port is PORTD
5.2.5.2 CF_Detect – Checks for presence of CF
Prototype
sub function CF_DETECT(dim byref CtrlPort as byte) as byte
Description The function checks if Compact Flash card is present. Returns true if present, otherwise returns false.
<CtrlPort> must be initialized (call CF_INIT_PORT first).
Example
do
nop
loop until CF_Detect(PORTB) = true ' wait until CF card is inserted
5.2.5.3 CF_Write_Init – Initializes CF card for writing
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (43 sur 112)05/11/2004 02:20:52
Vue de la page 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 193 194

Commentaires sur ces manuels

Pas de commentaire