beautypg.com

Atmel AT83SND2C MP3 User Manual

Page 14

background image

Communication Protocol

3-10

AT83SND2CMP3 User Guide

7525A–MP3–07/05

Table 3-2 . Player Command

Table 3-3 . File System Command

SYSTEM_PLAYER_MODE

0Dh

1 Byte

Set Player mode on selected memory:

Repeat / No Repeat

Play Single

Play Dir

Play Disk

Explorer Mode (see all file type for file transfer)

SYSTEM_AUDIO_INPUT

0Eh

1 Byte

Enable Player Audio Input

None - disable selected input

Mono Input

Stereo Input

SYSTEM_ENTER_HID_MODE

0Fh

No

Ask the Player to enter the HID mode: bridge USB - UART.

Protocol Command

Command

Data

Description

Protocol Command

Command

Data

Description

PLAYER_PLAY

50h

No

If current file name is a MP3 file, play or resume pause selected
MP3 file from Selected Memory.
If current file name is a directory, enter this directory and select
the first MP3. A new Play command is needed to play this new
MP3 file.

PLAYER_STOP

51h

No

Stop playing current MP3 file

PLAYER_PAUSE

52h

No

Pause current MP3 file

PLAYER_NEXT

53h

No

Select Next MP3file on Selected Memory

PLAYER_PREVIOUS

54h

No

Select Previous MP3 file on Selected Memory

PLAYER_SETMARKERA

55h

No

Set A marker for repeat AB feature

PLAYER_SETMARKERB

56h

No

Set B marker for repeat AB feature

PLAYER_STOPAB

57h

No

Stop AB repeat mode

PLAYER_GET_TIME

58h

No

Get Playing time since beginning of the file.

PLAYER_GETINDEXNUMBER

59h

No

Get Number of file in current directory or root directory.

PLAYER_ENTER_ROOT_DIR

5Ah

No

Select the first MP3 files available in root directory.

PLAYER_SET_FILTER

5Bh

No

Set filter to have no directory seen.

PLAYER_GET_FILE_LIST

5Ch

No

Get file names list in current directory or root directory.

PLAYER_PLAY_INDEX

5Dh

Yes

Play file selected by index.

Protocol Command

Command

Data

Description

FS_NEXT

60h

No

Select next file from delected memory

FS_PREVIOUS

61h

No

Select previous file from selected memory

FS_ENTER_DIR

62h

No

Enter selected directory

FS_EXIT_DIR

63h

No

Exit current directory

FS_GET_NAME

64h

No

Get name of selected file or directory on selected memory

FS_FORMAT

65h

No

Format in FAT16 on selected memory