MiniOS7 microSD Library

The microSD memory expansion features a data logging ability on the MiniOS7 based PACs. The microSD library can operate files on the microSD card that was previously formatted as the standard FAT file system. That means the program on the MiniOS7 based PACs can create a file and log data to the file. When the logging is completed, the user can take out the microSD card and then copy/open files in it to/on the PC.

ITEM DESCRIPTION
microSD Capacities Supported 1 GB, 2 GB, 4 GB, 8 GB, 16 GB and 32 GB microSD card
File system FAT32 file system only. You can format the microSD card as FAT format on PC or call pc_format to perform the formatting on the MiniOS7 based PACs.
Disk number 1
File number 65,517 files max.
File size 2 GB max. for each file
File name 12 bytes max. (8-3 format)
File operation modes 1. Read.
2. Write: creates a new file to write data, or overwrite to a file (if the file is already exit).
3. Append: appends data to a file.
File handle 6 max.
Read/Write performance Hardware: uPAC-5001
Condition 1: 32767 bytes x 10 loops, pc_read = 125.3 KB/Sec, pc_write = 95.3 KB/Sec
Condition 2: 500 bytes x 100 loops, pc_read = 47 KB/Sec, pc_write = 12 KB/Sec
Max. length of read/write data 32767 bytes
  • FAT File System

    The FAT file system is an old but very common file system. It can store a max. of 65517 files. Users can create files and then write/append data to it on the MiniOS7 base PACs. Then copy the file to a PC for post analysis when the data is complete logged.

  • C Language API

    Following functions are similar to the functions that turbo C and Borland C provide. This helps users short the learning of using the microSD library. pc_open, pc_close, pc_read, pc_write, pc_seek, pc_tell, pc_eof, pc_get_errno, pc_format, pc_del, pc_mkdir, pc_rmdir, … etc.

  • Log data with timestamp
  • Log data and forward via the Ethernet

This package contains microSD libraries and demo samples.

FILE NAME RELEASE DATE SIZE DOWNLOAD
microsd.rar 2014/05/13 182 KB

File Structure

This package consists of the following folder and files:

 

microsd.rar

lib folder for MFS Libraries

FOLDER DESCRIPTION
- microSD Libraries
microSD.h
SD_V106.LIB
microSD_History_V106.txt

demo folder for microSD Demo Samples

FOLDER DESCRIPTION
sd_qa Shows how to connect and control the microSD.
sd_read
sd_util
sd_write

Related Products

iP-8000 Series

uPAC-5000 Series

Related Resources

iPAC-8000 User Manual

uPAC-5000 User Manual

MiniOS7 API Functions Reference Manual