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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/17/07 08:50
Read: times


 
#141953 - Timer 2 is missing!
Responding to: ???'s previous message
Did you ever come across a µController on which every part of
your program works fine, except the Timer2-ISR?

I wanted to measure distance with a US-sensor and show the
result on a LCD. Everything worked fine when I triggered the
US-sensor by a simple press of a button. Next, I tried to
use Timer 2 interrupt for continuos triggering every 50 to
60 ms. At first I thought of a mistake in initializing Timer 2:
Some mysterious bit would not be set properly. I wrote little
test routines, but to no avail.

Tomorrow morning I took another 89S52 from an existing project:
And Timer 2 gives an interrupt! Then I tested every feature on
the first chip - ISP, ports, timers, external interupts, all
of them is o.k., except Timer 2.

Maybe Atmel has sold me a '51 chip in a '52 case ? ;-)
But I suppose there is no such thing as a 89S51.

Thank You Erik for Your interest in my problem.

Greetings from old Germany

Jack Braun








List of 16 messages in thread
TopicAuthorDate
AutoReload Timer2            01/01/70 00:00      
   Missing interrupt handler software            01/01/70 00:00      
      AutoReload Timer2            01/01/70 00:00      
   which deerivative?            01/01/70 00:00      
      AT89S52            01/01/70 00:00      
         as a quick hardware test...            01/01/70 00:00      
   Your program is OK. Look for hardware problem            01/01/70 00:00      
      Sorry, I didn't look in the thread before posting            01/01/70 00:00      
   Timer 2 is missing!            01/01/70 00:00      
      Maybe you're right...            01/01/70 00:00      
         Well, then the die must be wrong            01/01/70 00:00      
            maybe ...            01/01/70 00:00      
               Yes, all ports tested and o.k.            01/01/70 00:00      
                  stick another chop on and see            01/01/70 00:00      
                     Another chop/chip?            01/01/70 00:00      
                        ah, OK            01/01/70 00:00      

Back to Subject List