26-Aug-10 USB-FileSys / USB-Config HW149-8 www.hexwax.com Example: Command: What is the 5
參數(shù)資料
型號(hào): TPFLXIC016
廠商: Microchip Technology
文件頁數(shù): 8/10頁
文件大?。?/td> 0K
描述: IC MICROCONTROLLER
標(biāo)準(zhǔn)包裝: 1
系列: *
p7 of 10
26-Aug-10
USB-FileSys / USB-Config
HW149-8
www.hexwax.com
Example:
Command: What is the 5
th directory entry in the
current directory?
03 04 00
Response:
Success, file is a read-only file called
“FRED.TXT”.
00 46 52 45 44 20 20 20 20 54 58 54 01…
Command: Set file entry
06
Response:
Success.
00
Data:
(Renamed “TOM.TXT”)
00 54 4F 4D 20 20 20 20 20 54 58 54 01…
Response:
Success.
00
Example:
Delete File / Directory
This command deletes the file, subdirectory or volume
label retrieved by the last Get File Entry By Index or Get
File Entry By Short Name command. The first byte of
the command is the value 0x07 followed by the
confirmation bytes 0x59, 0x65, 0x73 (“yes”).
The response will be the status byte.
Example:
Command: What is the 5
th directory entry in the
current directory?
03 04 00
Response:
Success, file is a read-only file called
“FRED.TXT”
00 46 52 45 44 20 20 20 20 54 58 54 01…
Command: Delete it
07 79 65 73
Response:
Success.
00
Only empty subdirectories should be deleted; it the
host’s responsibility to delete all directory entries first.
(The “.” and “..”entries do not need to be deleted.)
Format Volume
This command deletes the entire contents of the internal
volume or the 25AA1024 external memory. It frees up
any clusters which may have been rendered unusable
due to deletion of a non-empty directory or power failure
during a file operation. The root directory will become
the current directory.
The first byte of the command is the value 0x08 followed
by the confirmation bytes 0x59, 0x45, 0x53 (“YES”).
The response will be the status byte.
SD memories must be formatted by the PC. 24AA1024
memories can be formatted by the PC when used with
the 28-pin USB-FileSys.
20-pin devices should only format using the Format
Volume command.
Example:
Command: Format volume
08 59 45 53
Response:
Success.
00
Set Date / Time
This command sets the date and time as used by file
creation and file close commands. It does not keep time.
This command should be given immediately before the
open command when a file is being created and all
close commands. If the command is never given, files
are given the date / time 12:00 1/1/2000 when created
and left unchanged otherwise.
The first byte of the command is the value 0x09. The
following four bytes indicate the date and time as shown
in table 7.
Example:
Command: Set date / time to 12:00, 1/1/2000
09 00 60 21 28
Response:
Success.
00
Table 7. Date / time structure
Byte
Meaning
0-1
Time:
Bits 0-4:
Doublesecond (0-29)
Bits 5-10:
Minute (0-59)
Bits 11-15: Hour (0-23)
2-3
Date:
Bits 0-4:
Date (1-31)
Bits 5-8:
Month (1-12)
Bits 9-15:
Year since 1980 (0-127 = 1980-2107)
Open File
This command opens an existing file, or creates it if it
does not exist already, using information from the
previous Get File Entry By Index or Get File Entry By
Short Name command. The first byte of the command
is the value 0x0A. The second is the “file handle” to
associate with the file, which can be a value from 00 to
03. The response will be the status byte. The file must
be closed before the file handle is re-used.
The Open command may be used for creating a
subdirectory or volume label. In this case, the directory
entry is created but no file is opened and the file handle
is ignored. In the case of a subdirectory, the current
directory is changed to the new subdirectory.
It is permitted to open a file more than once
simultaneously, for example to copy data from one
section of the file to another, provided only one file
handle is used for writing to the file.
相關(guān)PDF資料
PDF描述
TPFLXIC014 IC MICROCONTROLLER
556137-4 CONN HOUSING 1 POS RED
556137-2 CONN HOUSING 1 POS BLK
1445957-5 CONN HOUSING POWER 1POS RED
V72C28H150BG2 CONVERTER MOD DC/DC 28V 150W
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
TPFLXIC017 功能描述:插座和適配器 USB-FileSys-SS FlexiPanel RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x
TPFLXIC018 功能描述:插座和適配器 Access-Touch-SS FlexiPanel RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x
TP-FUEL-0.250 功能描述:LABEL IDENTIFICATION TAPE RoHS:否 類別:計(jì)算機(jī),辦公室 - 元件,配件 >> 標(biāo)簽,標(biāo)記 系列:TP-帶 標(biāo)準(zhǔn)包裝:1 系列:PANACEA™ 類型:標(biāo)簽 標(biāo)簽類型:熱敏式 標(biāo)簽尺寸:0.75" x 26.2'(19.1mm x 8.0m) 材質(zhì):聚酯 顏色:透明 適用于相關(guān)產(chǎn)品:熱敏打印機(jī) 包裝:卷 其它名稱:298-1346
TP-FUEL-0.375 功能描述:LABEL IDENTIFICATION TAPE RoHS:是 類別:計(jì)算機(jī),辦公室 - 元件,配件 >> 標(biāo)簽,標(biāo)記 系列:TP-帶 標(biāo)準(zhǔn)包裝:1 系列:PANACEA™ 類型:標(biāo)簽 標(biāo)簽類型:熱敏式 標(biāo)簽尺寸:0.75" x 26.2'(19.1mm x 8.0m) 材質(zhì):聚酯 顏色:透明 適用于相關(guān)產(chǎn)品:熱敏打印機(jī) 包裝:卷 其它名稱:298-1346
TP-FUEL-0.500 功能描述:LABEL IDENTIFICATION TAPE RoHS:否 類別:計(jì)算機(jī),辦公室 - 元件,配件 >> 標(biāo)簽,標(biāo)記 系列:TP-帶 標(biāo)準(zhǔn)包裝:1 系列:PANACEA™ 類型:標(biāo)簽 標(biāo)簽類型:熱敏式 標(biāo)簽尺寸:0.75" x 26.2'(19.1mm x 8.0m) 材質(zhì):聚酯 顏色:透明 適用于相關(guān)產(chǎn)品:熱敏打印機(jī) 包裝:卷 其它名稱:298-1346