beautypg.com

Atmel AT83SND2C MP3 User Manual

Page 56

background image

Protocol Frame Description

5-52

AT83SND2CMP3 User Guide

7525A–MP3–07/05

Table 5-72 . FS_FILESIZE Frame

Note:

File size is 4 bytes (MSB is byte 0). Directory size is 0.

FS_FILEPOS* Response Player current file position (only in Player PLAY operating mode). The frame

FS_FILEPOS returns 2 parameters:
„

FCHAIN_INDEX: number of the fragment of the file, in fact the index of the table in
the cluster chain (frame parameter byte 1 ).

„

FLAST_CLUST_INDEX: index of the last cluster in file chain (frame parameter byte
2).

The File position is then given by the following formula:

FilePosition (%) = 100 * FCHAIN_INDEX / FLAST_CLUST_INDEX

Table 5-73 . FS_FILEPOSFrame

PLAYER_END_OF* Response Player has reached end of

„

list after the PLAYER_GET_FILE_LIST command.

Table 5-74 . PLAYER_END_OF_LIST Frame

SYSTEM_MOUNTED* Frame Player has finished to select and install file system FAT on selected memory.

Example:
„

Remote Controller sends the SYSTEM_SELECT_MEMORY command.

„

When file system install is finished, the Player status is updated with: FNA or MNF or
MERROR. The Player send the SYSTEM_MOUNTED frame.

Frame Start

Channel

Protocol

Command

Data Length

Data

CheckSum

7Eh

If not used,

FFh

8Bh

05h

Byte 0: Player Status Byte
Byte 1: MSB3 File size
Byte 2: MSB2 File size
Byte 3: MSB1 File size
Byte 4: MSB0 File size

Yes

Frame Start

Channel

Protocol

Command

Data Length

Data

CheckSum

7Eh

If not used,

FFh

8Ch

03h

Byte 0: Player Status Byte
Byte 1: FCHAIN_INDEX
Byte 2: FLAST_CLUST_INDEX

Yes

Frame Start

Channel

Protocol

Command

Data Length

Data

CheckSum

7Eh

If not used,

FFh

8Dh

02h

Byte 0: Player Status
Byte 1:
- 00h => reserved
- 01h => End of list reached

Yes