timer0 10ms setting check


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1


    Did you find this post helpful? Yes | No

    Default Re: timer0 10ms setting check

    ....takes a couple of hundred instructions....
    To save context?

    George

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,621


    Did you find this post helpful? Yes | No

    Default Re: timer0 10ms setting check

    Yes, when you're using DT-Ints with an PBP-type ISR it has to save all the system variables when entering the ISR (and restore them on exit). The exact amount of time that takes can probably be different depending on device, if you're using LONGs, what PBP commands are being used in the program and so on. I've measured it a couple of times and the notes I can find at the moment says that the latency is around 20us on an 18F4431 running at 40MHz with a program compiled using LONGs.

    20us at 40MHz is 160 instructions.

    /Henrik.

Similar Threads

  1. HPWM ....use Timer0?
    By HankMcSpank in forum General
    Replies: 2
    Last Post: - 18th June 2011, 10:18
  2. Help with Comparator and Timer0
    By dbachman in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th February 2009, 21:19
  3. I2C post write/read 10ms pause mandatory?
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 18th May 2008, 19:06
  4. Replies: 4
    Last Post: - 18th May 2008, 19:00
  5. Performing a loop every 10ms
    By wasssup1990 in forum mel PIC BASIC Pro
    Replies: 40
    Last Post: - 15th February 2008, 11:31

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