Contents Page

Acknowledgements

Executive Summary

Notation

1. Project Background

2. Design Specifications

3. Fundamentals

        3.1. The Basic CRT Oscilloscope
        3.2. Digital Sampling Oscilloscopes
        3.3. Display Formats
        3.4. Aliasing
            3.4.1. Typical Low-Pass Filter Design Parameters
            3.4.2. Typical Low-Pass Filter
            3.4.3. Software Generation of an Anti-Aliasing Filter
        3.5. The PIC Microcontroller
        3.6. RS232 Serial Interface

4. The PIC16F877 Microcontroller

        4.0. Architecture of the PIC16F877 microcontroller
        4.1. Overview of the File Registers

        4.2. Overview of the 8-channel 10-bit ADC
        4.3. Overview of the Hardware USART
            4.3.1 Baud-Rate Generator, BRG

5. Hardware Development

    5.1. Simplified Block Diagram
    5.2. Digital Circuit Diagram
    5.3. Analogue Circuit Diagram - Mark 1
    5.4. Analogue Circuit Diagram - Mark 2
    5.5. System Powering Circuit
    6.6. Cost of Components

6. Communication Protocol Development

    6.1. Real-Time Mode
    6.2. Storage Mode
    6.3. Control Protocol
    6.4. Frame Structure: Real-Time Mode
    6.5. Sample Rate: Real-Time Mode
    6.6. Frame Structure: Storage Mode
    6.7. Sample Rate: Storage Mode
    6.8. CRC16 (Cyclical Redundancy Check) used in Storage Mode
        6.8.1. Comparison of Raw Calculation CRC & Lookup Table CRC
    6.9. Frame Structure: Control Protocol

7. The Scope Program

    7.1. Data Flow Diagram
        7.1.1. Data Flow Paths
    7.2 The Grid
    7.3 The Traces
    7.4. Storing and Restoring the Pervious Position of the Main Frame
    7.5. Setting-Up RS232 Communications
    7.6. Solving the Flickering Problem
    7.7. Creating the Split Window View

    7.8. Saving / Opening Scope Data
    7.9. Copying the Scope Display to the Windows Clipboard
    7.10. Exporting the Scope Display as a Bitmap (BMP) File
    7.11. Owner Drawn Menus with Bitmaps
        7.11.1. Integrating Brent Corkum's BCMenu Class with the Scope Program.
    7.12. Windows 95/98 Compatibility Problem (scope v1/008a, 20/12/2001)
    7.13. Windows XP Compatibility Problem (Scope v1.017a, 05/02/2002)
    7.14. Additional Video Card Features That May Explain Low CPU Usage.

8. The Simulator Program

9. Test Program   

    9.1. User Manual
    9.2. How is RS232 Communication Achieved?

10. PIC Software Development

   10.1. Mark 1.c (Test RS232 Communications)
    10.2. Mark 2.c (Fully TestRS232 Communications)
    10.3. Mark 3.c (Real-time Mode: 1 channel, fixed sampling delay)
    10.4. Mark 4.c (Test RS232, Baud-Rate Set by dip-switches)
    10.5. Mark 5.c (Fully testSR232 communications, adjustable baud-rate)
    10.6. Mark 6.c (Real-time mode: 1 channel, fixed delay, adjustable baud-rate)
    10.7. Mark 7.c (Test Timer Interrupts)
    10.8. Mark 8.c. (Real-time mode: dual channel, fixed delay, adjustable baud-rate)
    10.9. Mark 9.c (Real-time mode: four channels, chop, interrupt time-base)
    10.10. Mark 10.c (Test External RAM Chip)
    10.11. Mark 11.c (Main Program)

11. Test Results

    11.1. Test Session 1: FG Wilson Lab (26/02/2002)
        11.1.1. Test 1: Test RS232 Communications (TX Only)
        11.1.2. Test 2: Fully Test RS232 Communications
        11.1.3. Test 3: Test ADC
        11.1.4. Conclusion
    11.2. Test Session 2: FG Wilson Lab (05/03/2002)
        11.2.1. Test 4: Test RS232 Communications (Baud Rate Set by DIP Switches)
        11.2.2. Test 5: Fully Test RS232 Communications (Baud Rate Set by DIP Switches)
        11.2.3. Test 6: Test ADC, Scope Program and Real-time Communication Protocol
        11.2.4. Test 7: Test Timer Interrupts
        11.2.5. Conclusion
    11.3. Test Session 3: FG Wilson Lab (05/03/2002)
        11.3.1. Test 8: Dual Channel Test
        11.3.2. Test 9: Interrupt Driven Time-Base, Real-Time Sampling (Four Channels)
        11.3.3. Test 10: Test External RAM Chip
        11.3.4. Test 11: 5V Regulator
        11.3.5. Test 12: Analogue Circuitry
        11.3.6. Conclusion

12. Conclusions

13. Recommendations For Further Work

    13.1. Control Protocol
    13.2. Storage Mode
    13.3. Multiple Serial Ports
    13.4. USB Transport Medium
    13.5. Bootstrap
    13.6. Virtual Channels
    13.7. Data Logging
    13.8. TCP/IP Internet Communications
    13.9. Direct Modem to Modem Communication
    13.10. Printing of Scope Display
    13.11. An Alternative Method for Dealing with Aliasing
    13.12. Taking Advantage of Aliasing

14. Bibliography / References


 

You are visitor number

 

Since July 2002



Final Year Project
 


Downloads
 


Colin's Home Page
 


Home    About me    NRA    Hobbies / Interests   Guest Book    Contact Me    Links    Snooker   Amateur Radio    Site Map    Downloads


This Web Page was last updated on Saturday October 01, 2005


 

© 2003 Designed by Colin K McCord

This website is best viewed by Microsoft Internet Explorer 6.0 at a resolution of 1024 x 768