Docstoc

PIC-based Function Generator

Document Sample
PIC-based Function Generator Powered By Docstoc
					PIC-based Function Generator
         Mike Tremaine
          Rick Coogle
                     The GUI
   Functions
    – Adjust waveform properties (Frequency,
        Amplitude, DC offset, and Phase)
    –   Can print, listen to, and save waveform
    –   Ability to reconnect USB I2C interface
    –   Preview the waveform
    –   Send the output directly to I2C DAC or through
        parallel loading DAC08
       PIC and DAC layout
 PIC connected on
  breadboard with 10
  segment LED device
  and 3 LED’s for
  monitoring output
 Connections:
  PIC->DAC->OPAMP
 Vref= 10V
 PIC voltage = 5V
    High Level Schematic

D                  I2C               USB
A                    2                4
C      PIC18F452         EZ USB
                                              PC
0
8



L
M
7      Output                              Win32 MFC
4                            Input         Application
1
                Problems…
 Timing, Timing, Timing
 Inaccuracy of DAC
 Programming of PIC18F452
 C Library and Compiler Issues
    – Compiler Inefficiency
    – Sin()
   “Weird Errors”
                                           Old Timeline
                                 11/6/02      11/15/02    11/25/02   12/1/02   12/6/02

Waveform Generation (PIC Code)

USB Interface Code / Win32 GUI

I2C Interface

Final Paper

Web Page
                                           New Timeline
                                 11/6/02      11/15/02    11/25/02   12/1/02   12/9/02

USB/I2C Timing Issues

Waveform Generation (PIC Code)

USB Interface Code / Win32 GUI

I2C Interface

Final Paper

Web Page

FRUSTRATION!!!!
Questions?

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:231
posted:10/14/2011
language:English
pages:8