Hello guys, can I monitor interrupt0 of 8051 by any h/w means like by LED or something? I have connected RTC DS12887 IRQ to INT0 however I couldn't see logic 1 on DMM
More from datasheet (generally everybody may know):-
The IRQ pin is an active low output of the DS12887 which can be used as an interrupt input to a processor. The IRQ output remains low as long as the status bit causing the IRQ is present and corresponding interrupt enable bit is present.To clear the IRQ pin processor program generally reads the C register
So does it mean I need to exclusively read C register even if I serve the IRQ interrupt
I don't need what you mean by "exclusively read".
The chip can generate three different interrupts.
How can you "service" an interrupt, unless you read the status register to check which interrupt source (or sources) that generated the interrupt?
How do you expect the chip will know that you have "serviced" the interrupt if you have a one-way communication, i.e. you only let the interrupt line trig your ISR, but you do not perform any action to report back to the Dallas chip that it may deactivate the interrupt line?
Ya Westermark without connecting dallas chip 89c51 int0 pin is high but as soon as I connect IRQ of DS12887 to INT0 of at89c51 the signal goes down (low level) so what does it mean?
Ok so I'll try putting XBYTE[0x0C] in my interrupt routine.
but I thought after servicing IRQ it would be ok no to read 0x0C
Even this routine doesn't trig ISR
Your interrupt service routine (running on the 8051) needs to read the C register of the RTC chip. How to do this is described in the datasheet of the RTC.
Thanks guys for your valuable support - The project is working fine Just needed to do was read the register C of RTC on the occurrence of interrupt