MP3 Player Reference Design Based on AT89C51SND1 Microcontroller... User Guide

Similar documents
AT17 Series FPGA. Configuration Memory. Application Note. In-System Programming Circuits for AT17 Series Configurators with Atmel and Xilinx FPGAs

TSC695. Application Note. Annulled Cycle Management on the TSC695. References

AT89C5131 Starter Kit... Software User Guide

Section 1 ATAVRAUTOEK1 Getting Started

FPGA Configuration EEPROM Memory. Application Note. Programming Atmel s EEPROMs: AT17LV020(A) vs. AT17LV002(A) Introduction.

8051 Microcontrollers. Application Note. Migration from AT89C5131 & AT89C5131A-L to AT89C5131A-M

8-bit Microcontroller. Application Note. AVR031: Getting Started with ImageCraft C for AVR

8-bit RISC Microcontroller. Application Note. AVR 305: Half Duplex Compact Software UART

AT17(A) Series FPGA Configuration Memory. Application Note

Migration From AT89C51SND1C to AT83C51SDN1C. Application Note. MP3 Microcontrollers

8-bit Microcontroller. Application Note. AVR030: Getting Started with C for AVR

Application Note Microcontrollers. C Flash Drivers for T89C51RC/RB/IC2 and AT89C51RC/RB/IC2 for Keil Compilers

FPGA Configurator Programming Kit (Enhanced) ATDH2200E. Features. Description

System Designer. Programmable SLI AT94K/AT94S Series. Features. Description

AT91 ARM Thumb Microcontrollers. Application Note. AT91M55800A Clock Switching Considerations using Advanced Power Management Controller.

CAN Microcontrollers. Application Note. Migrating from T89C51CC01 to AT89C51CC03. Feature Comparison

Rad Hard FPGA. AT40KEL-DK Design Kit Content. Description. Kit Content. Reference Material. Support

MARC4. Application Note. Hints and Tips for Hard- and Software Developments with MARC4 Microcontrollers

AVR32 UC3 Software Framework... User Manual

System Designer. Programmable SLI AT94K/AT94S Series. Features. Description

AT89ISP Programmer Cable Introduction AT89ISP Programmer Cable Parallel Port Settings Application Note AT89ISP Software AT89ISP Cable polarized

AT89STK-09 Starter Kit for AT83C26... User Guide

AT17F Series. Application Note. Programming Circuits for AT17F Series Configurators with Xilinx FPGAs. 1. Introduction

Application Note. Microcontrollers. Using Keil FlashMon Emulator with AT89C51CC01/03 AT89C51CC01/ Summary. 2. Background overview

ATAVRAUTO User Guide

CAN, 80C51, AVR, Microcontroller. Application Note

AT94K Series Field Programmable System Level Integrated Circuit. Application Note. FPSLIC Baud Rate Generator

AT91 ARM Thumb Microcontrollers. Application Note. AT91 Host Flash Loader. 1. Package Contents. 2. Definition of Terms. 3.

Programmable SLI AT40K AT40KAL AT94K. Application Note. Implementing a Single-coefficient Multiplier

Interfacing the internal serial EEPROM

DatasheetDirect.com. Visit to get your free datasheets. This datasheet has been downloaded by

Two-wire Serial EEPROM Smart Card Modules 128K (16,384 x 8) 256 (32,768 x 8) AT24C128SC AT24C256SC. Features. Description VCC NC

8-bit Microcontroller. Application Note. AVR201: Using the AVR Hardware Multiplier

ATAVRAUTO User Guide

8-bit Microcontroller. Application Note. AVR320: Software SPI Master

AT89STK-10 Starter Kit... Hardware User Guide

hex file. The example described in this application note is written for the AT94K using the FPSLIC Starter Kit. Creating a New Project

8-bit Microcontroller. Application Note. AVR033: Getting Started with the CodeVisionAVR C Compiler

AT85DVK-07 Demonstration Firmware... User s Manual

80C51 MCUs T89C51AC2. Errata Sheet

Two-wire Serial EEPROM Smart Card Modules 1K (128 x 8) 2K (256 x 8) 4K (512 x 8) 8K (1024 x 8) 16K (2048 x 8)

SAM Boot Assistant (SAM-BA)... User Guide

AT89C51SND1 UART Bootloader

3-Wire Serial EEPROM AT93C46C

