manufacturer of I/O-rich SBCs, operator interfaces, handheld instruments, and development tools for embedded control low cost single board computers, embedded controllers, and operator interfaces for scientific instruments & industrial control development tools for embedded control order our low cost I/O-rich embedded control products embedded controller manufacturer profile single board computers & embedded controllers development tools & starter kits for your embedded design operator interfaces with touchscreens and graphical user interface plug-in expansion modules for digital & analog I/O C language & Forth language integrated development tools, IDE single board and embedded computer accessories embedded controller enclosures, bezels, environmental gaskets
Table of Contents




Flash Card

Connecting To the Wildcard Bus

Selecting the Wildcard Address

Installing the CF Card

CF Card Software Package User Guide and Glossary

How To Install the CF Software

Using the Driver Code with C

Using the Driver Code with Forth

CF Card Software

Categorized List of Functions and Constants

ATA Failure Codes

ATA Primitives

CF Card Information


File Access and Position Modes

File I/O

File Processing

File System Error Handling


Overview of Glossary Notation

Using the File System Functions

Commonly Used Terms

String Parameters and the Use of THIS_PAGE

Access Privileges

Root Directory Only and File Name Restrictions

File Position Indicator

Error Handling

Real-Time Clock on the Host Computer Enables Time/Date Marking of Files 12


Automatic Initialization and File Processing

Upgrade note for former Memory Interface Board (MIB) Users

How To Create and Use an AUTOEXEC.QED File

Compile a Program into Flash Memory

Create a Set of Image Files

Transfer the Image File Contents into Memory

Restrictions on Software Upgrades

Recovering from Buggy AUTOSTART.QED Files

Compact Flash Card Software Package Main Glossary

Upgrade Notice for Prior Users of the Memory Interface Board

Sample FILEDEMO.C File (pdf)

Sample FILEDEMO.4th File (pdf)

CF Wildcard Hardware Schematic

The Compact-Flash Wildcard and
CF Card Software Package User Guide


compact flash expansion module

The Compact Flash Wildcard expands the memory capabilities of Mosaic embedded controllers by providing a plug-in interface to large-capacity removable flash data storage. Flash is solid-state nonvolatile read/write memory that maintains its contents even in the absence of applied power. The Compact Flash Wildcard is ideal for applications that require large amounts of memory, the convenience of removable storage, and file-based data exchange with a PC.

This Wildcard allows you to plug in widely available Compact Flash memory cards that measure only 1.5" by 1.7" and hold many megabytes of nonvolatile data. We recommend using SanDisk Compact Flash cards which are available from Mosaic Industries and from computer retailers.

The Compact Flash card is a physically smaller implementation of the popular PCMCIA card (also known as a PC Card). Most laptop computers have a socket that hosts PCMCIA memory cards. A low-cost adapter converts the Compact Flash card to the PCMCIA form factor for easy use with a laptop computer. These cards use the IBM-compatible ATA disk drive interface standard, and can be read and written from most laptop computers.

This tiny 2" by 2.5" board is a member of the Wildcard series that connects to Mosaic embedded controllers.

This document reviews the CF Wildcard hardware jumper settings, and describes the ATA Flash Card Software Package which is provided as a pre-packaged "kernel extension" that is easily loaded onto the host Mosaic Controller. This software is referred to as the "CF Card Software".


Memory Sizes Available: Compact FLASH cards of 16 or 64 Mbyte
File Format: DOS/Windows compatible FAT-12 and FAT-16
Compatability: File exchange with any Windows 95, 98, NT, 2000, or XP machine using standard PMCIA socket.
Application Interface: ANSI C file manipulation functions including create, open, close, read, write, rename, copy and delete. Directory listing, file_type and file_capture commands
File Transfer: Files can be created, read, and modified on either the Mosaic or Windows platforms.
Automated File Processing: Files may be automatically executed on startup, input/output piped from/to any file, and controller programs automatically upgraded.

Built-in Software

Built-in software running on the companion Mosaic Controller implements C file manipulation functions and supports a standard DOS- and Windows-style "FAT" (File Allocation Table) file system, allowing files to be created on a PC and read via the CF Wildcard, or visa versa. An automated file processing capability facilitates fool-proof software upgrades and data exchanges.

File Management Functions

A comprehensive set of file management functions modeled on the ANSI C file library lets you create, open, close, read, write, rename, copy and delete files. Other software features include directory listing commands that behave like the DOS DIR command, printing and file capture commands, and a powerful redirection capability that allows any function to take its input from a specified file and send its output to a specified file. This set of functions allows files to be managed from within the Mosaic Controller and/or the PC environment.

Automated File Loading and Execution

Fool-proof software upgrades are facilitated by the automated file processing feature. You can specify one or more files to be automatically loaded to or from the Mosaic Controllerís memory at startup. This powerful capability enables field software upgrades that are accomplished by simply inserting a pre-configured CF Card into the CF Wildcard socket.

| Next>>

Home|Site Map|Products|Manuals|Resources|Order|About Us
Copyright (c) 2006 Mosaic Industries, Inc.
Your source for single board computers, embedded controllers, and operator interfaces for instruments and automation