Designing and Implementing a Boundary Scan Tester with USB Interface

Author
WeiYongBan
Advisor
GaoFuQiang
School
Chongqing University
Major
Pattern Recognition and Intelligent Systems
Classification
TP274.4 Centralized testing and roving detection system
Degree
Master's thesis
Year
2003
Downloads
286
Citations
4

Request the full text

Abstract

Currently, the digital system is composed of a large amount of highly fine packeted ICs, such as PGAs, BGAs, SMTs, and MCMs. It could lead to the narrower space between the connections on the PCB and the closer distance between the test points, and it could even make some test points inaccessible. So, the traditional test methods based on probes or nails beds are no longer available. As a design for test technology, the boundary-scan test fixes a special element called boundary-scan cell (BSC) between the device input pins and the core logic inputs, or between the core logic outputs and the device output pins. Thus, the BSC acts as the virtual test probe that carries out the test stimulus, and captures the test respondences. So, when the digital system is completely made up of the boundary- scan devices, the testability of the system would be improved greatly and test problem we are confronted with would be settled easily.For this purpose, we should employ the new test instrument fit for boundary-scan test. So, I developed a boundary-scan tester with the USB interface in this dissertation. Users can set the test instructions or test vectors by the tester software. Then the tester applies the test instructions or test vectors to the circuit under test (CUT). Last, the tester receives the test respondence from the CUT and sends back to the tester software running on the PC.The design can be divided into the following parts:① Hardware design for the boundary-scan tester.② Firmware design for the boundary-scan tester.③ USB driver design for the boundary-scan tester.④ Application software design for the boundary-scan tester.The design result indicates that the whole test system works smoothly. Benefitted from the USB interface, the tester has the following advanced characteristics:① Ability for PnP.② Bus powered characteristics.③ Completely external attachment to the PC, without fear of the EMI, the unreliable physical attachment to the PC, and the unpredictable crash of the PC for overheating.

Table of contents

Chinese abstract 4-5 English summary 5-9 1 Introduction 9-13 1.1 topics sources and significance 9-10 1.2 boundary scan test system development at home and abroad 10-11 1.3 the main task of the subject and innovation 11-13 <br / > 2 boundary scan tester overall design 13-20 2.1 hardware solutions 13-17 2.1.1 microcontroller interface design and boundary scan test bus 13-14 2.1.2 boundary scan Tester and interface design nbsp PC 's ; 14 2.2.3 MCU resource allocation 14-17 < br /> 2.2 firmware program 17-18 2.3 software program 18-20 2.3.1 application 18 <br / > 2.3.2 driver 18-20 3 USB bus technology 20-50 3.1 USB bus topology 20-21 <br / > 3.2 USB communication model 21-22 3.2.1 host 21 3.2.2 equipment 21-22 3.2.3 pipeline 22 3.3 USB protocol 22-31 3.3.1 transfer (Transfer) 22-23 <br / > 3.3.2 transaction (Transaction) 23 3.3.3 package (Packet) 23-24 3.3.4 USB frame (USB Frame) 24-25 3.3.5 USB for five kinds of transmission 25-31 3.4 USB descriptors (Descriptor) 31-34 < br /> 3.4.1 device Descriptor (Device Descriptor) 32 3.4.2 configuration descriptor (Configuration Descriptor) 32 3.4.3 interface descriptor (Interface Descriptor) 32-33 3.4.4 endpoint descriptor (Endpoint Descriptor) 33 3.4.5 string descriptor (String Descriptor) 33-34 3.5 USB standard device requests 34 3.6 USB device enumeration process 34-36 3. 7 boundary scan tester USB interface design 36-40 3.7.1 D12 chip introduced 36-39 3.7.2 SCM and D12 interface design 39-40 3.8 USB Interface firmware design 40-50 3.8.1 microcontroller D12 allocate resources 40-41 3 .8.2 USB descriptors design 41-43 3.8.3 USB interface subroutine design 43 3.8.4 SCM reader endpoint D12 firmware design 43-45 3.8.5 D12 initialization 45-46 3.8.6 D12 interrupt service routine 46-50 4 USB driver 50-64 4.1 WDM driver 51-59 4.1.1 WDM kernel mode driver object 52-56 < br /> 4.1.2 WDM driver initialization routine 56-57 4.1.3 WDM driver Dispatch routines 57-59 4.2 USB driver Design 59-63 4.2.1 function driver calls USBD 60-62 4.2.2 boundary scan Tester USB driver Design 62-63 4.3 drivers installed 63-64 5 boundary-scan test technology 64-81 5.1 IEEE Std 1149. an architecture 64-72 5.1.1 boundary Scan test unit 65-66 5.1.2 ByPass register 66-67 5.1.3 ID register 67 5.1.4 instruction register 67 5.1.5 multiplexer 67 < br /> 5.1.6 TAP 67-69 5.1.7 boundary Scan Test instruction Set configuration 69-72 5.2 boundary scan test bus way 72-73 5.3 IEEE Std 1149.1 in tests 73-75 5.3.1 IC functional test 73 -74 5.3.2 board-level interconnect test 74 5.3.3 Cluster test 74-75 5.4 boundary Scan Test master control chip 75-76 5.5 boundary-scan test hardware design 76 5.6 boundary-scan test firmware design 76-81 5 .6.1 microcontroller and PC communication problems of 77-79 5.6.2 boundary scan Tester workflow 79-81 6 software design 81-87 6.1 software important data structure 81-83 6.1.1 USBclass class 81-82 6.1.2 global Variables 82-83 6.1.3 event object 83 6.2 applications and WDM driver communication 83-84 6. 3 interface thread 84 6.4 worker thread 84-87 7 Conclusion 87-88 Thanks 88-89 References 89-91 Appendix a: boundary scan tester hardware schematics 91-92 Appendix B: the authors of papers published during the master's degree directory 92

