This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Doubt in ISR

Dear All

One doubt i got. may be innocent.

for say iam using Timer.
in the Timer iam putting one task

what will happen if the Timer overflows before the task finished.

for first overflow and
for subsequent overflows.

post or kindly refer any material

Thanks in advance

Parents
  • for say iam using Timer.
    in the Timer iam putting one task

    is this RTOS stuff or is 'task' just your 'name' for some code?

    what will happen if the Timer overflows before the task finished.for first overflow and for subsequent overflows.
    assuming you have auto-referesh, the ISR will finish, one instruction in main will be executed and the ISR will be entered again. (if it overflows twice while in the ISR you still only get one reentry)

    post or kindly refer any material
    the interrupt mecahanism is described in excruciating detail in "the bible"

    Erik

    here are the links to "the bible"
    Chapter 1 - 80C51 Family Architecture:
    www.nxp.com/.../80C51_FAM_ARCH_1.pdf

    Chapter 2 - 80C51 Family Programmer’s Guide and Instruction Set:
    www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf

    Chapter 3 - 80C51 Family Hardware Description:
    www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf

Reply
  • for say iam using Timer.
    in the Timer iam putting one task

    is this RTOS stuff or is 'task' just your 'name' for some code?

    what will happen if the Timer overflows before the task finished.for first overflow and for subsequent overflows.
    assuming you have auto-referesh, the ISR will finish, one instruction in main will be executed and the ISR will be entered again. (if it overflows twice while in the ISR you still only get one reentry)

    post or kindly refer any material
    the interrupt mecahanism is described in excruciating detail in "the bible"

    Erik

    here are the links to "the bible"
    Chapter 1 - 80C51 Family Architecture:
    www.nxp.com/.../80C51_FAM_ARCH_1.pdf

    Chapter 2 - 80C51 Family Programmer’s Guide and Instruction Set:
    www.nxp.com/.../80C51_FAM_PROG_GUIDE_1.pdf

    Chapter 3 - 80C51 Family Hardware Description:
    www.nxp.com/.../80C51_FAM_HARDWARE_1.pdf

Children