试验了用BASCOM读写SD卡,完全可以把SD卡当作磁盘来操作,与VB/QB语法兼容,编程非常简单。
AVR-DOS介绍
Features:
· Read and writeASCII-Files
· Read and writeBinary-Files
· Drivers available forCompact Flash Cards, Hard disk, MMC, SD etc.
· Completly integrated inBASCOM-AVR Compiler
· QB/VB compatible syntax
· Completly written inAVR-Assembler (fast and compact)
It workswith:
· DOS-FAT16 and FAT32 formatted partitions
· Files in Root directory and sub directories
· Short DOS File names (8.3)
· Sector Size of 512 Bytes(nearly all CF-Cards and HD)
· Linear sector addressing(LBA-Mode). (all newer CF-Cards and HD). C/H/S-Mode of old HD is not supported.
Please note: AVR-DOS is only free for noncommercial use. For commercial use, or when you are interested in ASM-Code andcomplete documentation please check Licensedirectives
Functions:
Hereis a list of all in BASCOM-AVR integrated statements, which uses AVR-DOSfunctionality.
Disk/Directory:
· InitFileSystem (
· DiskSize
· DiskFree
· Kill
· Dir ([
· FileLen ([
· FileDateTime ([
· FileDate ([
· FileTime ([
· GetAttr ([
· Name
· ChDir
· MkDir
· RmDir
File create, open, read, write, close:
· FreeFile
· Open
· Close
· Flush [
· Print #
· Write #
· Input #
· Line Input #
· Get #
· Put #
· Seek #
Infos about opened files:
· EOF (#
· LOC (#
· LOF (#
· FileAttr (#
Others:
· Bload
· Bsave
上一篇:如何利用AVR芯片制作高压并行编程器
下一篇:Atmel Studio 7.0 快速上手指南(基于ASF)
推荐阅读最新更新时间:2024-11-04 22:46
设计资源 培训 开发板 精华推荐
- DS51917A、MCP3907 电能表参考设计
- A_39_V10基于IPS2电机换向传感器的设计
- 使用 LTC1644 的紧凑型 PCI 热插拔控制应用
- 用于微功率 A/D 转换器的 LT1634BCS8-2.5 电压基准的典型应用
- AM2F-1209SZ 9V 2 瓦 DC-DC 转换器的典型应用
- 使用 Analog Devices 的 LTC1590 的参考设计
- DEMO9S08AC60E,MC9S08AC60 高性能、S08AC 微控制器系列的演示板
- 数字小键盘 带HUB
- ADCLK954/PCBZ,ADCLK954 时钟扇出缓冲器评估板
- AD584 引脚可编程精密电压基准的典型应用,用于通过外部电容器进行额外噪声过滤