Related dissertations

  1. The Analysis and Research of Boundary Scan Test Technology
  2. The Design and Realization of Digital Voice Network Meeting System Based on Special Network
  3. Designing and Implementing a Boundary Scan Controller with USB2.0
    ChenYunFei ·Wuhan University of Technology ·2007 ·Master's thesis
  4. Design and Implementation of Four Channels High Speed Synchronous Sampling in Sound Source Localization System
    ZhengZuo ·Hebei University of Technology ·2013 ·Master's thesis
  5. Usb Without Invasive Data Collection Technology Research
  6. Hardware Design for Circuit Fault Diagnosis System Based on JTAG Interface
  7. Study on FPGA Research and Implementation of Multi-Channel Image Acquistion System
  8. Grating Data Acquisition and Error Correction Technology
    DongShanShan ·Hefei University of Technology ·2014 ·Master's thesis
  9. CCD Data Acquisition System Implementation Based on FPGA
    LiuYu ·Anhui University ·2014 ·Master's thesis
  10. Research of Data Acquistion System Based on FPGA
    XuLongFei ·University of North ·2014 ·Master's thesis
  11. Study on Robot Controller Based on Heterogeneous Multi-core PAC
    QianWanTao ·Chang'an University ·2013 ·Master's thesis
  12. Research and design of intelligent 3D pulse peak field strength tester
  13. Multi functional comprehensive test instrument based on Virtual Instrument Technology
  14. Embedded Fingerprint Identification System and Storage Technology
  15. Research on the Digital Broadband Electromagnetic Tomography System
    ChenGuang ·Tianjin University ·2010 ·Doctoral dissertation
  16. Study on Industrialrobot Real-time Controlsoftware with Windows-based
    YangJing ·Harbin Institute of Technology ·2012 ·Master's thesis
  17. VxWorks Migration on VME Bus Embedded Controler
    GuanFei ·Harbin Institute of Technology ·2012 ·Master's thesis
  18. Embedded Linux-based USB Encryption Driver Design
  19. Research and Implementation of Usbtmc Specification about Universal Test Instrument
  20. Research Communication Device and Communication Protocols Based on USB Interface
    YuXiaoLei ·Harbin Institute of Technology ·2012 ·Master's thesis