Mikroelektronika MIKROE-742 데이터 시트
![Mikroelektronika](https://files.manualsbrain.com/attachments/e0529b3b58069a916ad7bb89f7e9f5f0eda73421/common/fit/150/50/1b07b99aa3112e022a916b06db07f1f4f211e91d41878452d87c7638b1bf/brand_logo.gif)
Cf_Detect
Cf_Enable
Cf_Disable
207
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroPASCAL PRO for AVR
CHAPTER 6
Prototype
function CF_Detect() : byte ;
Returns
-
1
- if CF card was detected
-
0
- otherwise
Description
Checks for presence of CF card by reading the
chip detect
pin.
Requires
The corresponding MCU ports must be appropriately initialized for CF card. See
Cf_Init.
Cf_Init.
Example
// Wait until CF card is inserted:
while (Cf_Detect() = 0) do
while (Cf_Detect() = 0) do
nop;
Prototype
procedure Cf_Enable();
Returns
Nothing.
Description
Enables the device. Routine needs to be called only if you have disabled the
device by means of the Cf_Disable routine. These two routines in conjunction
allow you to free/occupy data line when working with multiple devices.
device by means of the Cf_Disable routine. These two routines in conjunction
allow you to free/occupy data line when working with multiple devices.
Requires
The corresponding MCU ports must be appropriately initialized for CF card. See
Cf_Init.
Cf_Init.
Example
// enable compact flash
Cf_Enable();
Prototype
procedure Cf_Disable();
Returns
Nothing.
Description
Routine disables the device and frees the data lines for other devices. To
enable the device again, call Cf_Enable. These two routines in conjunction
allow you to free/occupy data line when working with multiple devices.
enable the device again, call Cf_Enable. These two routines in conjunction
allow you to free/occupy data line when working with multiple devices.
Requires
The corresponding MCU ports must be appropriately initialized for CF card. See
Cf_Init.
Cf_Init.
Example
// disable compact flash
Cf_Disable();