TMR0 stops working


Results 1 to 26 of 26

Threaded View

  1. #20
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Question

    Thanks DT.
    That is one really neat breadboard.
    Did you notice the hourly on screen animation?


    Just after the two LOOKUP statements there is a tricky piece of code that used to blink the colon:-
    ;if bres_hi<8 then
    ; Segments.7=0
    ;else
    ;Segments.7=1
    ;endif

    It is there in the code posted in #1.
    The code in post #18 has this part commented. Hence no blinking colon.
    But after 4 days of testing with this code (#18) everything seems to be fine.
    Could the blinking colon code have caused the problem?
    To blink the colon, i used to check a critical time keeping variable (bres_hi) of the 24 bit counter. I think if bres_hi was being read when an interrupt occured and the ISR tried to update the register, it got corrupted. Can this happen?
    Last edited by shahidali55; - 19th June 2008 at 18:46.

Similar Threads

  1. COUNT is not counting again
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 33
    Last Post: - 19th June 2009, 04:52
  2. TMR0 interrupt and HSERIN
    By boban in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2008, 11:48
  3. help: TMR0 interrupts disabling PORTAchange interrupts???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th August 2008, 15:10
  4. using TMR0 as a counter..
    By sirvo in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th July 2007, 02:56
  5. Strange behaviour from PIC16F877 on TMR0
    By mikebar in forum mel PIC BASIC Pro
    Replies: 18
    Last Post: - 19th August 2006, 01: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