Audio system design based on intelligent interface

Publisher:DelightfulGazeLatest update time:2010-07-26 Source: 现代电子技术 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

0 Introduction

With the development of modern electronic technology, the development of interface technology is also becoming more and more rapid, and the USB interface has developed and grown in such a background. In the traditional hardware architecture, the interface is regarded as a part of the corresponding external device, and each interface can generally only be connected to the same device. Although several devices of the same type can be connected to the same interface through the so-called "daisy chain" method, different types of devices cannot be mixed and connected to the same interface. As the number of devices with USB interfaces is increasing, in order to meet such needs, a USB 2.0 interface solution is given here, which reads various USB devices through the USB interface and reads various mainstream memory cards through the SD card interface. This solution supports commonly used USB storage devices (including U disk/USB hard disk/USB flash drive/USB card reader) and SD cards (including standard capacity SD cards and high capacity HC-SD cards as well as protocol-compatible MMC cards and TF cards). This paper proposes a solution for a full hardware audio system with intelligent multi-interfaces, which further enhances the scalability of the audio system. In principle, it can connect most of the current mainstream storage devices, realizing the expansion of multiple uses of one device. It can further improve the utilization rate of existing resources, has certain economic and social benefits, and adopts power consumption control methods such as full hardware decoding and single-chip computer frequency reduction to reduce the power consumption of the entire system to about 50% of traditional similar equipment, which is in line with my country's theme of energy conservation and environmental protection.

1 Hardware System Design

1.1 Chip Overview

ATmegal28 is a low-power 8-bit CMOS microcontroller based on an enhanced AVR RISC structure. Due to its advanced instruction set and single-clock cycle instruction execution time, the data throughput of ATmegal28 is as high as 1 MIPS/MHz. The AVR core has a rich instruction set and 32 general-purpose working registers. All registers are directly connected to the arithmetic logic unit (ALU), so that one instruction can access two independent registers simultaneously in one clock cycle. This structure greatly improves code efficiency and has a data throughput of up to 10 times that of ordinary CISC microcontrollers.

CH3768 is a file management control chip used for microcontroller systems to read and write files in USB flash drives or SD cards. CH376S supports USB device mode and USB host mode, and has built-in basic firmware for USB communication protocols. Firmware that handles the dedicated communication protocol for Mass-Storage devices; SD card communication interface firmware and FATl6, FAT32 and FATl2 file system management firmware support commonly used USB storage devices and SD cards.

VSl053B is a single-chip Ogg Vorbis/MP3/AAC/WMA/MIDI audio decoder and IMA ADPCM/user-loadable Ogg Vorbis audio encoder, supporting CD-level audio playback and recording. The chip contains a high-performance, low-power DSP processor core VS_DSP, with 16 KB of instruction RAM and 0.5 KB of data RAM. VSl053B has a serial control and data input/output interface, 8 GPIO interfaces, high-performance variable sampling rate DAC and ADC, stereo audio input interface and stereo audio output interface. PL2303 is used to realize the conversion between USB and standard RS 232 serial port. Two independent large buffers are used for the connection of two buses. Large data buffers are used for USB bulk data transmission. Automatic handshake mode can be used for serial communication, so that the baud rate can be achieved much higher than that of standard UART controller. PL2303 supports USB power management and remote wake-up protocol. In this design, the PL2303 chip is mainly used to combine the download line of the main control unit and the power supply module into one, which greatly simplifies the design complexity of the system. The NOKIA 5llO LCD display is a traditional dot matrix LCD display without built-in English and Chinese character fonts. Therefore, in the process of NOKIA 5llO LCD display, the microcontroller is required to convert the ASCII code value read from the memory into the corresponding English and Chinese character dot matrix information, and then transmit the dot matrix information to the LCD display through the serial port for display.

1.2 Hardware Design Block Diagram

The hardware system is mainly composed of the main control module, intelligent expansion interface, audio codec module, LCD display module, keyboard LED indication module, and JTAG/ISP/RS 232 download interface. The logical connection diagram is shown in Figure 1.

Logical connection diagram

1.3 Interface design

1.3.1 VS1053B and keyboard and LCD display interface design

Keyboard control unit corresponding function

KEY1~KEY7 are the keyboard control units of the system, and their corresponding functions are shown in Table 1. LED1~LED7 correspond to key indicator lights. If key KEY1 is pressed, LED1 lights up. The peripheral interface is shown in Figure 2.

Peripheral Interface

1.3.2 USB host device interface design

The interface design of the USB host device is shown in Figure 3.

