Mikroelektronika MIKROE-350 データシート

ページ / 526
External dependencies of Compact Flash Library
190
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
The following variables
must be defined 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_Data_Port_Direction
as byte sfr external
Direction of the Compact
Flash Data Port.
dim
CF_Data_Port_Directio
as byte at DDRD
dim CF_RDY as sbit
sfr external
Ready signal line.
dim CF_RDY as sbit at
PINB.B7
dim CF_WE as sbit
sfr external
Write Enable signal line.
dim CF_WE as sbit at
PORTB.B6
dim CF_OE as sbit
sfr external
Output Enable signal line.
dim CF_OE as sbit at
PORTB.B5
dim CF_CD1 as sbit
sfr external
Chip Detect signal line.
dim CF_CD1 as sbit at
PINB.B4
dim CF_CE1 as sbit
sfr external
Chip Enable signal line.
dim CF_CE1 as sbit at
PORTB.B3
dim CF_A2 as sbit
sfr external
Address pin 2.
dim CF_A2 as sbit at
PORTB.B2
dim CF_A1 as sbit
sfr external
Address pin 1.
dim CF_A1 as sbit at
PORTB.B1
dim CF_A0 as sbit
sfr external
Address pin 0.
dim CF_A0 as sbit at
PORTB.B0
dim CF_RDY_direction
as sbit sfr external
Direction of the Ready pin.
dim CF_RDY_direction
as sbit at DDRB.B7
dim CF_WE_direction
as sbit sfr external
Direction of the Write
Enable pin.
dim CF_WE_direction
as sbit at DDRB.B6
dim CF_OE_direction
as sbit sfr external
Direction of the Output
Enable pin.
dim CF_OE_direction
as sbit at DDRB.B5
dim CF_CD1_direction
as sbit sfr external
Direction of the Chip
Detect pin.
dim CF_CD1_direction
as sbit at DDRB.B4
dim CF_CE1_direction
as sbit sfr external
Direction of the Chip
Enable pin.
dim CF_CE1_direction
as sbit at DDRB.B3
dim CF_A2_direction
as sbit sfr external
Direction of the Address 2
pin.
dim CF_A2_direction
as sbit at DDRB.B2
dim CF_A1_direction
as sbit sfr external
Direction of the Address 1
pin.
dim CF_A1_direction
as sbit at DDRB.B1
dim CF_A0_direction
as sbit sfr external
Direction of the Address 0
pin.
dim CF_A0_direction
as sbit at DDRB.B0