10/26/2008 8:57 AM | |
Joined: 5/28/2008 Last visit: 10/29/2024 Posts: 4516 Rating: (839) |
Dear RAWAT, A very good question. Normally when the CPU is in Run mode, OB1 is executing periodically. If an interrupt happen ( cyclic, time of day, hardware or error interrupt), The processor stop executing OB1at a break point, and starts to execute the interrupt and after finishing it will execute the OB1 from the breakoint. Here's attached a nice *.pdf file which explain in details what happen. If an interrupt happen and during this interrupt, another interrupt with a higher priority happen, then first,the processor will stop executing OB1 at a break point 1, and execute interrupt, Now another interrupt happen before finishing the first interrupt, the processor will stop executing the interrupt and goes the the second one ( with the higher priority) and after finishing, it will complete the first interrupt and after finishing it will complete executing OB1. Here's attached the pdf file AttachmentPRO1_12e_OBs [Compatibility Mode].pdf (4515 Downloads) |
Ayman Elotaify |
|
This contribution was helpful to8 thankful Users |
10/30/2008 11:53 AM | |
Posts: 2348 Rating: (264) |
Absolutely. Interrupt frequency and execution time both affect OB1 cycle time. |
Follow us on