MikroElektronika PIC Microcontrollers PIC16 Instrukcja Użytkownika Strona 141

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 172
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 140
mikroBASIC
- Basic Compiler for Microchip PIC microcontrollers
136
mikroBASIC
MikroElektronika: Development tools - Books - Compilers
making it simple...
page
sub procedure CF_WRITE_BYTE(dim byref CtrlPort as byte, dim byref DataPort
as byte, dim BData as byte)
Ports must be initialized, CF must be initialized for write operation (see
CF_WRITE_INIT).
CtrlPort - control port , DataPort - data port , dat - is data byte written to CF.
Write 1 byte to CF. This procedure has effect if writing is previously initialized,
and all 512 bytes are transferred to a buffer.
sub procedure CF_WRITE_WORD(dim byref CtrlPort as byte, dim byref DataPort
as byte, dim WData as word)
Ports must be initialized, CF must be initialized for write operation (see
CF_WRITE_INIT).
CtrlPort - control port , DataPort - data port , dat - is data word written to CF.
Writes 1 word to CF. This procedure has effect if writing is previously initialized,
and all 512 bytes are transferred to a buffer.
sub procedure CF_READ_INIT(dim byref CtrlPort as byte, dim byref DataPort
as byte, dim Adr as longint, dim SectCnt as byte)
Ports must be initialized.
CtrlPort - control port , DataPort - data port , Adr - specifies sector address from
where data will be read, SectCnt - parameter is total number of sectors prepared
for read operations.
This procedure initializes CF card for write operation.
CF_WRITE_BYTE
Prototype:
Parameters:
Effects:
Precondition:
CF_WRITE_WORD
Prototype:
Parameters:
Effects:
Precondition:
CF_READ_INIT
Prototype:
Parameters:
Effects:
Precondition:
Przeglądanie stron 140
1 2 ... 136 137 138 139 140 141 142 143 144 145 146 ... 171 172

Komentarze do niniejszej Instrukcji

Brak uwag