Atmel AT83SND2C MP3 User Manual

Page 55

Advertising
background image

Protocol Frame Description

AT83SND2CMP3 User Guide

5-51

7525A–MP3–07/05

Table 5-68 . FS_FREAD_BLOCK_DATA Frame

FS_FREAD_BLOCK_DATA_EN

D* Response

Player Response of FS_READ_BLOCK command when last block is reached (end of
file). After this Player reponse, there is no need to send the FS_FCLOSE command.
Player returns in operating mode IDLE.

Table 5-69 . FS_FREAD_BLOCK_DATA_END Frame

PLAYER_INDEX_NUMBER*

Response

Player Response of PLAYER_GETINDEXNUMBER command. This frame returns the
number of file in current directory.

Table 5-70 . PLAYER_INDEX_NUMBER Frame

FS_MEMFREESPACE*

Response

Player Response of FS_GETMEMFREESPACE command. Data parameter are:
„

number of free cluster (32 bits, byte 1:4, MSB is byte 0 in data parameters).

„

cluster size in sector (8 bits, byte 5 in data parameters).

Note:

Sector size is 512 Bytes.

Memory free space available is :

MemoryFreeSpace(Byte) = NumberFreeCluster * ClusterSize * 512 Bytes.

Table 5-71 . FS_MEMFREESPACE Frame

FS_FILESIZE* Response Current file size is in Bytes. Player Response of FS_GETFILESIZE command.

Frame Start

Channel

Protocol

Command

Data Length

Data

CheckSum

Data Block

7Eh

If not used,

FFh

84h

01h

DataBlockNumber 01h

Yes

Byte 0:1FFh => 512 Bytes data

(no checksum on data)

Frame Start

Channel

Protocol

Command

Data Length

Data

CheckSum

7Eh

If not used,

FFh

85h

01h

Byte 0: Player Status Byte

Yes

Frame Start

Channel

Protocol

Command

Data

Length

Data

CheckSum

7Eh

If not used,

FFh

86h

03h

Byte 0: Player Status Byte
Byte 1: MSB(Number_of_Index)
Byte 2: LSB(Number_of_Index)

Yes

Frame Start

Channel

Protocol

Command

Data Length

Data

CheckSum

7Eh

If not used,

FFh

8Ah

06h

Byte 0: Player Status Byte
Byte 1:4 Number of free cluster
Byte 5: Cluster Size

Yes

Advertising