Design of USB interface circuit for embedded fingerprint recognition system

Publisher:SereneHeartLatest update time:2014-11-15 Source: 互联网Keywords:Embedded Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

  In the fingerprint automatic identification system, embedded systems have been more and more widely used due to their advantages such as low power consumption, small device size and high security. Universal Serial Bus (USB) is a microcomputer bus interface specification jointly formulated by Inter, Microsoft, IBM and NEC. It has a high transmission rate, supports plug-and-play, occupies less system resources and has strong expansion capabilities. In the application of embedded systems, communication with PCs is almost inevitable. Due to the requirements of communication speed and the rapid development of computer hardware, the traditional RS232 interface has become increasingly unable to meet the needs of users, so the implementation of USB interface in embedded systems is imperative.

  System control module design

  The core processor of the system control module is P89C52. Due to its limited interface, it is very difficult to complete system control and USB interface control at the same time. Considering the system cost, development time cycle and inheritance, it is not convenient to replace other processors, so it is necessary to consider completing multiple tasks based on this processor. According to the characteristics of the fingerprint automatic recognition system, the system needs to use the USB interface to complete the transmission of fingerprint templates and login information only after completing fingerprint entry or login. Therefore, for the processor, USB control and system control can be carried out in a time-division multiplexing manner. Therefore, a level conversion chip and an 8-bus transceiver are used to control the selection and flow of data to ensure that the system can work normally.

  System USB interface design

  The USB interface hardware is mainly centered on the interface chip PDIUSBD12, and the connection between it and the USB physical interface and the microcontroller is designed. The interface module selects the power supply mode through jumpers, and can support both USB bus power supply mode and peripheral power supply mode. It is a full-speed USB device interface. Reliability, testability and electromagnetic compatibility are fully considered during the design process. The interface circuit is shown in Figure 3.

  

  The interface circuit power supply is selected by the dial switch K1. When K1 is connected to MVCC, the system is in self-powered mode; when K1 is connected to UVSB, it is in bus power mode. When the system is in self-powered mode, the system detects whether VUSB exists through the EOT_N pin, and connects a 1M discharge resistor to weaken the charge to ensure that EOT_N becomes low when VUSB is removed, and at this time, the self-powered power supply and the USB bus can only share the ground, and the device cannot output current to VBNS through the USB port.

  In terms of control communication between the MCU and PDIUSBD12, the MCU indicates whether the content transmitted on the parallel data bus P0 is a command or data by controlling the state of the A0 pin of PDIUSBD12. At this time, the ALE pin on PDIUSBD12 used for data address bus multiplexing is always grounded. The interrupt pin INT_N is the key to the system. Almost all USB activities are received by PDIUSBD12 at the device interface end, and then the interrupt notification to the MCU is completed. The SUSPEND on PDIUSBD12 is a bidirectional pin, which ensures that the USB device can be awakened by both the device master (MCU) and the host PC. When PDIUSBD12 is working, if it fails to detect SOP for three consecutive times, the suspend pin will be set high.

  The GL_N pin on the PDIUSBD12 chip indicates the system working status through an external light-emitting diode. During the USB enumeration process, the LED indicator flashes intermittently according to the communication status; when the PDIUSBD12 is successfully enumerated and configured, the LED indicator will remain on; subsequent successful transmission (with response) between PDIUSBD12 will turn off the LED; the LED will be turned off when in the suspended state.

  The on-chip clock generation circuit uses a 6MHz crystal oscillator, matched with a 22pF and a 68pF passive capacitor. The use of a 6MHz crystal oscillator is also to reduce the risk of EMI (electromagnetic interference effect) during product manufacturing, because the higher the frequency of the external line, the stronger the EMI effect will be. The use of a lower frequency in the off-chip circuit and multiplying the frequency inside the chip will not affect the processing speed of the chip, but also improve the safety of external wiring. The purpose of using two capacitors of different capacitance values ​​is to enable the crystal to start oscillating quickly. After measurement, the start-up time of the crystal oscillator is about 2ms.

  PDIUSBD12 can use two operating voltages: 5V and 3.3V. Since the IO voltage of the main control microcontroller is 5V, the PDIUSBD12 also uses a 5V operating voltage. At this time, while connecting 5V to the VCC pin of PDIUSBD12, the VOUT pin on PDIUSBD12 should be left empty and connected to a decoupling capacitor. In addition, in order to reduce the EMI of the system, add magnetic beads to the VBUS and ground wires on the input side of the USB connector, such as the BLM21P in Figure 3, and use capacitive coupling between the USB shield and the ground.

  Due to the complexity of the USB communication protocol, a considerable part of the work is completed by hardware circuits, so the accuracy of hardware circuit design is very strict. The wiring should be reasonable to minimize the influence of distributed capacitance and electromagnetic interference. The quality of the hardware circuit will directly affect whether the data can be transmitted normally.

Keywords:Embedded Reference address:Design of USB interface circuit for embedded fingerprint recognition system

Previous article:Design of Switching AC Voltage Stabilized Power Supply Circuit
Next article:Several constant current source circuit module designs

Latest Power Management Articles
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号