pmsmith711
Newbie level 3
- Joined
- Mar 6, 2012
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Southern Cal
- Activity points
- 1,326
I've been working with a new pickit2 using HiTech C and the 44 pin MicroChip demo board (pic 16f887). I've been able to to write short code segments to detect the 'button push' using the INTE interrupt, also I've had success with the Timer0 (TOIE) interrupt, and the A/D converter is working for me. I hit the wall when I attempted to use the ISR. From what I've read all I need to do is build a subroutine in the form "void interrupt <name> (void) {}" and when a flag for an enabled interrupt is set (i.e., INTE is enabled and INTF is triggered), program control should jump to the ISR. Of course the Global (GIE) has to be enabled as well. I can verify that my interrupts are enabled, I can watch the interrupt occur (and the associated flag get set), but I never make the jump to the ISR.
I imagine that this is a common question, yet I haven't found another posting. So here I am. I have a feeling that I'm just doing something globally stupid, but I just don't see it.
Can anyone suggest a setting or configuration parameter that I'm missing? Or perhaps a troubleshooting suggestion?
Thanks in advance.
I imagine that this is a common question, yet I haven't found another posting. So here I am. I have a feeling that I'm just doing something globally stupid, but I just don't see it.
Can anyone suggest a setting or configuration parameter that I'm missing? Or perhaps a troubleshooting suggestion?
Thanks in advance.