Home > other >  What a great god can help small white answer the single chip microcomputer
What a great god can help small white answer the single chip microcomputer

Time:11-28

Why high priority interrupt low priority after the low priority cannot continue without the program but directly jump back to the main program?

CodePudding user response:

Note the difference between the local and global variables, you interrupt the I use is global

CodePudding user response:

reference 1st floor dceacho response:
pay attention to the difference between local and global variables, you interrupt the I use is a global

What is the difference between

CodePudding user response:

The second interrupt changed the value of the I, when the second interrupt handling after the return to the first, I value has been changed (8) into that no longer satisfy the loop condition, so the first interrupt immediately end exits

CodePudding user response:

reference dceacho reply: 3/f
the second interrupt changed the value of the I, when the second interrupt handling after the return to the first, I value has been changed (8) into that no longer satisfy the loop condition, so the first interrupt immediately end exits

See thanks
  • Related