Blame | Last modification | View Log | Download | RSS feed
ifndef __ez80rtcinc__ez80rtcinc equ 1__defrtc macro NUM,BaseRTC_SEC port 0e0h ; RTC Seconds Register (r/w)RTC_MIN port 0e1h ; RTC Minutes Register (r/w)RTC_HRS port 0e2h ; RTC Hours Register (r/w)RTC_DOW port 0e3h ; RTC Day-of-the-Week Register (r/w)RTC_DOM port 0e4h ; RTC Day-of-the-Month Register (r/w)RTC_MON port 0e5h ; RTC Month Register (r/w)RTC_YR port 0e6h ; RTC Year Register (r/w)RTC_CEN port 0e7h ; RTC Century Register (r/w)RTC_ASEC port 0e8h ; RTC Alarm Seconds Register (r/w)RTC_AMIN port 0e9h ; RTC Alarm Minutes Register (r/w)RTC_AHRS port 0eah ; RTC Alarm Hours Register (r/w)RTC_ADOW port 0ebh ; RTC Alarm Day-of-the-Week Register (r/w)RTC_ACTRL port 0ech ; RTC Alarm Control Register (r/w)ADOW_EN equ 1 << 3 ; Enable day-of-the-week alarmAHRS_EN equ 1 << 2 ; Enable hours alarmAMIN_EN equ 1 << 1 ; Enable minutes alarmASEC_EN equ 1 << 0 ; Enable seconds alarmRTC_CTRL port 0edh ; RTC Control Register (r/w)ALARM equ 1 << 7 ; Alarm interrupt is activeINT_EN equ 1 << 6 ; Interrupt on alarm condition is enabledBCD_EN equ 1 << 5 ; RTC count and alarm value registers are BCDCLK_SEL equ 1 << 4 ; RTC clock source is power-line frequency inputFREQ_SEL equ 1 << 3 ; Power-line frequency is 50 HzSLP_WAKE equ 1 << 1 ; RTC Alarm generated a sleep-mode recovery resetRTC_UNLOCK equ 1 << 0 ; Unlock RTC count registersendm ; __defrtcendif ; __ez80rtcinc