If you try to simulate the following code for the 14M, you will receive a syntax error for the SetInt Off command line. I am not sure why that error is coming in, and have also tried setting an interrupt prior to turning it off in the code, and that changes nothing. In fact, the code can be made as simple as possible (see further below), and the same problem occurs.
Testing:
SetInt OFF
Gosub Test1
SetInt %00000100,%00000100
Goto Testing
Test1:
Pause 1000
Return
Interrupt:
Return
_________________________________
Problem also occurs for simplest instance of code:
SetInt %00000000,%00000001
SetInt Off
Interrupt:
Return
________________________
I have tried changing the masked bits and their/or their values, but that has no effect. I also tried configuring the simulator for an 08M, taking consideration when setting and masking, of which pins could actually be examined for interrupts, and got the same result.
I notice when using the Quick Syntax checker within the Help feature of the simulator, the SETINT command is listed within the commands, but not shown to apply to the 14M. The SETINT command is not the problem when simulating, though; it is the SETINT off command.
If this issue can be resolved, I have an additional question. The Picaxe manuals stipulate that interrupts can only occur for inputs 0-2 on the 14M. If these pins are first converted in code to portC inputs (3-5), can they then still be used as interrupt pins?
Thanks in advance for any help, Odessa.
Testing:
SetInt OFF
Gosub Test1
SetInt %00000100,%00000100
Goto Testing
Test1:
Pause 1000
Return
Interrupt:
Return
_________________________________
Problem also occurs for simplest instance of code:
SetInt %00000000,%00000001
SetInt Off
Interrupt:
Return
________________________
I have tried changing the masked bits and their/or their values, but that has no effect. I also tried configuring the simulator for an 08M, taking consideration when setting and masking, of which pins could actually be examined for interrupts, and got the same result.
I notice when using the Quick Syntax checker within the Help feature of the simulator, the SETINT command is listed within the commands, but not shown to apply to the 14M. The SETINT command is not the problem when simulating, though; it is the SETINT off command.
If this issue can be resolved, I have an additional question. The Picaxe manuals stipulate that interrupts can only occur for inputs 0-2 on the 14M. If these pins are first converted in code to portC inputs (3-5), can they then still be used as interrupt pins?
Thanks in advance for any help, Odessa.
Last edited: