ページ1に含まれる内容の要旨
AT83SND2CMP3
..............................................................................................
User Guide
ページ2に含まれる内容の要旨
-2 AT83SND2CMP3 User Guide 7525A–MP3–07/05
ページ3に含まれる内容の要旨
Table of Contents Section 1 Introduction ........................................................................................... 1-1 Section 2 Functional Description .......................................................................... 1-3 2.1 Features....................................................................................................1-4 2.2 Description of the Environment.................................................................1-5 Section 3 Communication Protoc
ページ4に含まれる内容の要旨
-2 AT89RFD-08 User Guide 7525A–MP3–07/05
ページ5に含まれる内容の要旨
Section 1 Introduction The AT83SND2CMP3 easily adds MP3 music playing feature to mobile phone or any type of application. This product has fully integrated stand-alone: Hardwired MPEG I/II-Layer 3 decoder MP3-player control Stereo Audio DAC Mono Audio Power Amplifier for speaker control This document describes the MP3 Player, the Machine-Machine Interface and how to communicate with UART link to remote control the MP3 player. Associated Schematics Refer to schematics of an AT83SND2CMP3 im
ページ6に含まれる内容の要旨
Introduction 1-2 AT83SND2CMP3 User Guide 7525A–MP3–07/05
ページ7に含まれる内容の要旨
Section 2 Functional Description The AT83SND2CMP3 is designed to be used as a slave device driven by an host con- troller via a UART connection. AT83SND2CMP3 User Guide 2-3 7525A–MP3–07/05
ページ8に含まれる内容の要旨
Functional Description 2.1 Features The AT83SND2CMP3 module provides: MP3 music playing capability – from Nand Flash (512Byte page size) – from MMC or SD card, Embedded FAT 12/16/32. The AT83SND2CMP3 can be remote controlled from an external Controller using standard commands such as: – Play, stop, pause, next, previous, – Select memory, – File System Navigation, System configuration (digital and analog sound settings, audio input and output selection,). USB mass storage capability from NF
ページ9に含まれる内容の要旨
Functional Description 2.2 Description of the Environment List of system Interfaces: Figure 2-1. General System Architecture Storage Device Remote Controller NOR Flash (Firmware Storage) Stereo Headset Speaker SD / MMC Player USB Host Interface AT83SND2CMP3 Power Supply Nand Flash AT83SND2CMP3 User Guide 2-5 7525A–MP3–07/05 Physical Layer UART 115200 bps
ページ10に含まれる内容の要旨
Functional Description 2.2.1 USB AT83SND2CMP3 USB interface complies to the USB 2.0 Full Speed specifications. The USB bus is used to download music using bulk transfer. The system supports Mass Storage on the following platforms: Win98 with Atmel driver, Win2000/ME/XP. These platforms do not provide multi-drive (multiple USB Logical Unit) support, except Win2000 Service Pack 3 that allows multi-drive support. 2.2.2 SD/MMC Card Memory cards are controlled by AT83SND2CMP3 and can be considered
ページ11に含まれる内容の要旨
Functional Description AT83SND2CMP3 User Guide 2-7 7525A–MP3–07/05
ページ12に含まれる内容の要旨
Section 3 Communication Protocol The AT83SND2CMP3 is remotely controlled using simple ‘user interface like’ commands such as Play or Stop commands. The communication protocol provides an abstraction of the physical layer between the Remote Controller and the Player. 3.1 Communication The communication protocol is a half-duplex protocol between a host Remote Controller and the AT83SND2CMP3 (Player) over a UART. Protocol Note: In the following discussion, Remote Controller is considered as a ‘ma
ページ13に含まれる内容の要旨
Communication Protocol • Checksum (1 byte): Frame checksum: 8 least significant bit of the sum of: Channel + Protocol Command + Data Length + Data. In the following discussion, the Channel parameter is set to FFh. 3.3 Remote Controller - AT83SND2CMP3 Command Set List There are several command types: System Command: these commands allow to configure the system. Player Command: these commands allow to access all the Player’s functions. File System Command: these commands allow to navigate in se
ページ14に含まれる内容の要旨
Communication Protocol Protocol Command Command Data Description 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. Table 3-2 . Player Command Protocol Command Command Da
ページ15に含まれる内容の要旨
Communication Protocol Protocol Command Command Data Description 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 curren
ページ16に含まれる内容の要旨
Communication Protocol Protocol Command Command Data Description FS_FILEPOS * 8Ch Yes Send current file position. FS_END_OF_LIST * 8Dh Yes Player has reached the end of the list after PLAYER_GET_LIST command. SYSTEM_MOUNTED* 8Fh No Player has finished file system FAT instal on selected memory. CUSTOM_PLAYER_TOTALTIME * E0h Yes MP3 total time length. CUSTOM_PLAYER_END_OF_FILE * E1h Yes Player has reached the end of file. Notes: 1. * means that the frame is a Player Response to Remote Controller
ページ17に含まれる内容の要旨
ページ18に含まれる内容の要旨
Communication Protocol 3.5 Error Management 3.5.1 Command Time-out When a communication handling error occurs (for example data length does not corre- spond to the actual frame size), the AT83SND2CMP3 reception state machine is resetted after TimeResumeCommand ms. If the Remote Controller does not receive any status from Player, it shall wait TimeResumeCommand ms before sending the GET_STATUS frame. Table 3-6 . Real Time Constraints Value Items Value Description TimeEffectiveCommand 400 ms max
ページ19に含まれる内容の要旨
Communication Protocol Figure 3-3. Protocol communication principle of use SYSTEM SYSTEM _ACK _ACK Controller_Rx + + STATUS STATUS SYSTEM_ Controller_Tx COMMAND GET_STATUS AT83SND2CMP3 User Guide 3-15 7525A–MP3–07/05
ページ20に含まれる内容の要旨
Communication Protocol 3.7 Player Management 3.7.1 Player Reset After a Player warm or cold reset, Remote Controller shall wait on its RX line the SYSTEM_ACK frame. This means that the AT83SND2CMP3 is ready to communicate. Figure 3-4 . Warm Reset SYSTEM Controller_Rx _ACK SYSTEM Controller_Tx GET_STATUS _RESET AT8XC51SND2 R eset and init Table 3-7 . Hardware Reset SYSTEM Controller_Rx _ACK Controller_Tx GET_STATUS AT8XC51SND2 Initialization AT83SND2CMP3 Hardware Reset Note: After AT83SND2CMP3