beautypg.com

Atmel AT83SND2C MP3 User Manual

Page 46

background image

Protocol Frame Description

5-42

AT83SND2CMP3 User Guide

7525A–MP3–07/05

FS_FWRITE_BLOCK

Command

Write data in current created file (need previous FS_FCREATE command). The number
of FS_WRITE_BLOCK command the Remote Controller shall send to Player is defined
by Number of Blocks Parameter (refer to FS_FCREATE command).

Table 5-44 . FS_FWRITE_BLOCK command

Data are 512 Bytes. Checksum is only for command, not for data (specific to
FS_FWRITE_BLOCK).

The command FS_FWRITE_LAST_BLOCK is used for the last block transfer.

FS_FWRITE_LAST_BLOCK

Command

Write data in current created file (need previous FS_FCREATE command). This com-
mand is used for the last block transfered.

Parameters of FS_FWRITE_BLOCK is the number of byte to finish the file write.

Table 5-45 . FS_FWRITE_BLOCK command

The command FS_FWRITE_LAST_BLOCK is used for the last block transfer.

After the latest FS_FWRITE_LAST_BLOCK command, it is not necessary to send
FS_FCLOSE command as Player will return in IDLE state.

Player response is SYSTEM_ACK*. File is created.

FS_FREAD_BLOCK Command This Command allows Remote Controller to read current selected file in memory.

Table 5-46 . FS_FREAD_BLOCK command

With UART link, data length parameter is equal to 1 block. Data block size is 512 Bytes,
coming after the Player response frame: FS_FREAD_BLOCK_DATA*. Checksum is
only for command, not for data.

Frame Start

Channel

Protocol

Command

Data Length

Data

CheckSum

Data BLock

7Eh

If not used,

FFh

68h

00h

-

Yes

Byte 0:1FFh => 512 Bytes

data

(no checksum on data)

Frame Start

Channel

Protocol

Command

Data Length

Data

CheckSum

Data BLock

7Eh

If not used,

FFh

6Dh

02h

Byte 0: MSB (Number of Bytes to write)
Byte 1: LSB (Number of Bytes to write)

Yes

Byte 0:Xh => X-1 Bytes

data

(no checksum on data)

Frame Start

Channel

Protocol

Command

Data Length

Data

CheckSum

7Eh

If not used,

FFh

67h

00h

No

Yes