??? 07/24/06 10:08 Read: times |
#120917 - Back to basic Responding to: ???'s previous message |
Since you are writing the code in C, you are most probably overlooking the basic working of the microcontroller. "When an interrupt occurs your main program execution is put on hold and the program branches off to the interrupt vector location. The ISR is executed and then the main program execution is resumed". The steps involved in doing this (Pushing the PC and loading it with Interrupt vector location; Branching off to the ISR location, Pusing acc, PSW etc; execuiting the ISR, Popping acc., PSW etc; reloading PC...) take some time. If you have an interrupt occuring very frequently, the time eaten up by these 'hidden' steps become significant. |
Topic | Author | Date |
problem in timer with a least count of 1 millisec | 01/01/70 00:00 | |
Code as shown should work methinks | 01/01/70 00:00 | |
clarifications | 01/01/70 00:00 | |
atomicity | 01/01/70 00:00 | |
atomicity problem? | 01/01/70 00:00 | |
about atomicity | 01/01/70 00:00 | |
Back to basic | 01/01/70 00:00 | |
reply to vishal sinha | 01/01/70 00:00 | |
bible time | 01/01/70 00:00 | |
Hm ... | 01/01/70 00:00 | |
reply to Christoph Franck | 01/01/70 00:00 | |
totally imprecse | 01/01/70 00:00 | |
What is the size of the variables? | 01/01/70 00:00 | |
not enough info | 01/01/70 00:00 | |
other details about code | 01/01/70 00:00 | |
here you go again | 01/01/70 00:00 | |
yet questions more![]() | 01/01/70 00:00 |