2-Wire Serial EEPROM AT24C01. Features. Description. Pin Configurations. 1K (128 x 8)

Bluetooth General Information White Paper

2-wire Serial EEPROM Smart Card Modules AT24C32SC AT24C64SC

256 (32K x 8) High-speed Parallel EEPROM AT28HC256N. Features. Description. Pin Configurations

AT89C51CC03 UART Bootloader

Trusted Platform Module AT97SC3203S. SMBus Two-Wire Interface. Summary

1-megabit (64K x 16) 3-volt Only Flash Memory AT49BV1024A AT49LV1024A

8-bit RISC Microcontroller. Application Note. AVR151: Setup And Use of The SPI

CryptoRF EEPROM Memory 8 Kbits

2-wire Serial EEPROM AT24C21. 2-Wire, 1K Serial EEPROM. Features. Description. Not Recommended for New Designs. Pin Configurations.

T89C5115 UART Bootloader

T89C51AC2 UART Bootloader

8-bit Microcontroller. Application Note. AVR033: Getting Started with the CodeVisionAVR C Compiler

ARM7TDMI - based Microcontroller AT91RM3400. Errata Sheet

32-bit Secure. AT91SC CT-USB Summary. Microcontrollers. Features

8-bit Microcontroller. Application Note. AVR032: Linker Command Files for the IAR ICCA90 Compiler

AVR501: Replacing ATtiny15 with ATtiny25. 8-bit Microcontrollers. Application Note PRELIMINARY. Features. 1 Introduction

1-megabit (64K x 16) 3-volt Only Flash Memory AT49LV1024 AT49LV1025

When is Data Susceptible to Corruption

DIP Top View VCC A12 A14 A13 A6 A5 A4 A3 A2 A1 A0 A8 A9 A11 A10 I/O7 I/O6 I/O0 I/O1 I/O2 I/O5 I/O4 I/O3 GND. TSOP Top View Type 1 A11 A9 A8 A13 A14

64K (8K x 8) Parallel EEPROM with Page Write and Software Data Protection AT28C64B. Features. Description. Pin Configurations

256K (32K x 8) 5-volt Only Flash Memory AT29C256

T89C51CC01 CAN Bootloader

512K (64K x 8) 5-volt Only Flash Memory AT29C512

UART. Embedded RISC Microcontroller Core Peripheral

256K (32K x 8) 5-volt Only Flash Memory AT29C256

2-megabit (256K x 8) 3-volt Only Flash Memory AT29LV020

2-wire Serial EEPROM AT24C01A AT24C02 AT24C04 AT24C08 AT24C16

1-megabit (64K x 16) 5-volt Only Flash Memory AT49F1024 AT49F1025

GemCore Serial Lite PRO AT83C21GC. Summary

8-bit Microcontroller. Application Note. AVR410: RC5 IR Remote Control Receiver

2-wire Serial EEPROM AT24C1024. Features. Description. Pin Configurations. 1M (131,072 x 8)

Two-Wire Serial EEPROM AT24C164 (1)

DIP Top View A18 A16 A15 A12 A7 A6 A5 A4 A3 A2 A1 A0 I/O0 I/O1 I/O2 GND VCC A17 A14 A13 A8 A9 A11 A10 I/O7 I/O6 I/O5 I/O4 I/O3 VCC A18 A17

4-megabit (512K x 8) 5-volt Only 256-byte Sector Flash Memory AT29C040A

AT17LV(A) Series FPGA Configuration Memory. Application Note. Programming Specification for AT17LV(A) Series FPGA Configuration Memories

Atmel FPGA Integrated Development System (IDS)

AT89C5122. Application Note. Preventing Windows XP from Displaying Unknown device Message at Startup

2-megabit (256K x 8) 5-volt Only Flash Memory AT29C020

CryptoMemory 64 Kbit AT88SC6416C. Summary. Features. Table 1. Pin Configuration

Preparations. Creating a New Project

64K (8K x 8) High Speed Parallel EEPROM with Page Write and Software Data Protection AT28HC64BF

2-wire Serial EEPROMs AT24C128 AT24C256

1-megabit (128K x 8) 5-volt Only Flash Memory AT29C010A

4-megabit (512K x 8) Single 2.7-volt Battery-Voltage Flash Memory AT49BV040 AT49LV040

Parallel EEPROM Die Products. Die Products. Features. Description. Testing

