View previous topic :: View next topic |
Author |
Message |
JP
Joined: 14 Feb 2004 Posts: 8 Location: Belgium
|
Time needed to return from an interrupt ??? |
Posted: Fri Mar 18, 2005 9:35 am |
|
|
Hi to all,
I have a little question about the interrupt mechanism in CCS :
can - you tell me approximately the typical time needed by CCS to return from an interrupt routine ( for ex: a PIC 16F684 with internal oscillator at 8 MHz ).
Thank you !
Jean - Pierre |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Fri Mar 18, 2005 10:04 am |
|
|
The 16 chips take slightly less time than the 18 chips. The return comprised the jump from the handler routine, then the operation of restoring the saved registers, and then finally the actual return. Typically perhaps 22 instructions on the 16 chips, and about 34 instructions on the 18 chips. At 8MHz, the 16 will then take about 11uSec to leave the handler routine.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
JP
Joined: 14 Feb 2004 Posts: 8 Location: Belgium
|
Time needed to return from an interrupt ??? |
Posted: Fri Mar 18, 2005 12:21 pm |
|
|
Hello Ttelmah,
Thank you infinitely for this informations !
Best regards,
Jean - Pierre
![Very Happy](images/smiles/icon_biggrin.gif) |
|
![](templates/subSilver/images/spacer.gif) |
|