部份 MiniOS7 的 PAC 具有 microSD 記憶卡卡槽,可以透過 microSD library 來讀寫 microSD 卡,但是必需預先將記憶卡格式化成 FAT 格式的檔案系統。當資料儲存完畢後,除了將記憶卡拿到 PC 上讀取,也可以透過 PAC 中的程式,由網路上傳到 FTP server。
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 |
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.
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.
This package contains microSD libraries and demo samples.
FILE NAME | RELEASE DATE | SIZE | DOWNLOAD |
---|---|---|---|
microsd.rar | 2014/05/13 | 182 KB |
This package consists of the following folder and files:
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 |