4-megabit (512K x 8) 3-volt Only 256-byte Sector Flash Memory AT29LV040A

OrCAD Support for Atmel PLDs. Application Note. OrCAD Support for Atmel PLDs. Overview

CryptoMemory 256 Kbit AT88SC25616C. Summary

Atmel FPGA Integrated Development System (IDS)

T89C51CC02 CAN Bootloader

Battery-Voltage. 4-megabit (512K x 8/ 256K x 16) Single 2.7-volt. Flash Memory AT49BV4096A AT49LV4096A

Secure Microcontrollers for Smart Cards. AT90SC Summary

AVR -based Bridge between Full-speed USB and Fast Serial Asynchronous Interfaces AT76C711

Atmel-Synario CPLD/PLD Design Software ATDS1100PC ATDS1120PC ATDS1130PC ATDS1140PC. Features. Description

1-megabit (128K x 8) 5-volt Only Flash Memory AT49F001A AT49F001AN AT49F001AT AT49F001ANT. Features. Description. Pin Configurations

Transcription:

MP3 Player Reference Design Based on AT89C51SND1 Microcontroller... User Guide

AT89C51SND1 Reference Design User Guide -2

Table of Contents Section 1 Introduction...1 1.1 Abbreviations... 1 Section 2 Overview...2 2.1 User Interface... 3 2.2 Quickstart... 4 2.2.1 Power ON/OFF... 4 2.3 Main Functions... 4 2.4 Mode Functions... 4 2.5 Alternate Functions... 5 2.6 Special Information... 5 Section 3 Overview of Modes...6 3.1 Song Mode... 6 3.2 Voice Mode... 6 3.3 USB Mode... 6 3.4 Erase Mode... 7 Section 4 In-System Programming (ISP)...8 4.1 Using Hardware Conditions... 8 4.2 Using Software Condition... 8 AT89C51SND1 Reference Design User Guide 1

-2 AT89C51SND1 Reference Design User Guide

Introduction Section 1 Introduction The AT89RFD-01 is an MP3 reader reference design based on the AT89C51SND1 microcontroller. The AT89RFD-01 has the following features: Upload and Download of Files Through a USB Interface Plays or Records Songs Adjustable Volume, Treble, Medium and Bass Record Voice Through a Microphone in.wav Format 1.1 Abbreviations n AT89C51SND1: the MP3 microcontroller n ISP: In-System Programming n MP3: MPEG layer 3, a standard music format n PC: Personal Computer n USB: Universal Serial Bus AT89C51SND1 Reference Design User Guide 1-1

Overview Section 2 Overview Figure 2-1. Reference Design (Top view) There are two connectors: n Earphone stereo jack n Mini-B USB connector Figure 2-2. Reference Design (bottom view) The battery is a standard 1.5V-battery type AAA. The mass storage system on the board is a 64 MB NAND Flash memory. AT89C51SND1 Reference Design User Guide 2-2

Overview 2.1 User Interface The user interface has 4 LEDs and 5 push-buttons: n Play/Pause n Function n Previous - Minus n Next - Plus n ON (Pwr) Figure 2-3. User Interface Overview microphone ON (Pwr) AT89C51SND1 headphone connector Play/Pause Function (Func) LED n 1 LED n 2 LED n 3 LED n 4 Previous/Minus Next/Plus USB connector Each LED may be: n OFF n Flashing (ON during less than 1 second and only one time) n Slow blinking (continuously) n Fast blinking (continuously) n ON AT89C51SND1 Reference Design User Guide 2-3

