Everything works except interrupts. What am I doing wrong? Maybe should kick back and have a few suds, this will make me so much smarter. Ha Ha.
Mike
Everything works except interrupts. What am I doing wrong? Maybe should kick back and have a few suds, this will make me so much smarter. Ha Ha.
Mike
How can you tell if it's actually working? All your routines are setting/clearing the same
pins as your interrupt handler!
The handler only needs to pull in a relay as long as gpio.2 is low. Anyhow it works just fine now. Reread datasheet over and over and missed a couple registers that needed set.
Glad you got it working, but which registers needed to be set?
This is new file that works. Added option_reg.6=0,intcon.7=1 and ioc.2=1.
Bookmarks