Interrupts on a ATMEL AT9058535

Status
Not open for further replies.

Lloydy

New Member
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
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…