Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/28/06 21:01
Read: times


 
#119289 - re
Responding to: ???'s previous message
> You have a lot of ...#0 at the start, it is far easier just to clear the entire RAM

How do I do that? I can see how to do it with a loop. Is there a better way?

As for comments, I try to reduce the need for them by making the variable names self-documenting. I know that opinions differ.

The problem is that even though I know TR0 is being set in pc_clk_isr, t0_isr is not being entered. I can't see how that can be unless I'm doing something horrible like using the wrong vector, not enabling the interrupt, or somehow turning off TR0 by accidentally writing into the SFRs.

My mental checklist is that ET0 is on. The timer 0 interrupt vector is correct. It ljmps to the ISR. The ISR turns off TR0 and turns it back on. EA is on. TMOD is set for timer 0 to be an 8 bit auto reloader. TH0 is set to something reasonable. I just can't understand how it's possible that t0_isr is not being entered. In revisions past, I even cleared TF0, thinking maybe that was necessary.

List of 25 messages in thread
TopicAuthorDate
timer0 problem            01/01/70 00:00      
   LEDs and the eye            01/01/70 00:00      
      I never turn it off            01/01/70 00:00      
         use simulator            01/01/70 00:00      
      what's in IE            01/01/70 00:00      
         IE            01/01/70 00:00      
            with reti, not ret?            01/01/70 00:00      
               yes, reti. I know why ret would screw up            01/01/70 00:00      
                  time to show the formatted and commented            01/01/70 00:00      
                     I will work on cutting it down            01/01/70 00:00      
                        easy            01/01/70 00:00      
   Timer O ISR            01/01/70 00:00      
      addition            01/01/70 00:00      
      that's good thinking            01/01/70 00:00      
         enough guesses            01/01/70 00:00      
            some code            01/01/70 00:00      
               comments which you do not have            01/01/70 00:00      
                  re            01/01/70 00:00      
                     there is no such thing            01/01/70 00:00      
                        re            01/01/70 00:00      
                           EDT            01/01/70 00:00      
               if you want get help...            01/01/70 00:00      
                  he can't do that            01/01/70 00:00      
                     ???splitting            01/01/70 00:00      
                        if you look at me, you will know :)            01/01/70 00:00      

Back to Subject List