My RTC is running on interrupt in IM1 and uses the INT0 input. I have a question: Can I read from a register on which int input the interrupt came from? How is that register called?
Greetings,
Nick
Hi Nick,That design has a great range of features. Very nice.Are you going to put it in a case like your other systems?
Sorry, I don't have an answer to the interrupt question.
My RTC is running on interrupt in IM1 and uses the INT0 input. I have a question: Can I read from a register on which int input the interrupt came from? How is that register called?
Since this is a Z180-based system, why not use IM2? Connect the RTC to either INT1 or INT2 and you will get a dedicated interrupt vector.
Hi Alan,I don't understand you, I think.IM2 uses the internal I and IL register to determine the vector address. You can only use INT1 and INT2.My RTC is hardwired to INT0. So I can use the I and IL register also in IM1?I read the manual of the Z8S180 and understood that IM2 works for INT1 and INT2 with the I and IL register, INT0 reads the databus for its lowbyte vector.So what do you mean, Alan?