Overview 2.2 Quickstart This procedure allows you to quickly play an MP3 song stored in the mass storage system. If the mass storage is empty or not formatted, see the following section regarding MP3 upload ( USB Mode ). 1. If the player is battery powered, push the ON button. If the player is powered by USB, plug the USB cable into your computer. All LEDs flash to confirm the power is ON. After a few seconds, depending of the mass storage type and size, LED n 1 is ON: indicating Song Mode is selected. 2. Push the Play/Pause button to play the first MP3 song of the mass storage medium. LED n 1 blinks during music play. 3. If the player is battery powered, after 1 minute of inactivity (no music), the player will be automatically turned off. 2.2.1 Power ON/OFF Press the ON button to power the player. Power off is automatic after one minute of inactivity (no music, no button pressed). When the player is connected to a PC using the dedicated USB cable, the player is powered by the USB power line and the battery is useless (and will not be discharged). Disconnecting USB cable will automatically switch supply to the battery without stopping the operation. 2.3 Main Functions Main functions are the first meaning of the buttons: n Play/Pause: this button means Play/Pause or Select or Record n Function: to change the current mode or alternate function n Plus/Minus: to change a music track or change a control level n ON: to power on the player using the battery 2.4 Mode Functions After power ON and initialization (step 1 of the previous section), there are 4 basic functions called modes, assigned to a dedicated LED: n LED n 1: Song Mode, to play the MP3 files of the embedded mass storage system n LED n 2: Voice Mode, to play or record short wav messages (phone quality) n LED n 3: USB Mode, to upload or download files to the embedded storage system n LED n 4: Erase Mode, to format the mass storage system By pressing the Function key sequentially, the user will switch between these modes (mode 1, 2, 3, 4, 1...). The LED ON indicates the current mode. To validate one of these modes, press the Play/Pause button. For instance, if LED n 1 is ON, the current mode is Song Mode. The Play/Pause button will start the MP3 music. AT89C51SND1 Reference Design User Guide 2-4

Overview 2.5 Alternate Functions When a mode is validated, the corresponding LED blinks slowly (except for USB mode, LED n 3 blink quickly when mode is activated and more slowly during transfer). Alternate functions regarding this mode are then accessible using the Function button. One LED blinking quickly is dedicated for each alternate function. For Song Mode, alternate functions are: n LED n 1: Volume Control n LED n 2: Bass Control n LED n 3: Medium Control n LED n 4: Treble Control n LED n 2,3,4: Bass Boost Control For Voice Mode, alternate functions are: n LED n 1: Volume Control n LED n 2: Stop and wait for Recording confirmation (to be validated by Play/Pause) For other modes, there exist no alternate functions at the present time. To adjust the controls, press Previous/Minus (to decrease) or Next/Plus (to increase) the control level. A bar graph lights up for the corresponding control when one of these buttons are pressed and during the adjustment, the control ranges from all LED OFF (minimum level) to all LED ON (maximum level). If no buttons are pressed for 3 seconds, the alternate functions setup ends and the LED corresponding to the current mode blinks slowly (Play information). 2.6 Special Information Normally only one LED is ON or blinking at the same time. Exceptions are: n Change of Music Track: all LEDs flash one time n Start-up/Power ON: all LEDs flash one time n Voice Record: LEDs 1, 3 and 4 blink n Software ISP mode: LEDs 1 and 4 ON n Bar graph for the selected Control: from 0 to 4 LEDs ON n Error report: all LEDs are ON Note: A possible error is that the mass storage system is not formatted. If this is the case, press the Function button until Format Mode is selected and validate this mode with the Play/Pause button. All LEDs are off during: n Format process of mass storage n Initialization n Power OFF AT89C51SND1 Reference Design User Guide 2-5

Overview of Modes Section 3 Overview of Modes 3.1 Song Mode This mode will allow users to listen to the MP3 song stored in the embedded mass storage system. If the memory is empty, LED n 1 does not blink and there is no music. If there are valid MP3 files in the memory, the player will play the first song and LED n 1 blinks slowly. Main and alternate functions give access to standard player functions. 3.2 Voice Mode When entering Voice Mode, the first wav file in the directory will be selected and played. When the player reaches the end of a wav file, or if wav file is not present, the player will switch to record mode: LED n 2 blinks quickly. If the button Play/Pause is pressed, the player records voices from the microphone. If the Function button is pressed, the player will go back to its initial state (Voice Mode selected). The microphone will record the voice and store it in the selected file until the maximum size of the wav file is reached. When the maximum size is reached, the player will go back to its initial state. 3.3 USB Mode This mode will allow users to connect the player to a PC running under Linux, Windows 2000/XP/Me and MacOS 9 (without driver) or Windows 98 (with a driver). The Data Storage Flash will then be seen as a removable disk drive and copying from any PC storage media to the player memory will be possible. Current firmware does not support Windows Format function. Prior to entering this mode, a USB cable has to be connected between the PC and the player. The player will then be powered by the USB supply. When entering USB mode, USB lines will be activated and a device will appear in the Hardware window of the PC. Note: First connection may require the driver installation depending of your Operating System. When connected, LED n 3 blinks quickly. When a file is moved to the player, this LED does not blink regularly. Transfer is completed when the LED continues to blink quickly and regularly. Note: The file will appear in the removable media window on the PC before the end of the transfer (almost at the beginning!). Do not disconnect the cable during an on-going transfer. In order to leave this state, the Play/Pause button must be pressed. Do not disconnect the cable before leaving USB Mode. AT89C51SND1 Reference Design User Guide 3-6

