??? 03/24/05 21:32 Read: times |
#90375 - Disabling DS1337 alarm Responding to: ???'s previous message |
Alberto Geraci said:
I cant understand ...why ???? you want to disable alarms but you wont to disable A2IE/A1IE in the status register..... I can disable the A1IE/A2IE register. But that doesn't solve my problem. Even with those bits disabled, the A1F/A2F bits will be set and will indicate an alarm I'm not interested in. which is your problem, if in the status register, the bits, A1F and A2F, are in "1" ...just only write "0" to these if you wont...no alarms at all. Or never read it's. Sure, I can clear them. But that doesn't solve my problem. My application needs to read the status register to determine if an alarm has occurred so I don't want them being set unless an alarm has occurred. If alarms are disabled, I don't want those flags being set. Sure, I can add my own code that keeps track of whether or not an alarm is expected and ignore them when an unexpected alarm is flagged--but it seems to me I should be able to disable alarms in the DS1337 so that I need not add that extra code to my firmware. I think that datasheet is refering to "disable an alarm" just deactivating A2IE/A1IE bits. Cant found anymore reading it. That deactivates the output on the INTA and/or INTB pins, but it doesn't prevent the A1F/A2F flags from being set within the RTC's status register. Why to set alarms time...if you wont to use it in some cases ?? Because I set the alarm when I need it. When I don't need it, I need to disable it. Initial state (after power on) will never activate A1F/A2F bits. If I remember correctly, the initial state of the RTC registers is undefined. Regards, Craig Steiner |
Topic | Author | Date |
Disabling DS1337 alarm | 01/01/70 00:00 | |
DS1337 alarms | 01/01/70 00:00 | |
Disabling DS1337 alarm | 01/01/70 00:00 | |
Disabling the alarms | 01/01/70 00:00 | |
Disabling DS1337 alarm | 01/01/70 00:00 | |
Yes and no![]() | 01/01/70 00:00 | |
Stopping Alarms | 01/01/70 00:00 | |
Forget that | 01/01/70 00:00 | |
Yes it is confusing | 01/01/70 00:00 |