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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
12/09/05 04:41
Read: times


 
#104946 - A lot of interrupts
Responding to: ???'s previous message
Giaminac Duratia Riawan said:
Hi,

Is it possible to generate interrupt every 1 us using timer 2? What is the minimum time that can be generated by timer 2?

Thank you.

This will definitely be clock frequency dependent (note maximum frequency of 33 MHz). If I am reading the data sheet correctly, I suspect that you could easily get the type of behavior you are looking for using auto-reload mode at clock frequencies at or above 12 MHz. The shortest time between interrupts would then result when the reload value is 0xFFFF, thus causing overflow every machine cycle (clock/12). Thus, if you were using the maximum allowed oscillator frequency, you could be getting timer interrupts about every 3.6 x 10-7 seconds. But, what would you do with all those interrupts? You wouldn't have time to process them if you got one every machine cycle.

--Sasha Jevtic

List of 14 messages in thread
TopicAuthorDate
Timer 2 interrupt of AT89S52            01/01/70 00:00      
   A lot of interrupts            01/01/70 00:00      
      useless            01/01/70 00:00      
         it's not interrupt, actually            01/01/70 00:00      
            post your program here            01/01/70 00:00      
               here is the program            01/01/70 00:00      
                  t2mod=2;            01/01/70 00:00      
                     still the same            01/01/70 00:00      
                        I asked almost same question but!            01/01/70 00:00      
                           I also generate PWM            01/01/70 00:00      
                              the point is            01/01/70 00:00      
                                 the point is I just made it            01/01/70 00:00      
                        retry            01/01/70 00:00      
                           Thanks a lot JW            01/01/70 00:00      

Back to Subject List