User manual
260
mikoBasic PRO for PIC32
MikroElektronika
External dependencies of Compact Flash Library
The following variables must
be dened in all projects
using Compact Flash Library:
Description: Example:
dim CF_Data_Port as byte
sfr external
Compact Flash Data Port.
dim CF_Data_Port as byte at PORTD
dim CF_RDY as sbit sfr
external
Ready signal line.
dim CF_RDY as sbit at RB7_bit
dim CF_WE as sbit sfr
external
Write Enable signal line.
dim CF_WE as sbit at LATB6_bit
dim CF_OE as sbit sfr
external
Output Enable signal line.
dim CF_OE as sbit at LATB5_bit
dim CF_CD1 as sbit sfr
external
Chip Detect signal line.
dim CF_CD1 as sbit at RB4_bit
dim CF_CE1 as sbit sfr
external
Chip Enable signal line.
dim CF_CE1 as sbit at LATB3_bit
dim CF_A2 as sbit sfr
external
Address pin 2.
dim CF_A2 as sbit at LATB2_bit
dim CF_A1 as sbit sfr
external
Address pin 1.
dim CF_A1 as sbit at LATB1_bit
dim CF_A0 as sbit sfr
external
Address pin 0.
dim CF_A0 as sbit at LATB0_bit
dim CF_RDY_direction as
sbit sfr external
Direction of the Ready pin.
dim CF_RDY_direction as sbit at
TRISB7_bit
dim CF_WE_direction as
sbit sfr external
Direction of the Write Enable pin.
dim CF_WE_direction as sbit at TRISB6_
bit
dim CF_OE_direction as
sbit sfr external
Direction of the Output Enable pin.
dim CF_OE_direction as sbit at TRISB5_
bit
dim CF_CD1_direction as
sbit sfr external
Direction of the Chip Detect pin.
dim CF_CD1_direction as sbit at
TRISB4_bit
dim CF_CE1_direction as
sbit sfr external
Direction of the Chip Enable pin.
dim CF_CE1_direction as sbit at
TRISB3_bit
dim CF_A2_direction as
sbit sfr external
Direction of the Address 2 pin.
dim CF_A2_direction as sbit at TRISB2_
bit
dim CF_A1_direction as
sbit sfr external
Direction of the Address 1 pin.
dim CF_A1_direction as sbit at TRISB1_
bit
dim CF_A0_direction as
sbit sfr external
Direction of the Address 0 pin.
dim CF_A0_direction as sbit at TRISB0_
bit