timing equation


Results 1 to 7 of 7

Thread: timing equation

Threaded View

  1. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    It would help to get rid of the pause 10. With your timer0 interrupt happening every 1mS
    you can miss up to 10 interrupt counts. Using BASIC interrupts your pause command will
    have to complete before it jumps to your interrupt handler.

    What speed crystal are you using?

    Edit: If you're using GPIO.5 as the LED output, then I suspect you're uisng the internal osc.
    DEFINE OSC 3 is going to throw timing off since the internal osc freq is 4MHz.

    DEFINE OSC 4
    DEFINE OSCCAL_1K 1

    Would help get your timing a lot closer.
    Last edited by Bruce; - 21st November 2008 at 15:59. Reason: Internal osc
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. 12F683 serout timing
    By Hobie Cat in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st December 2009, 16:57
  2. 18F2550 timing
    By sstt1976 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 22nd August 2008, 00:30
  3. Timing inaccuracy - any ideas?
    By Optech in forum General
    Replies: 6
    Last Post: - 7th February 2008, 09:37
  4. Questions on timing
    By malc-c in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2006, 22:38
  5. HSEROUT buffering and timing - 16F88
    By picster in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 5th March 2006, 17:52

Members who have read this thread : 0

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

Tags for this Thread

Posting Permissions

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