166
CipherLab BASIC Programming Part I
SD card can be accessed directly by using the provided functions in user application. Yet,
when 8200/8400/8700 is equipped with SD card and connected to your computer via the
USB cable, it can be treated as a removable disk (USB mass storage device) as long as it
is configured properly through programming or via System Menu | SD Card Menu |
Run As USB Disk. Refer to Part II: Chapter 8 USB Connection. For memory
information, refer to 4.19.3 SD Card
.
Direct Access to SD for DAT Files
Use the functions provided in 4.20.1 DAT Files to access DAT files on SD card, which must
under the directory “\BasicRun”.
The size of DAT files on SD card can be calibrated via System Menu. If the function
DEL_TRANSACTION_DATA( ) or DEL_TRANSACTION_DATA_EX( ) is called in BASIC ap
plications
to remove records from file top, the space will not be released immediately. Users have to
refresh the size of “A:\BASICRUN\TXACTn.DAT” (n=1~6) via System Menu | SD Card Menu |
Access SD Card | Check File Size.
Direct Access to SD for DBF Files
Use the functions provided in 4.20.2 DBF Files and IDX Files
to access DBF files on SD card,
which must be under the directory “\BasicRun”
. When creating DBF files, it will have “.DB0” as
the filename extension for the DBF file itself and “.DB1” ~ “.DB4” for the IDX files.
Note: DAT files created on SD card by previous BASIC runtime are not compatible in file
format with new BASIC runtime, starting from version 1.10.
It supports FAT12/FAT16/FAT32 and allows formatting the card through C programming
or via System Menu | SD Card Menu | Access SD Card. Based on the capacity of the
card, it will automatically decide the FAT format:
≦ 32 MB
FAT12 32
≦ 1 GB
FAT16 32
≦ 2 GB
FAT16 64
≦ 8 GB
FAT32 8