Cannot Disable an Enabled “Interrupt on pin change”
Posted: Wed Aug 07, 2019 4:57 pm
Hi Guys
Have programmed a MAIN loop which flashes a LED at 500ms intervals and a MACRO second loop that flashes the same LED at 100ms
The MAIN loop has a switch connected to a Interrupt on change pin (12F629 pin A0)
At power up the MAIN 500ms loop runs as it should,
When the switch is operated the program instantaneously jumps to the fast LED 100ms flashing BUT try as I might I cannot get back to the slow 500ms loop when the switch is then turned off, have tried putting a Disable interrupt under the Enable
interrupt etc. etc. but no joy
Any help appreciated
Stylo.
Have programmed a MAIN loop which flashes a LED at 500ms intervals and a MACRO second loop that flashes the same LED at 100ms
The MAIN loop has a switch connected to a Interrupt on change pin (12F629 pin A0)
At power up the MAIN 500ms loop runs as it should,
When the switch is operated the program instantaneously jumps to the fast LED 100ms flashing BUT try as I might I cannot get back to the slow 500ms loop when the switch is then turned off, have tried putting a Disable interrupt under the Enable
interrupt etc. etc. but no joy
Any help appreciated
Stylo.