Atmel AT83SND2C MP3 User Manual

Page 15

Advertising
background image

Communication Protocol

AT83SND2CMP3 User Guide

3-11

7525A–MP3–07/05

Table 3-4 . Custom Command

Table 3-5 . Player Response (*)

FS_FCREATE

66h

Yes

Create a file on selected memory

FS_FREAD_BLOCK

67h

Yes

Read data block to current created file

FS_FWRITE_BLOCK

68h

No

Write data block from selected file

FS_FWRITE_LAST_BLOCK

6Dh

No

Write last data block from selected file

FS_FCLOSE

69h

No

Read or write close current file transfer

FS_GETMEMFREESPACE

6Ah

No

Get memory free space available

FS_GETFILESIZE

6Bh

No

Get current file size

FS_GETFILEPOS

6Ch

No

Get current file position

FS_FDELETE

6Eh

No

Delete current selected File

Protocol Command

Command

Data

Description

Protocol Command

Command

Data

Description

AUDIO_SET_GAIN

91h

Yes

Set Audio Gain.

AUDIO_SET_PA_LP

92h

Yes

Set Power Amplifier mode for low power.

CUSTOM_UART_SET_BAUDRATE

93h

Yes

Change UART baudrate from Remote Controller.

CUSTOM_GET_SYS_VERSION

94h

no

Get Player version.

CUSTOM_SYSTEM_VOLUME

F0h

Yes

Set Analog Volume (master gain volume)

CUSTOM_PLAYER_GET_TOTAL_
TIME

F1h

Yes

Get MP3 file playing total time length.

CUSTOM_PLAYER_FIRST

F3h

Yes

Select first MP3 file in current directory and play it.

CUSTOM_PLAYER_LAST

F4h

Yes

Select last MP3 file in current directory and play it.

Protocol Command

Command

Data

Description

SYSTEM_ACK *

80h

1 Byte

General Player acknowledge to Remote Controller’s command.
Data is the current AT83SND2CMP3 Status byte.

SYSTEM_NACK *

81h

1 Byte

Player non- acknowledge to Remote Controller’s command.
Data is the current AT83SND2CMP3 Status byte.

FS_NAME *

82h

Yes

Player current file name.

PLAYER_TIME *

83h

3 Bytes

Player current playing time (minute and second since beginning of
the file).

PLAYER_INDEXNUMBER *

86h

Yes

Number of files in current directory.

PLAYER_VOLUME *

87h

Yes

Player current analog and digital volume.

FS_FREAD_BLOCK_DATA *

84h

Block

Send data block to Remote Controller’s command
FS_FREAD_BLOCK.

FS_FREAD_BLOCK_DATA_END *

85h

No

Player response to FS_FREAD_BLOCK command when end of
file is reached. Player returns then in IDLE state.

FS_MEMFREESPACE *

8Ah

Block

Free space available on selected memory.

FS_FILESIZE *

8Bh

Yes

Send current file size.

Advertising