AVR 32-bit microcontroller implements a true single-chip DRM digital audio codec

Publisher:BlissfulCharmLatest update time:2013-11-11 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  With the explosive growth of digital audio products in recent years, many chips or chipsets have appeared on the market to meet the requirements of more advanced players. However, there are also some pitfalls for some products entering the digital audio market. Things are not as simple as choosing the appropriate processor hardware.

  In recent years, stand-alone audio and multimedia players have dominated the market, but some consumers are also trying to connect their portable media players to their home or car stereo equipment, which has also prompted some manufacturers in the home or car stereo equipment market to use their high-fidelity (HiFi) systems in the digital audio era.

  Using computer hardware

  Some manufacturers have tried to use computer hardware in audio and multimedia players. Although these hardwares are very good at processing the huge data of computer multitasking, they bring great challenges to audio designers, mainly manifested in relatively slow speed, unpredictable task switching, and relatively poor real-time performance. Such computer hardware-implemented systems are subject to high power consumption and require high CPU running speeds to achieve uninterrupted playback. On the other hand, low integration is also a problem. Many systems require 3 or 4 chips, including MPU, SDRAM, NAND flash memory and audio codec. It is no longer realistic to further reduce the number of chips because modern wafer processes do not allow these technologies to be implemented on the same silicon chip.

  ASIC Approach

  Other manufacturers have taken a single-chip application-specific integrated circuit (ASIC) approach. In the past, microcontrollers only had enough processing power to decode digital audio content, so a custom MP3 or similar decoder would need to be added to the existing microcontroller. This approach has long been considered an advantage by portable audio player manufacturers because a single IC means a smaller circuit board can be designed. Another advantage of this approach is that it reduces power consumption, allowing the use of smaller batteries. The reduction in power consumption is partly due to the lower clock rate required for the DSP, and it also eliminates the need for a peripheral memory bus. Although this approach has advantages in terms of size and power consumption, it also carries a lot of risk. Due to changes in technology standards and changing consumer expectations, a new product may become obsolete before it is actually available on the market.

  Perfect audio codec

  Obviously, the ideal solution is to use a commercially available microcontroller with a CPU powerful enough to decode the audio content, eliminating the need for a custom audio decoder. This approach has all the advantages of a single-chip ASIC, but with no hardware that could become obsolete, making the platform flexible enough to meet changes in consumer demand.

  It is very clear that where there is a need, there is a solution. Atmel's newly released 32-bit microcontroller AT32UC3A3 can provide the required DSP performance and support innovative DMA schemes, which means that a highly predictable audio decoder can be implemented to achieve advanced audio quality.

  Software audio decoding

  The control center of the AVR32 microcontroller is the AVR32 CPU core, which is unique in that it can provide a wide range of DSP instructions that are only available on high-end CPUs and DSPs. Due to its high performance, it no longer requires customized audio decoder hardware to decode MP3 data streams, and the operating frequency is only slightly higher than 20MHz. Since the CPU can operate at a maximum frequency of 72MHz, the CPU has enough performance margin to handle more "heavy" audio formats such as AAC and AAC+. In addition, the CPU has enough performance to run the operating system, file storage, communication, etc.

  In order to support the playback of encrypted audio formats, Atmel can provide a derivative product of the AT32UC3A3 series, which has a built-in 256-bit AES encryption unit, which can effectively improve the decryption speed of digital encrypted audio. However, this product with an AES encryption unit is subject to strict export restrictions in the United States, so it is not aimed at the traditional consumer audio equipment market.

  High-fidelity playback

  After the digital audio is decompressed, it must be converted to analog audio to be played on a series of speakers. For stereo output, the AVR32 microcontroller provides a high-fidelity stereo 16-bit streaming DAC that only requires a small external power amplifier to achieve the voltage signals required for the audio line, headphones, and external speakers. 4-channel audio playback and full surround sound effects require an external audio codec, which is mostly connected to the microcontroller's IIS interface.

  Flexible file storage

  The AVR32 microcontroller has enough flash and SRAM to store firmware, decode audio, buffer communications, etc., but there is not enough memory on the chip to buffer more than two seconds of audio content. The AVR32 microcontroller provides a wide range of memory options, and the three most popular memory storages are SD/MMC cards, USB, and NAND flash. Audio devices can use any combination to store audio content. The SD card interface can support up to 2 High Speed ​​High Capacity SD cards, and the USB host interface can support not only the usual USB memory sticks, but also media players, cameras, and mobile phones with USB interfaces. The NAND flash interface supports up to two memory chips, supporting single-level cell (SLC) and multi-level cell (MLC) ECC. For applications that only need to buffer one or two seconds of audio, the on-chip SRAM is sufficient and no external memory is required.

  High-speed communication

  Another important characteristic of digital audio equipment is the speed at which music and other audio content can be transferred in and out. Processing a single digital audio channel may only require 200kb/s or less of bandwidth. But for applications with large storage audio libraries, consumers require faster communication speeds to synchronize large audio libraries more quickly. With this in mind, the AVR32 AT32UC3A3 has a high-speed USB interface and an MMC/SD slot, and supports WLAN under SDIO. Other members of the product family, such as the AT32UC3A0 and AT32UC3A1, also support a full-speed USB interface, as well as a 100 Mb/s Ethernet port. Obviously, the AVR32 microcontroller is not only designed for mainstream consumer electronic devices, it also provides a wide range of traditional interfaces, including USART, SPI and I2C, while also having enough timers to run DC and stepper motors.

  Dual-port SRAM

  The AVR32 microcontrollers offer many high-speed communication interfaces, which means that a single SRAM can quickly become a system bottleneck. Atmel anticipated these situations and added no less than four SRAMs to the AT32UC3A3, two of which provide dual-port access to speed up communication and avoid contention. This ensures that the SRAM bandwidth does not affect the transfer speed of the system, and most importantly, this ensures that audio playback quality is not affected even when there is high-speed communication in the background.

  The backbone of the AVR32 microcontroller is a multi-layer high-speed bus that enables the CPU and peripherals to share more data per cycle by allowing simultaneous access between multiple masters and slaves.

  To develop this multi-layer bus, Atmel engineers have divided the main 128Kb SRAM of the AT32UC3A3 microcontroller into three modules, each of which is given its own independent memory interface to the bus. This clever approach allows three high-speed communication interfaces to access the SRAM simultaneously without waiting for data. Half of the SRAM is a high-speed SRAM embedded in the CPU and has dual-port access performance. The other half of the SRAM is a low-power SRAM, and the CPU and peripherals share the available bandwidth. To round out the design, the high-speed USB interface has its own 1.5Kb dual-port SRAM to ensure that the entire data packet can be transmitted efficiently without the risk of being affected by the main system.

  Low power consumption

  The AVR32 microcontroller consumes less than 2.0mW/MHz, which allows the audio device to provide more than 150 hours of playback time from two AA batteries. In standby mode, with only the real-time clock running, the audio device can be left in a drawer for up to 9 years without running out of power.

Reference address:AVR 32-bit microcontroller implements a true single-chip DRM digital audio codec

Previous article:Design of FSPLC Microprocessor SOC Using AVR IP Core
Next article:Design of intelligent helmet characteristic detector based on ATmega128

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号