??? 12/09/05 07:09 Modified: 12/09/05 07:10 Read: times |
#104948 - useless Responding to: ???'s previous message |
hi,
Giaminac Duratia Riawan said:
Is it possible to generate interrupt every 1 us using timer 2? It is useless due you have no time to process ISR. What is the minimum time that can be generated by timer 2? Do you mean time intervals? You should calculate it from: + interrupt response timing; + ISR time itself. Read Atmel`s 8051 Microcontrollers Hardware Manual where at page 112 you may find how interrupts are handled. Sasha Jevtic said:
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. If be pedant, only 12MHz (reload value 0xFFFF) and 24MHz (0xFFFE). Well, in short: it is possible to setup the timer for such frequency. Nevertheless due interrupt latency and the fact that TF2 is not cleared by hardware there is no way to determine and process the interrupt at such frequency. Regards, Oleg |
Topic | Author | Date |
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 |