Hi,
I am programming an ATMEL AT9058535 chip and am having trouble with the external interrupt. My interrupt code is in a library (in assembler) and is vectored correctly (Address 0x02 bytes). When I set the I Bit in the SREG (using SEI) and then pump the SREG over the serial port I don't see that bit being set. Also when I trgger the interrupt externally, the bit in the GIFR is not set. I have set bit 6 of the GIMSK register, so I believe the interrupt is enabled (apart from the SREG problem), and pin 2 of Port D is set as an input. Is there something obvious I am missing?
Bye
I am programming an ATMEL AT9058535 chip and am having trouble with the external interrupt. My interrupt code is in a library (in assembler) and is vectored correctly (Address 0x02 bytes). When I set the I Bit in the SREG (using SEI) and then pump the SREG over the serial port I don't see that bit being set. Also when I trgger the interrupt externally, the bit in the GIFR is not set. I have set bit 6 of the GIMSK register, so I believe the interrupt is enabled (apart from the SREG problem), and pin 2 of Port D is set as an input. Is there something obvious I am missing?
Bye