10/26/2008 8:57 AM | |
Joined: 5/28/2008 Last visit: 6/6/2023 Posts: 4448 Rating:
|
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 (3853 Downloads) |
Ayman Elotaify |
|
This contribution was helpful to
6 thankful Users |
10/30/2008 11:53 AM | |
Posts: 2348 Rating:
|
Absolutely. Interrupt frequency and execution time both affect OB1 cycle time. |
Follow us on