Design of Portable Colorimeter Base on Double-Mode USB Interface

Author
WeiYaoDong
Advisor
MaHaiTao
School
Jilin University
Major
Signal and Information Processing
Classification
TH83 Component analysis instrument
Degree
Master's thesis
Year
2009
Downloads
150
Citations
1

Request the full text

Abstract

With the development of computer technology, the application of computer technology is more and more extensive, data acquisition equipments adapt to the development of technical requirements, and gradually to the intelligent, small-scale development, simultaneously, transfer data in convenient way is one of the key research in the field of data acquisition equipments. The USB technology, with its characteristics such as high speed, reliability and conveniently, has enjoyed a rapid development ever since its birth. With the birth of USB host/slave interface chip, the application of USB technology is more and more extensive.A portable colorimeter instrument is designed, it bases on double-mode USB technology. The system combines the USB host/slave technology and photoelectric colorimeter and it implements real-time transmission of data. And it also could finish the test by the control of the computer.System’s hardware was constituted by MCU, Light Source Circuit, Pre-amplifier circuit, time systems, keyboard and display circuit, power supply circuit, USB interface circuit and so on.The system uses C8051020F device as its MCU. The C8051F020 family utilizes Silicon Labs’ proprietary CIP-51 microcontroller core. The CIP-51 employs a pipelined architecture that greatly increases its instruction through over the standard 8051 architecture. In a standard 8051, all instructions except for MUL and DIV take 12 or 24 system clock cycles to execute with a maximum system clock of 12-to-24 MHz. By contrast, the CIP-51 core executes 70% of its instructions in one or two system clock cycles, with only four instructions taking more than four system clock cycles.The system uses light-emitting diodes as light source and uses the TPS76030 as power supply, which provides a stable voltage. The system control the light-emitting diodes by the MCU.Pre-amplifier circuit uses the way of variable Gain, its magnification is adjustable. It is composed of an analog multiplexer CD4051 and operational amplifiers ICL7650, which uses advanced CMOS process for high-accuracy, low drift and high input impedance integrated self-zero, it also uses the principle of dynamic zero clear imbalance inherent in CMOS devices and drift, it is an ideal amplifier in terms of data acquisition system. The light irradiates the photodiode and it generates photocurrent, ignored the input offset current, all of the light current flow through resistance, resulting in the output voltage, the output access to the microprocessor’s A/D pin.The C8051F020 has an on-chip 12-bit SAR ADC (ADC0) with a 9-channel input multiplexer and programmable gain amplifier. With a maximum throughput of 100 kbps, the ADC offers true 12-bit accuracy. The internal voltage reference circuit consists of a 1.2 V, 15 ppm/°C (typical) bandgap voltage reference generator and a gain-of-two output buffer amplifier. So using the internal voltage requires that the input current must be lower than 2.4V.Display system chosen LCD module YM12864R,which is produced by Shenzhen Yaoyu Technology Co. Ltd. YM12864R’s characters are dot-matrix graphic LCD module, which can display characters and graphics. It contains 8129 Chinese characters (16 * 16 lattice), 128 characters , 64 * 256 dot-matrix display RAM and LED backlight configuration.A 4*4 matrix keyboard is used. The system Achieves human-computer interaction function by setting the function keys and number keys.In order to confirm and record the time, the system uses a real-time clock chip SD2300A, the chip has same features, it has a built-in crystal oscillator and I2C bus interface, the error was under 2.5 minutes in one year.System power used in two ways, when the equipment works in the host mode, we could use an external 9V power, when it works in slave mode, we could use USB interface power. The system use TPS73HD301 as the voltage converter chip, which could transform power from 5V to 3.3 V.To achieve real-time data transmission functions, we designed a USB interface and used CH375 as the USB interface chip. CH375 is a common USB bus interface chip, which support USB-HOST/USB-DEVICE/SLAVE. Software system includes some parts, we have designed software about data acquisition, and also designed the firmware when system worked in the mode of host/slave. The appropriate software which run in the computer is designed in the system . When the system works in the host mode, it could read and write U disk, you can use U disk as an intermediary to transmit data. When the system works in the slave mode, it can connect to computer through the USB interface, the computer can control the equipment by the appropriate software. When the equipment worked in host mode, it could read or write U disk. You can use U disk as an intermediary to transmit data. When the equipment worked in slave mode, you can Connect the equipment to PC through the USB interface. In this condition, you can control the equipment,which can upload and download data.In the system, USB interface technology is introduced into the photoelectric colorimeter. This design implements a breakthrough,so that the application of photoelectric colorimeter is more flexible. The equipment can work at the laboratory where has computer, it also can work under the conditions of the site survey without computer. And the data transmission is easy and fast.

Table of contents

