ATSAM3103 ATMEL
Document overview
- Manufacturer or author: Provided By digicamel.com
- PDF pages: 24
Technical content
Features
Three DSPs and 24-bit Audio Router On-chip 32 kHz to 96 kHz Sampling Rate 16-bit Microcontroller On-chip Variety of I/Os, including SmartMedia ™ and DataFlash® Embedded RAM for Single Chip Operation (530 kbit) Warm Start Power-down 1 µA Typical Deep Power-down, 0.5 mW/MIPS Typical Operating External Flash/ROM Capability Available in a 64-lead TQFP Package Ideal for Real-time Audio Applications – MP3 Decoding Wavetable Synthesis (GM-Lite) – Effect Processing (Reverb, Echo, Chorus, etc.) – Speech Recognition and Synthesis – Filtering, Sampling Rate Conversion Typical Applications: Cellular Phones, MP3 Player, Effect Devices, Intelligent Answering Machinces, Toys
Description
The ATSAM3103 is a member of the new ATSAM3000 family that uses DSP Array Technology. The ATSAM3103 includes three 24-bit DSPs, a 24-bit Audio Router and a general purpose 16-bit on-chip CISC Microcontroller. Its high performance and flexibil- ity with eight input and eight output channels allow implementation of professional quality audio applications such as effects processing and MP3 decoding. A variety of I/Os, including SmartMedia ™ and DataFlash ® are provided. Sampling rates up to 96 kHz at 24 bits are supported. Audio Processing ATSAM3103 Versatile Low-power Audio DSP/ Low-cost Effects DSP
2 ATSAM3103
Figure 1. ATSAM3103 DSP Array Block Diagram DSP Array The ATSAM3103 includes three on-chip DSPs. Bus. It can request external data such as compressed audio through the Async Bus. Each P24 RAM can be accessed through the Async Bus. cache, pitch control, second-order filter and two envelope generators. 96 kHz. Each frame is divided into 64 time slots. Each slot is divided into 4 bus cycles.
6093A–DRMSD–25-Oct-04 allowing inter P24 communication at the current sampling rate. Slots 0 to 7 are reserved for a specific router DSP, which also handles audio out, audio in, and remix send. Async Bus The Async Bus is 24-bit data inside the chip and 16-bit outside. The P16 processor normally masters the Async Bus; it can read/write the P24 memories and the external or embedded ROM/RAM. However, each P24 can request a bus mas- ter cycle for accessing external ROM/RAM or other P24 memories. This allows efficient intercommunication between several P24s on asynchronous block basis. Specific P24 instructions FLOAT and FIX convert fixed-point DSP data to floating-point 16 bits. This allows for 20-bit audio dynamic range when using 16-bit external memory. 16-bit Processor The P16 processor is widely used in ATSAM products. Using the P16 allows to keep the large firmware investments from the ATSAM97xx series. A built-in ROM, connected to the P16, holds basic input/output software (BIOS) for peripherals such as UART, DataFlash, SmartMedia, MPU, as well as a debugger using a dedicated asynchronous serial line. The firmware can reside on external parallel ROM/Flash or it can be down- loaded at power-up into the built-in 16K x 24 RAM from serial EEPROM, DataFlash, SmartMedia or host. MMU (Memory Management Unit) The MMU handles transfer requests between the external or embedded RAM/ROM, the P16 and the P24s through the Async Bus. The ATSAM3103 includes an on-chip 16K x 24 RAM. Router: Final ACC, MIX, Audio Out, Audio In This block includes a RAM, accessed through the Async Bus, which defines the routing from the Sync Bus to/from the Audio I/O or back to the Sync Bus (mix send). It takes care of mix and accumulation from Sync Bus samples. Eight channels of audio in and eight channels of audio out are provided (4 stereo in/out, I2S format). The stereo audio in channels may have a different sampling rate than the audio out channels. In this case, one or more P24s take care of sampling rate conversion. I/O The ATSAM3103 includes versatile I/Os that share common pins for reduced pin count and small IC footprint. Most I/Os, when not used for a specific function, remain available as firmware controlled general-purpose pins. The following peripherals are included on-chip: 2 x 8-bit timers 2 x 16-bit timers Parallel slave 8-bit port, MPU401 compatible Parallel master 8-bit port, for connection to SmartMedia and/or LCD display, switches, etc. 2 x asynchronous bi-directional serial ports Synchronous serial slave port (SPI type host connection) SPI master bi-directional port for EEPROM or DataFlash c onnection Firmware controlled I/O pins
4 ATSAM3103
Figure 2. Host-controlled MP3 Player Figure 3. Stand-alone MP3 Player (SmartMedia Based)
6 ATSAM3103
DSP Considerations The ATSAM3103 includes three P24 DSPs. Table 1 lists the performance levels achievable by the P24. of operation are host controlled and stand-alone. another interface is used, then external EEPROM or DataFlash is required. SmartMedia reserved sectors starting at sector #1. Table 1. P24 Performance Levels
Pin Description Identical sharing number indicates multifunction pins. Pd indicates a pin with built-in pull-down resistor. Pu indicates a pin with built-in pull-up resistor. Table 2. Pinout by Pin Name PWROUT if the built-in power switch is used. VC33 3, 32 PWR - Periphery power. All these pins should be returned to nominal 3.3V. input if CS and WR are low (write to chip). Type of data defined by A0 input.
64 In 3 Slave 8-bit interface chip select, active low
firmware will wait for SmartMedia SMPD.
8 ATSAM3103
to know the operating freq of the chip (see FS1). corresponding CLAD3 - 0 is not used. DAAD3 - 0 if the corresponding WSAD3 - 0 is not used. CLAD0 external rate when sampling rate conversion is requested. when sampling rate conversion is requested. DAAD3 - 1 have built-in pull-downs. They may be left open if not used.
29 Out 11 SmartMedia chip enable (CE ), active low
Table 2. Pinout by Pin Name (Continued)
14 Out - DataFlash chip select
down. It may be left open if not used. may be left open if not used. built-in PLL multiplies the clock frequency by 4 for internal use. download from an external SmartMedia, DataFlash or host. grounded or left open for normal operation. STOUT 24 Out - Serial test output. 57.6 Kbaud async output used for firmware debugging. which allow warm restart of the chip.
- Test input. Should be grounded or left open.
10 ATSAM3103
Table 3. ATSAM3133 Pinout by Pin Number
6 CLBD 22 RESET
8 IRQ SMRE
13 GND 29 SMCE
15 DFSCK 31 VC18 47 LFT 63 VC18
Figure 7. Thin Plastic 64-lead Quad Flat Pack (TQFP64) Table 4. Package Dimensions in mm
12 ATSAM3103
6093A–DRMSD–25-Oct-04
Electrical Characteristics
Absolute Maximum Ratings(*) Recommended Operating Conditions Note: 1. Operation at lower V C33 values down to V C18 is possible, however external timing may be impaired. Please contact Atmel in case of use of these circuits with V C33 outside the recommended operating range. Maximum Ratings" may cause permanent dam- age to the device. This is a stress rating only and functional operation of the device at these or any other conditions beyond those indicated in the Recommended Operating Conditions of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. Voltage on any pin C18 + 0.3V Table 5. Recommended Operating Conditions
Table 6. DC Characteristics (T A = 25°C, VC18 = 1.8V ± 10%, VC33 = 3.3V ± 10%)
14 ATSAM3103
Pins used: D7-D0 (I/O), CS (input), A0 (input), WR (input), RD (input), IRQ (output). This interface is typically used to connect the chip to a host processor. Figure 9. Host Interface Write Cycle Table 7. Timing Parameters
Status register is read when A0 = 1, RD = 0, CS = 0. If 0, data from ATSAM3103 to host is pending and IRQ is high. Reading the data at A0 = 0 will set TE to 1 and clear IRQ. If 0, then ATSAM3103 is ready to accept DATA from host. Note: If status bit RF is not checked by host, write cycle time should not be lower than 3 µs. peripherals such as LCD screens. This is a master synchronous serial interface, operating in SPI mode 0. Please refer to Atmel DataFlash datasheets for accurate SPI mode 0 timing. Figure 10. Typical DataFlash Interface Timing
16 ATSAM3103
this interface. Therefore an external ROM/Flash/EEPROM is r equired. SCLK, therefore the host should change SDIN on the negative SCLK edge. SCLK low, indicates that SDIN will hold MSB data on the next rising SCLK. The data is stored internally in a 256-byte FIFO. sor to send data in burst mode. The maximum SCLK frequency is fck (fck being the crystal frequency). The minimum time between two bytes is 64 fck periods. The contents of the SDIN data are defined by the firmware. Figure 11. Serial Slave Interface Typical Timing
18 ATSAM3103
Figure 14. Digital Audio Frame Format, 192 x Fs and 384 x Fs Modes
6093A–DRMSD–25-Oct-04 Reset and Power-down During power-up, the RESET input should be held low until the crystal oscillator and PLL are stabilized, which takes max. 10 ms. After the low-to-high transition of RESET , the following occurs: All P24s enter an idle state. P16 program execution starts in built-in ROM. The power-up sequence is as follows: STIN is sensed. If HIGH, then the built-in debugger is started. S M C is sensed. If LOW, then the built-in loader waits for SmartMedia presence detect (SMPD). When detected, the firmware is downloaded from SmartMedia reserved sector 1 and started. An attempt is made to read the first two bytes of an external EEPROM or DataFlash. If “DR” is read, then the built-in loader loads the firmware from the external EEPROM/DataFlash and starts it. Firmware download from a host processor is assumed. 1. The byte 0ACh is written to the host, this raises IRQ. The host can recognize that the chip is ready to accept program download. Higher speed transfer can be reached by polling the parallel interface status (CS 2. The host sends the firmware size (in words) on two bytes (Low byte first). 3. The host sends the ATSAM3103 firmware. The firmware should begin with string “DR”. 4. The byte 0ACh is written to the host, this raises IRQ. The host recognizes that the chip has accepted the firmware. 5. ATSAM3103 starts the firmware. If PDWN is asserted low, then the crystal oscillator and PLL are stopped. If the power switch is used, then the chip enters a deep power-down sleep mode, as power is removed from the core. To exit power down, PDWN has to be asserted high, then RESET applied. Other power reduction features allowing warm restart are controlled by firmware: P24s can be individually stopped. The clock frequency can be internally divided by 256.
20 ATSAM3103
6093A–DRMSD–25-Oct-04 Recommended Board Layout Like all HCMOS high integration ICs, the following simple rules of board layout are man- datory for reliable operation: GND, VC33, VC18 Distribution and Decouplings All GND, VC33, VC18 pins should be connected. A GND plane is strongly recom- mended. The board GND + VC33 distribution should be in grid form. Recommended VC18 decoupling is 0.1 µF at each corner of the IC with an additional 10 µF decoupling close to the crystal. VC33 requires a single 0.1µF decoupling. Crystal, LFT The paths between the crystal, the crystal compensation capacitors, the LFT filter R-C- R and the ATSAM3103 should be short and shielded. The ground return from the com- pensation capacitors and LFT filter should be the GND plane from ATSAM3103. Buses A ground plane should be implemented below the D0 - D7 bus, which is connected to the host and to the ATSAM3103 GND. A ground plane should be implemented below the WA0 - WA21/WD0 - WD15 bus, which is connected to the ROM/Flash grounds and to the ATSAM3103. Analog Section A specific AGND ground plane should be provided, which is connected to the GND ground by a single trace. No digital signals should cross the AGND plane. Refer to the Codec vendor recommended layout for correct implementation of the ana- log section.
Figure 15. Recommended Crystal Compensation and LFT Filter
22 ATSAM3103
6093A–DRMSD–25-Oct-04 Product Development and Debugging Atmel provides an integrated product development and debugging tool SamVS. SamVS runs under Windows ® (98, ME, 2000, XP). Within the environment, it is possible to: E d i t Assemble Debug on real target (In-circuit Emulation) Program Dataflash, EEPROM, SmartMedia on target. Two dedicated IC pins, STIN and STOUT allow running firmware directly into the target using standard PC COM port communication at 57.6 Kbauds. Thus time-to-market is optimized by testing directly on the final prototype. A library of frequently used functions is available, such as: Reverb/Chorus MP3 decode 31-band equalizer Parametric equalizer Atmel engineers are available to study customer-specific applications.
6093A–DRMSD–25-Oct-04 Document Details Title ATSAM3103 Literature Number 6093
Revision History
Version A Publication Date: 25-Oct-04
Printed on recycled paper. Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMEL’S TERMS AND CONDI- TIONS OF SALE LOCATED ON ATMEL’S WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTOR Y WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICU LAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR I NCIDEN- TAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the rig ht to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained her ein. Atmel’s products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life. Atmel Corporation Atmel Operations
2325 Orchard Parkway
San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600 Regional Headquarters 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 Tsimshatsui
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 Memory San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 Microcontrollers San Jose, CA 95131, USA Tel: 1(408) 441-0311 Fax: 1(408) 436-4314 La Chantrerie BP 70602
44306 Nantes Cedex 3, France
13106 Rousset Cedex, France
1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA 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
1150 East Cheyenne Mtn. Blvd. Colorado Springs, CO 80906, USA 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
www.atmel.com/literature 6093A–DRMSD–25-Oct-04 © Atmel Corporation 2004 . All rights reserved. Atmel ®, logo and combinations thereof, Dream ® and DataFlash ® are registered trademarks, and Everywhere You Are SM is the trademark of of Atmel Corporation or its subsidiaries. Windows ® 98, Windows ® 2000, Windows ® ME and Win- dows® XP are the registered trademarks of Microsoft Corporation. SmartMedia ™ is the trademark of SanDisk Corp. MPEG Layer-3 audio decod- ing technology licensed from Fraunhofer IIS and Thomson Multimedia. Other terms and product names may be the trademarks of othe rs.