MikroElektronika PIC Microcontrollers PIC16 Arkusz Danych Strona 85

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 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
Przeglądanie stron 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 193 194

Komentarze do niniejszej Instrukcji

Brak uwag