--- In l..., "rtstofer" wrote: >
> --- In l..., "timo_kuisma" wrote:
> >
> > Hi,
> >
> > I try to use RTC alarm every 5 sec.
> > And now i ask yuo that why i cant get RTC alarm.
> > I have RTC backup battery and i use 32MHz external oscillator.
>
> If you are really using 32 MHz, it is far too fast. The spec is for
> 32.768 kHz
>
> Richard
>
--- In l..., "timo_kuisma" wrote: >
> Hi,
>
> I try to use RTC alarm every 5 sec.
> And now i ask yuo that why i cant get RTC alarm.
> I have RTC backup battery and i use 32MHz external oscillator.
If you are really using 32 MHz, it is far too fast. The spec is for
32.768 kHz
Richard
Reply by timo_kuisma●June 10, 20072007-06-10
Hi,
I try to use RTC alarm every 5 sec.
And now i ask yuo that why i cant get RTC alarm.
I have RTC backup battery and i use 32MHz external oscillator.
RTC.H is next:
#ifndef __RTC_H
#define __RTC_H
typedef struct {
DWORD RTC_Sec; /* Second value - [0,59] */
DWORD RTC_Min; /* Minute value - [0,59] */
DWORD RTC_Hour; /* Hour value - [0,23] */
DWORD RTC_Mday; /* Day of the month value - [1,31] */
DWORD RTC_Mon; /* Month value - [1,12] */
DWORD RTC_Year; /* Year value - [0,4095] */
DWORD RTC_Wday; /* Day of week value - [0,6] */
DWORD RTC_Yday; /* Day of year value - [1,365] */
} RTCTime;
#define AMRSEC 0x00000001 /* Alarm mask for Seconds */
#define AMRMIN 0x00000002 /* Alarm mask for Minutes */
#define AMRHOUR 0x00000004 /* Alarm mask for Hours */
#define AMRDOM 0x00000008 /* Alarm mask for Day of Month */
#define AMRDOW 0x00000010 /* Alarm mask for Day of Week */
#define AMRDOY 0x00000020 /* Alarm mask for Day of Year */
#define AMRMON 0x00000040 /* Alarm mask for Month */
#define AMRYEAR 0x00000080 /* Alarm mask for Year */