MikroElektronika PIC Microcontrollers PIC16 Fiche technique Page 89

  • 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 88
Programming PIC Microcontrollers in BASIC - mikroElektronika
Example
CF_Read_Init(PORTB, PORTD, 590, 1) ' Initialize write at sector address
590
' of 1 sector (512 bytes)
5.2.5.7 CF_Read_Byte – Reads 1 byte from CF
Prototype
sub function CF_READ_BYTE(dim byref CtrlPort as byte, dim byref DataPort
as byte) as byte
Description Function reads 1 byte from Compact Flash. Ports need to be initialized, and CF must be initialized for reading.
Parameters:
CtrlPort - control port,
DataPort - data port
Example
PORTC = CF_Read_Byte(PORTB, PORTD) ' read byte and display on PORTC
5.2.5.8 CF_Read_Word – Reads 1 word from CF
http://www.mikroelektronika.co.yu/english/product/books/picbasicbook/05.htm (47 sur 112)05/11/2004 02:20:52
Vue de la page 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 193 194

Commentaires sur ces manuels

Pas de commentaire