Overview of Modes 3.4 Erase Mode When this mode is validated by pressing Play/Pause button, all LEDs are OFF during the erasing and reformatting of the full on-board mass storage system. LED n 4 will be ON when this operation is performed. AT89C51SND1 Reference Design User Guide 3-7

In-System Programming (ISP) Section 4 In-System Programming (ISP) 4.1 Using Hardware Conditions Two solder points or short-cuts have to be physically set up on the board in order to enter this mode. This mode must be used when the initial software has been corrupted and when the ISP cannot be activated by the keyboard. Figure 4-1. ISP Hardware Condition Solder two SMD 0Ω resistors here (horizontally). To activate the USB transfer and To put hardware ISP conditions on the microcontroller. 4.2 Using Software Condition When connected to a PC using a USB cable, the player can be accessed by Flexible In- System Programming (FLIP) software. To enter by software in the ISP bootloader of the player, press the Function button while the USB cable is plugged into the PC (the ISP software condition is checked only during power ON Reset). A driver has to be installed the first time (See FLIP installation note). This driver is delivered with ATMEL FLIP software available on the Atmel Web site. When connected, a new device will appear in the hardware window of the PC under the "User interface peripheral" section, named USB_DFU_SND1. See FLIP User s guide for information about FLIP execution. AT89C51SND1 Reference Design User Guide 4-8

Atmel Headquarters Corporate Headquarters 2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 441-0311 FAX 1(408) 487-2600 Europe Atmel Sarl Route des Arsenaux 41 Case Postale 80 CH-1705 Fribourg Switzerland TEL (41) 26-426-5555 FAX (41) 26-426-5500 Asia Room 1219 Chinachem Golden Plaza 77 Mody Road Tsimhatsui East Kowloon Hong Kong TEL (852) 2721-9778 FAX (852) 2722-1369 Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan TEL (81) 3-3523-3551 FAX (81) 3-3523-7581 Atmel Operations Memory 2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 441-0311 FAX 1(408) 436-4314 Microcontrollers 2325 Orchard Parkway San Jose, CA 95131 TEL 1(408) 441-0311 FAX 1(408) 436-4314 La Chantrerie BP 70602 44306 Nantes Cedex 3, France TEL (33) 2-40-18-18-18 FAX (33) 2-40-18-19-60 ASIC/ASSP/Smart Cards Zone Industrielle 13106 Rousset Cedex, France TEL (33) 4-42-53-60-00 FAX (33) 4-42-53-60-01 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906 TEL 1(719) 576-3300 FAX 1(719) 540-1759 Scottish Enterprise Technology Park Maxwell Building East Kilbride G75 0QR, Scotland TEL (44) 1355-803-000 FAX (44) 1355-242-743 RF/Automotive Theresienstrasse 2 Postfach 3535 74025 Heilbronn, Germany TEL (49) 71-31-67-0 FAX (49) 71-31-67-2340 1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906 TEL 1(719) 576-3300 FAX 1(719) 540-1759 Biometrics/Imaging/Hi-Rel MPU/ High Speed Converters/RF Datacom Avenue de Rochepleine BP 123 38521 Saint-Egreve Cedex, France TEL (33) 4-76-58-30-00 FAX (33) 4-76-58-34-80 e-mail literature@atmel.com Web Site http://www.atmel.com Atmel Corporation 2002. Atmel Corporation makes no warranty for the use of its products, other than those expressly contained in the Company s standard warranty which is detailed in Atmel s Terms and Conditions located on the Company s web site. The Company assumes no responsibility for any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without notice, and does not make any commitment to update the information contained herein. No licenses to patents or other intellectual property of Atmel are granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel s products are not authorized for use as critical components in life support devices or systems. Atmel is a registered trademark of Atmel. Linux is a Registered Trademark of Linus Torvalds. MacOS is a Registered Trademark of Apple Computer, Inc. Windows is a Registered Trademark of Microsoft Corporation. Other terms and product names may be the trademarks of others. Printed on recycled paper.