標(biāo)題: BASCOM-AVR利用AVR-DOS庫(kù)讀寫(xiě)SD卡 [打印本頁(yè)]

作者: 243412038    時(shí)間: 2020-9-14 11:11
標(biāo)題: BASCOM-AVR利用AVR-DOS庫(kù)讀寫(xiě)SD卡
試驗(yàn)了用BASCOM讀寫(xiě)SD卡,完全可以把SD卡當(dāng)作磁盤(pán)來(lái)操作,與VB/QB語(yǔ)法兼容,編程非常簡(jiǎn)單。

  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 (<Partition#>)
·  DiskSize
·  DiskFree
·  Kill <FileName>
·  Dir ([ <FileName>])
·  FileLen ([ <FileName> ])
·  FileDateTime ([ <FileName>])
·  FileDate ([ <FileName>])
·  FileTime ([ <FileName>])
·  GetAttr ([ <FileName>])   
·  Name<OldFileName>As <NewFileName>   
·  ChDir<PathName>])   
·  MkDir<PathName>])   
·  RmDir<PathName>])   
  File create, open, read, write, close:
           ·  FreeFile
·  Open <FileName> ForInput/Output/Append/Binary as #<File#>
·  Close <File#>
·  Flush [<File#>]
·  Print #<File#>,Variable1; Variable2; …
·  Write #<File#>,Variable1, Variable2, …
·  Input #<File#>,Variable1, Variable2, …
·  Line Input #<File#>,StringVariable
·  Get #<File#>,<Variable> [,<Position>]
·  Put #<File#>,<Variable> [,<Position>]
·  Seek #<File#>[,<New Position>]
  Infos about opened files:
            ·  EOF (#<File#>)
·  LOC (#<File#>)
·  LOF (#<File#>)
·  FileAttr (#<File#>)
  Others:
            ·  Bload <FileName>,<SRAM-Address>
·  Bsave <FileName>,<SRAM-Address>, <Length>

CONFIG_AVR-DOS.zip

3.23 KB, 下載次數(shù): 4, 下載積分: 黑幣 -5

Config_MMC.zip

1.61 KB, 下載次數(shù): 4, 下載積分: 黑幣 -5

SD-M32.zip

1.21 KB, 下載次數(shù): 5, 下載積分: 黑幣 -5






歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1