Summary 4-7 Chapter 1 Introduction 7-11 1.1 Background 7-8 1.2 portable photoelectric colorimeter Research 8-9 1.3 thesis research 9 1.4 paper structure 9-11 principle and structure of Chapter 2 portable photoelectric colorimeter 11-17 2.1 absorption spectrophotometric analysis method 11-12 2.1.1 absorbance and transmittance 11-12 2.1.2 Lambert-Beer's law 12 2.2 color reaction 12-13 2.3 degree analysis of qualitative and quantitative analysis methods suction bare 13-15 2.3.1 suction ray qualitative analysis in the Analysis of 13-14 2.3.2 suction bare the Analysis of the quantitative analysis method 14-15 2.4 portable photoelectric colorimeter structure 15-17 Chapter 3 USB interface technology 17-35 3.1 USB Review 17 USB 3.2 Features and Benefits 17-19 3.3 USB system resources 19-24 3.3.1 topology USB structure 19-20 3.3.2 complete USB system software and hardware components 20-22 3.3.3 USB mechanical properties and electrical characteristics 22-24 3.4 USB host system 24-32 3.4.1 computer platforms on the USB host system 25-30 3.4.2 Embedded USB Host 30-32 3.5 USB slave interface 32-35 Chapter 4 dual-mode USB interface portable colorimeter hardware circuit design 35-61 4.1 overall system design 35 4.2 CPU core module 35-39 4.2.1 CPU module selection 35-36 4.2.2 C8051F020 microcontroller characteristics 36-38 4.2.3 C8051F020 pin configuration 38-39 4.3 light circuit design 39-40 4.4 preamp circuits and analog-digital conversion circuit 40-44 4.4.1 preamplifier is selection 40-41 4.4.2 Operational Amplifier ICL7650 41-42 4.4.3 preamplifier circuit design 42-43 4.4.4 photoelectric signal analog-digital conversion 43-44 4.5 data memory and real-time clock system 44-48 4.5.1 Data storage circuit 44-46 4.5.2 real-time clock system 46-48 4.6 LCD module design 48-49 4.7 system power circuit design 49-51 4.7.1 Power chip selection and 49-50 4.7.2 Power circuit design 50-51 4.8 USB master and slave interface circuit design 51-58 4.8.1 USB interface module selection 51-52 4.8.2 CH375 chip Overview 52-57 4.8.3 SCM CH375 circuit design 57-58 4.9 printed circuit board design 58-61 Chapter 5 System Software Design 61-75 5.1 host mode software design 61-63 5.2 firmware design mode 63-67 5.2.1 mode SCM transmission 63-66 5.2.2 mode interrupt service routine 66-67 5.3 PC-side USB driver and application program interface 67-71 5.3.1 PC-side USB driver 67-69 5.3.2 application interface design 69-71 5.4 LCD driver programming 71-75 5.4.1 YM12864R interface timing 71-73 5.4.2 YM12864R instruction description 73-75 Chapter 6 colorimeter test experiments and error analysis 75-79 6.1 sample solution testing and analysis 75 6.2 experimental conclusions and errors 75-79 Chapter 7 Summary and outlook 79-80 7.1 System Design Summary 79 7.2 Prospects 79-80 References 80-83 thank 83-84 studying for Master of published papers during the 84-85 Summary 85-87 ABSTRACT 87-89

Related dissertations

  1. The Test-equipment with U Disk Storage Function for Mechanical Parameters Acquisition System
    SongZuo ·University of North ·2012 ·Master's thesis
  2. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  3. Usb Without Invasive Data Collection Technology Research
  4. Hardware Design for Circuit Fault Diagnosis System Based on JTAG Interface
  5. Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
  6. Grating Data Acquisition and Error Correction Technology
    DongShanShan ·Hefei University of Technology ·2014 ·Master's thesis
  7. CCD Data Acquisition System Implementation Based on FPGA
    LiuYu ·Anhui University ·2014 ·Master's thesis
  8. Research of Data Acquistion System Based on FPGA
    XuLongFei ·University of North ·2014 ·Master's thesis
  9. Research and design of intelligent 3D pulse peak field strength tester
  10. Multi functional comprehensive test instrument based on Virtual Instrument Technology
  11. Embedded Fingerprint Identification System and Storage Technology
  12. Research on the Digital Broadband Electromagnetic Tomography System
    ChenGuang ·Tianjin University ·2010 ·Doctoral dissertation
  13. VxWorks Migration on VME Bus Embedded Controler
    GuanFei ·Harbin Institute of Technology ·2012 ·Master's thesis
  14. Embedded Linux-based USB Encryption Driver Design
  15. Research and Implementation of Usbtmc Specification about Universal Test Instrument
  16. Research Communication Device and Communication Protocols Based on USB Interface
    YuXiaoLei ·Harbin Institute of Technology ·2012 ·Master's thesis
  17. Research and Implementation of Infrared Touch Screen Based on HID Class
    WangYun ·Anhui University ·2014 ·Master's thesis
  18. The Designand Realization of Embedded USB Mass Storage System
    WangMeng ·Hebei University of Technology ·2013 ·Master's thesis
  19. Design and development of laser gyro and USB interface frequency test system
  20. Analysis and Application of USB3.0High-Speed Signal Integrity