PIC16F877A - Timer0 won't interrupt


Closed Thread
Results 1 to 20 of 20

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Delft, the Netherlands
    Posts
    10


    Did you find this post helpful? Yes | No

    Default Working code

    For those who want to make a Stopwatch, here is my code for it. You will have to tune Timer0 for exact readouts since it is not perfect yet. By 30 seconds it will be 1,5 seconds off (28,5 sec)

    It counts from 100 uS

    Have fun building your stopwatch

    Thanks to all who helped me to make the code as it is now!


    Cheers,

    William

    P.S, I'll keep you all informed about the 3-stopwatch-at-the-same-time-based-on-interrupts-program
    Attached Files Attached Files
    ------------
    Oh Noes...
    ------------

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by WishMaster^ View Post
    For those who want to make a Stopwatch, here is my code for it. You will have to tune Timer0 for exact readouts since it is not perfect yet. By 30 seconds it will be 1,5 seconds off (28,5 sec)
    It counts from 100 uS
    Have fun building your stopwatch
    Thanks to all who helped me to make the code as it is now!
    Cheers,
    William
    P.S, I'll keep you all informed about the 3-stopwatch-at-the-same-time-based-on-interrupts-program
    I almost hate to point this out to you since you've already got all this work into your project/code...but...
    Do a search on 'Olympic Timer'...
    You'll find a timer that Melanie did awhile back, and it's very accurate...well, at least as accuracte as your oscillator is.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Right! There's ...

    And now there's...
    Now all we need is ...
    DT

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    Right! There's ...
    Now all we need is ...
    Jack of all trades, master of none. I know you've seen me say it before, I'm not doing anything that somebody else has already done...
    Maybe someday I'll come up with something really neat and revolutionary to post...but I haven't come up with anything just yet...(that FFT routine adaptation I've got posted on my webpage for the PIC18Fxxxx is under an NDA, otherwise it would be here in a second).

  5. #5
    Join Date
    Apr 2007
    Location
    Delft, the Netherlands
    Posts
    10


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    I almost hate to point this out to you since you've already got all this work into your project/code...but...
    Do a search on 'Olympic Timer'...
    You'll find a timer that Melanie did awhile back, and it's very accurate...well, at least as accuracte as your oscillator is.
    Yeah, I saw that one... But I learned much more about assembly and stuff with my own code then by simple copy/paste.

    And if I finish the main project, the 3-timers-thing, then I will share the happiness too. Might be handy to clock the top3 formula 1 cars when you are at a race or something :P

    Here it will be used for viscositymeasurements (http://en.wikipedia.org/wiki/Viscosity), where we can start a measurement at any time we want and not one per time (time = money and stuff ).

    And, most important reason of all, making your own code is so much more fun, seeing it grow and on the end, see it work!


    Cheers,

    William
    ------------
    Oh Noes...
    ------------

Similar Threads

  1. Can't ID interrupt source with this IntHandler??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 3rd June 2009, 02:35
  2. Sleep Mode
    By Pesticida in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th March 2008, 10:31
  3. Ping Darrel Taylor - Timer0 Instant Interrupt
    By JEC in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th January 2007, 11:20
  4. USART interrupt in PIC16F877A
    By amindzo in forum General
    Replies: 7
    Last Post: - 26th August 2006, 18:51
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

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