PDA

View Full Version : Instant interrupts not working



mel4853
- 23rd January 2010, 00:56
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

mel4853
- 23rd January 2010, 03:21
Forgot to say using a 12F683.

Bruce
- 23rd January 2010, 17:49
How can you tell if it's actually working? All your routines are setting/clearing the same
pins as your interrupt handler!

mel4853
- 23rd January 2010, 19:17
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.

Bruce
- 23rd January 2010, 20:44
Glad you got it working, but which registers needed to be set?

mel4853
- 24th January 2010, 05:43
This is new file that works. Added option_reg.6=0,intcon.7=1 and ioc.2=1.