Hello guys!
I'm having problems with pin-change interrupts. I can't make them work any of the ways I've tried so far.
I'm using avrisp2 with avdurde with no apparent errors (read, writes and verifies ok), onto linux and with gcc as the toolchain.
Perhaps it is because I'm too new to this, but the following phrase confused me a lot within the specs:
"The External Interrupts are triggered by the INT0 and INT1 pins or any of the PCINT23..0 pins."
From the point of view that I don't know whether I should even enable external interrupts (or it's config) registers if willing to use just the pin-change ones, or if I ougth to say ISR (INT0_vec) or ISR (PCINT0_vec); tried with both anyways, among may other things.
This is the code I'm using:
It is commented. I pasted there the command-line I'm using, and there's an #ifdef region with code that works.
About the hardware, all vcc/avcc/vss are connected, have a led on PORTC5, and an omrom switch on PORTB1, which by default let the current flow till it's pressed.
And that's all, I'd really appreciate if someone could tell me something about.
Many thanks.