southafrikanse
Junior Member level 1
- Joined
- Jun 12, 2007
- Messages
- 15
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Amora, Portugal
- Activity points
- 1,418
Hello all
I'm using a the AT89S8253 microcontroller to work as a Real Time Clock with alarm.
So far so good I've managed to program the clock.
I'm using the two external interruptions of my microcontroller (INT0 and INT1), INT0 is controlled by a switch which works as SET_TIME (in the attachment with the variable "Horas") while INT1 is my SET_ALARM (in the attachment with the variable "Alarme").
I compiled it with Keil and when I went to test if the 2 interruptions were working only INT0 was working. Can you help me find the problem why INT1 can't work?
I asked my friends what should I do but they had the same problem in their project.
I'm using C language. Any questions please ask. I need this solution as soon as possible and I can only use interruptions.
Best regards.
My code is in the attachment.
I'm using a the AT89S8253 microcontroller to work as a Real Time Clock with alarm.
So far so good I've managed to program the clock.
I'm using the two external interruptions of my microcontroller (INT0 and INT1), INT0 is controlled by a switch which works as SET_TIME (in the attachment with the variable "Horas") while INT1 is my SET_ALARM (in the attachment with the variable "Alarme").
I compiled it with Keil and when I went to test if the 2 interruptions were working only INT0 was working. Can you help me find the problem why INT1 can't work?
I asked my friends what should I do but they had the same problem in their project.
I'm using C language. Any questions please ask. I need this solution as soon as possible and I can only use interruptions.
Best regards.
My code is in the attachment.