Thanks Richard for the answer. I understand. In more complex cases, this could cause problems.
In my case, it works, but it is not correct to combine it like this.
So in PBP use only On Interrupt statement or DT Interrupts. Or only ASM interrupts.
Alternatively, a system variable can be set up, e.g.:
and use it from PBP and ASM?Code:Test VAR BIT SYSTEM
If I want to set the Test in PBP
If I want to set the Test in ASMCode:Test = 1 or @ bsf Test
and use the variable from both PBP and ASM. Or it's not possible that way either.Code:bsf Test
Bookmarks