The system software design mainly includes the main program, interrupt control subroutine, keyboard scanning subroutine, LCD control subroutine, and peripheral module control program. The main program operation flow is shown in Figure 4, and the software system flow chart is shown in Figure 5.

Software system flow chart

2 Software System Design

The whole design operation is shown in Figure 6 and Figure 7.

Design and Run

3 Conclusion

Through this design, the control function of the single-chip microcomputer in the intelligent multi-interface design and the processing method under multiple interrupts are further enhanced. In the single-chip microcomputer application system, the function of human-computer dialogue is usually required, and data can be input at any time, and various corresponding control commands can be issued, and finally the operation results are output to the LCD display through the output interface. Since the LCD display of this design is a traditional LCD display and does not have any built-in font library, it is necessary to read the Chinese character dot matrix information in the SD card Fat file system through the single-chip microcomputer, convert ASCII into corresponding dot matrix information, and then display it, which further increases the difficulty of system control.

Since the system can make secondary use of existing resources and the intelligent interface solution can flexibly read and write various storage devices, further improving resource utilization, the system has certain social value and development prospects.

Reference address:Audio system design based on intelligent interface

Previous article:Design of remote temperature difference cycle controller based on ATmega16
Next article:Anti-interference design of small heating furnace control system using AVR single chip microcomputer

Recommended ReadingLatest update time:2024-11-16 21:54

u-boot-2009.08 ported to mini2440 to add USB function
Migration environment 1. Host environment: CentOS 5.5 under VMare, 1G memory. 2. Integrated development environment: Eclipse IDE 3. Compilation environment: arm-linux-gcc v4.4.3, arm-none-eabi-gcc v4.5.1. 4. Development board: mini2440, 2M nor flash, 128M nand flash. 5. u-boot version: u-boo
[Microcontroller]
USB interface solution for data acquisition system based on C8051F320
As modern industrial production and scientific research place increasing demands on data acquisition systems, transmission speed, error correction capability, and ease of operation and installation have always been issues that people are concerned about when collecting data. This has made data communication technolo
[Microcontroller]
USB interface solution for data acquisition system based on C8051F320
Diodes Incorporated introduces automotive-qualified dual-channel decoder for USB PD 3.1 SPR, PPS and QC protocols
Diodes Incorporated introduces automotive-qualified dual-channel decoder for USB PD 3.1 SPR, PPS and QC protocols Diodes Incorporated (Nasdaq: DIOD) has launched a highly integrated dual-channel USB Type-C® protocol decoder to address the rapidly increasing opportunities for pre-insta
[Analog Electronics]
Diodes Incorporated introduces automotive-qualified dual-channel decoder for USB PD 3.1 SPR, PPS and QC protocols
Wireless audio system based on USB host and ZigBee
  1 Introduction   In recent years, with the rapid development of embedded system technology, network communication technology and home appliance industry, information technology is gradually penetrating into people's lives, and smart home design is gradually coming into view. However, the current smart home design
[Microcontroller]
Wireless audio system based on USB host and ZigBee
USB device driver (II)
First, let's look at the structure of the USB device descriptor: In the USB bus identification stage, the USB descriptor is sent to the USB bus driver. The data transmission object of the device is the endpoint, and endpoint 0 is a special endpoint. In the USB bus driver identification stage, An
[Microcontroller]
USB device driver (II)
Multi-channel USB2.0 data acquisition system based on AT91SAM7X
Introduction: This paper designs a multi-channel USB2.0 data acquisition system based on AT91SAMTX, and uses AT91SAM7X chip as the core to realize the conditioning, conversion, acquisition and transmission of data signals to the upper computer. Since AT91SAM7X has built-in ADC module and USB2.0 device interface, the s
[Microcontroller]
Multi-channel USB2.0 data acquisition system based on AT91SAM7X
Design of USB-CAN converter based on LPC2119
  introduction   The controller area network (CAN) is a multi-host local network launched by the German BOSCH company in the 1980s for modern automotive applications. Due to the advantages of high reliability, complete functions, reasonable cost, and real-time performance, the CAN bus is no longer limited to the autom
[Microcontroller]
Design of USB-CAN converter based on LPC2119
USB read-write controller based on CPLD/FPGA
Introduction With the development of computer technology, paperless office has become the main form of daily office work in various units. With the increasing use of USB storage devices, the harm of data leakage is becoming more and more serious. Therefore, it is necessary to control the operation permissions
[Embedded]
USB read-write controller based on CPLD/FPGA
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号