Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/25/05 04:23
Read: times


 
#90393 - Yes and no
Responding to: ???'s previous message
Alberto Geraci said:
No...Craig, page 10 of datasheet said that A1IE and A2IE are disabled (logic 0) when power is first aplied.


You are right. Still doesn't help me, though, since it still sets A1F and A2F regardless.

In my opinion, that is the problem, or your "error"....... why not to determine if the alarm has ocurred, reading the INTA/INTB output/s, I think, that the DS1337 was designed to disable the alarms by this way, unless you want to determine if an alarm has ocurred while your system was in "power off"...but this has no sense at all, so I insist...am I understanding your point ? or you're trying to do some incorrect use of chip.


That's exactly my case. My MCU will be in idle mode and the RTC interrupt will wake it up when an alarm occurs. I will then read the status register to determine which alarm woke up the system and proceed accordingly. If an alarm is triggered when I actually want to have alarms disabled, the unit will wake up unnecessarily and, more importantly, I'll have to code for the fact that I have "phantom" alarms. It'd be easier if I could just disable them.

Again, I seem to be able to accomplish this by setting the "Alarm 1 Date" register to 0x39 which is an impossible date. I just wish there were a cleaner way to accomplish what I need to accomplish without setting the alarm to an invalid value.

Regards,
Craig Steiner


List of 9 messages in thread
TopicAuthorDate
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      

Back to Subject List