Precision Pulse


Closed Thread
Results 1 to 4 of 4

Thread: Precision Pulse

Hybrid View

  1. #1
    matth's Avatar
    matth Guest

    Default Precision Pulse

    I need a precision pulse generator. I want a PIC to generate a precision low output exactly once a second. The active low pulse needs to be about 120 microseconds long and must occur exactly once a second. Well pretty darn close to exactly. Is this possible with Picbasic?

    Which PIC has a built in high stabillity oscillator by the way to keep component count down?

    Also, later I may input an external GPS pulse into the PIC to keep it more accurate. How hard would that be?

    Matt

  2. #2
    Join Date
    May 2004
    Location
    New England
    Posts
    164


    Did you find this post helpful? Yes | No

    Default

    Hi Matt,
    I don't think any built-in osc is going to get anywhere near 'precise'. You'll need to use an external crystal. (unless there are some new pics out...)

    Arch

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,648


    Did you find this post helpful? Yes | No

    Wink

    Hi, matt

    Precision ... ok. but this doesn't mean nothing !!!

    How much !!!!

    Alain

  4. #4
    Join Date
    Dec 2003
    Location
    Wichita KS
    Posts
    511


    Did you find this post helpful? Yes | No

    Default

    Hello Matth,

    M>>I want a PIC to generate a precision low output exactly once a second. The active low pulse needs to be about 120 microseconds long and must occur exactly once a second.<<

    Assuming the low pulse is 5 volts.

    TRISB=%00000000
    Loop:
    Portb.0=1
    pauseUS 120
    Portb.0=0
    pauseUS 880
    goto Loop

    Get a accurate scope and measure it... if it needs to be adjusted, adjust the pause that you want.

    Dwayne
    Ability to Fly:
    Hurling yourself towards the ground, and missing.

    Engineers that Contribute to flying:
    Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute

    Pilots that are Flying:
    Those who know their limitations, and respect the green side of the grass...

Similar Threads

  1. 2 Beam Optical Pulse Generator
    By WOZZY-2010 in forum Schematics
    Replies: 8
    Last Post: - 6th April 2010, 04:03
  2. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 01:59
  3. Single digit 7 Seg LED clock - PIC16F88
    By thirsty in forum Code Examples
    Replies: 4
    Last Post: - 17th July 2009, 08:42
  4. Replies: 3
    Last Post: - 13th September 2008, 17:40
  5. Pulse Frequency Multiplication
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st August 2005, 10:39

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts