Final Year Project Report Finalized

  • View
    40

  • Download
    3

Embed Size (px)

Text of Final Year Project Report Finalized

USB BASED OSCILLOSCOPEA REPORT SUBMITTED TO

COMSATS INSTITUTE OF INFORMATION TECHNOLOGY

FOR THE DEGREE OF B.S COMPUTER ENGINEERING PROJECT ID: EE-11-029

June 2012

By Muhammad Junaid Khalid Muhammad Abbas Haider Asad Mehboob Awan Ammad Aslam

Electrical Engineering Department

Submission Form for Final-Year

F8PROJECT ID TITLE

PROJECT REPORTCIIT-WAH-EE-02-F8

EE-11-029USB Based Oscilloscope

NUMBER OF MEMBERS

O

04

SUPERVISOR NAME

Muhammad Kamran FaizREG. NO. EMAIL ADDRESS

MEMBER NAME

Muhammad Junaid Khalid Muhammad Abbas Haider Asad Mahboob Awan Ammad Aslam

Fa08-bs(ce)-191 Fa08-bs(ce)-155 Fa08-bs(ce)-126 Fa08-bs(ce)-167

junaidkhalid2995@gmail.com abbashaider89@gmail.coma asad.awan19@gmail.com ammadaslam2009@gmail.com

CHECKLIST:Number of pages attached with this form I/We have attached a complete Project Timeline YES / NO using the form CE-DP-35A I/We have enclosed the soft-copy of this document along-with the codes and scripts created by myself/ourselves My/Our supervisor has attested the attached document I/We confirm to state that this project is free from any type of plagiarism and misuse of copyrighted materialMEMBERS SIGNATURES

YES / NO YES / NO YES / NO

Supervisors Signature

DeclarationNo portion of the work referred to in the dissertation has been submitted in support of an application for another degree or qualification of this or any other university/institute or other institution of learning.

MEMBERS SIGNATURES

Table of Contents1 Introduction .......................................................................................................................................... 8 1.1 1.2 1.3 Motivations ................................................................................................................................... 8 Aims and objectives ...................................................................................................................... 8 About Oscilloscope ....................................................................................................................... 8 Oscilloscope Display .............................................................................................................. 8 Analyzing ............................................................................................................................... 8 Dual Channels ....................................................................................................................... 9 Reset Function ...................................................................................................................... 9

1.3.1 1.3.2 1.3.3 1.3.4 1.4 2

Description of Milestone............................................................................................................... 9

Background ......................................................................................................................................... 10 2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9 2.10 2.11 Signal .......................................................................................................................................... 10 Hand-drawn oscillograms ........................................................................................................... 10 Automatically paper-drawn oscillograph .................................................................................... 11 Photographic oscillograph .......................................................................................................... 11 Cathode ray tube ........................................................................................................................ 11 Digital Oscilloscope ..................................................................................................................... 11 Literature review......................................................................................................................... 12 Overview of USB ......................................................................................................................... 13 Layer ............................................................................................................................................ 13 Frames......................................................................................................................................... 14 Modes of data transmission ....................................................................................................... 14 Isochronous ......................................................................................................................... 14 Bulk...................................................................................................................................... 14 Structure of Bulk Transfer ................................................................................................... 14 Bulk Transfer Ends in Two Ways ......................................................................................... 15 Data Size in Bulk Transfers .................................................................................................. 15 Speed of Transfers .............................................................................................................. 15 Detecting and Handling errors ............................................................................................ 15 Interrupt .............................................................................................................................. 15

2.11.1 2.11.2 2.11.3 2.11.4 2.11.5 2.11.6 2.11.7 2.11.8

5 2.11.9 2.12 2.13 Control ................................................................................................................................ 15

Enumeration ............................................................................................................................... 15 Universal Asynchronous Receiver/Transmitter .......................................................................... 16 Synchronous Communication Mode .................................................................................. 16 Asynchronous Communication Mode................................................................................ 16

2.13.1 2.13.2 2.14 3

How fast Data can send .............................................................................................................. 16

Design Specification and Platform Selection ...................................................................................... 18 3.1 Design overviews ........................................................................................................................ 18 USB Communicate With PC................................................................................................. 18

3.1.1 3.2

Design Specifications .................................................................................................................. 19 Inputs .................................................................................................................................. 19 PC Software ......................................................................................................................... 19 Mechanical Construction .................................................................................................... 19

3.2.1 3.2.2 3.2.3 3.3

Platform Selection....................................................................................................................... 19 Microcontroller Specifications ............................................................................................ 19

3.3.1 3.4 4

Software platform ....................................................................................................................... 20

Implementation and Testing ............................................................................................................... 21 4.1 4.2 4.3 Analysis of Electronic circuit for signal Acquisition..................................................................... 21 Microcontroller interfacing ......................................................................................................... 22 Development of window application .......................................................................................... 23 Opening Serial port ............................................................................................................. 24 Timeouts in Serial Communication ..................................................................................... 24

4.3.1 4.3.2 5 6 7

Results ................................................................................................................................................. 27 Observation......................................................................................................................................... 29 Conclusion and Future Work .............................................................................................................. 30 7.1 7.2 Conclusion ................................................................................................................................... 30 Future work ................................................................................................................................. 30

8

Appendix A: Schematic Diagrams ....................................................................................................... 31

References .............................................................................