Datasheet
External dependencies of Compact Flash Library
252
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroC PRO for AVR
CHAPTER 6
The following variables must
be defined in all projects
using Compact Flash Library:
Description: Example :
extern sfr char
CF_Data_Port;
Compact Flash Data
Port.
sfr char
CF_Data_Port at
PORTD;
extern sfr char
CF_Data_Port_Direction;
Direction of the Com-
pact Flash Data Port.
sfr char
CF_Data_Port_Direc
tion at DDRD;
extern sfr sbit CF_RDY;
Ready signal line.
sbit CF_RDY at
PINB.B7;
extern sfr sbit CF_WE;
Write Enable signal line.
sbit CF_WE at
PORTB.B6;
extern sfr sbit CF_OE;
Output Enable signal
line.
sbit CF_OE at
PORTB.B5;
extern sfr sbit CF_CD1;
Chip Detect signal line.
sbit CF_CD1 at
PINB.B4;
extern sfr sbit CF_CE1;
Chip Enable signal line.
sbit CF_CE1 at
PORTB.B3;
extern sfr sbit CF_A2;
Address pin 2.
sbit CF_A2 at
PORTB.B2;
extern sfr sbit CF_A1;
Address pin 1.
sbit CF_A1 at
PORTB.B1;
extern sfr sbit CF_A0;
Address pin 0.
sbit CF_A0 at
PORTB.B0;
extern sfr sbit
CF_RDY_direction;
Direction of the Ready
pin.
sbit
CF_RDY_direction
at DDRB.B7;
extern sfr sbit
CF_WE_direction;
Direction of the Write
Enable pin.
sbit CF_WE_direc-
tion at DDRB.B6;
extern sfr sbit
CF_OE_direction;
Direction of the Output
Enable pin.
sbit CF_OE_direc-
tion at DDRB.B5;
extern sfr sbit
CF_CD1_direction;
Direction of the Chip
Detect pin.
sbit
CF_CD1_direction
at DDRB.B4;
extern sfr sbit
CF_CE1_direction;
Direction of the Chip
Enable pin.
sbit
CF_CE1_direction
at DDRB.B3;
extern sfr sbit
CF_A2_direction;
Direction of the Address
2 pin.
sbit CF_A2_direc-
tion at DDRB.B2;