Connect with us

Programmable square wave oscillator possible with a PIC??

Discussion in 'Electronic Basics' started by royalmp2001, Jul 5, 2005.

Scroll to continue with content
  1. royalmp2001

    royalmp2001 Guest

    I need to design a programmable square wave oscillator
    (fixed/variable/sweeping frequencies upto about 35KHz) with
    programmable timed on/off intervals...for instance so many minutes on,
    then so many minutes off, then on again, etc.

    I know nothing about PIC programming, but I have a PIC programming
    board that connects to my pc, and if I know that it is possible to do
    this with a PIC, I will get a book on PIC programming.
    Thanks
    royalmp2001
     

  2. Lots of info about PICs on the net and what you want to make can be done
    relatively easily once you've had some exercise in PIC programming. One of
    the places I often point to for a starters is:
    http://www.voti.nl/swp/n_index.html
    But there is much, much more on the net.

    petrus bitbyter
     
  3. KenHopkins

    KenHopkins Guest

    There are several ways to do this. You can simply set an output port
    high, then low again with a variable delay in between. You could use
    the hardware timers to the same effect. You can also feed internal
    oscillator to output pins. There are many options depending on which
    micro you are using and what frequency it is running at. Try the Apps
    notes at http://www.microchip.com


    Ken
    www.claymore-electronic.co.uk
     
  4. Bob Monsen

    Bob Monsen Guest

    The PIC12F683 has a PWM generator. That would be the right choice, I
    think. Then, the software only has to program the generator, based on
    whatever controls you use.

    I bet there is an appnote at microchip that spells it all out in large
    letters.

    --
    Regards,
    Bob Monsen

    If a little knowledge is dangerous, where is the man who has
    so much as to be out of danger?
    Thomas Henry Huxley, 1877
     
  5. Rich Webb

    Rich Webb Guest

    This page http://www.myplace.nu/avr/minidds/ has links to the schematics
    and the assembler source for an easy to build signal generator based
    around an Atmel AVR AT90S2313 (a very early AVR chip).

    As written, it does not sweep or do programmable intervals but it is
    written to be controlled by a PC over an RS-232 link (executable
    provided). You could build on the basic design to make it natively
    programmable or you may be able to put the controlling smarts on the PC
    side.

    I breadboarded it up a few years ago and it does work as advertised.
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-