Epson S1C17624 Technical Manual page 84

Cmos 16-bit single chip microcontroller
Table of Contents

Advertisement

8 Real-TiMe ClOCK (RTC)
RTC interrupt Status Register (RTC_inTSTaT)
Register name address
Bit
RTC interrupt
0x5140
D7–1 –
Status Register
(8 bits)
D0
(RTC_inTSTaT)
Init.: ( ) indicates the value set after a software reset (RTCRST → 1 → 0) is performed.
D[7:1]
Reserved
D0
RTCiRQ: interrupt Status Bit
This bit indicates whether a cause of RTC interrupt occurred as follows:
1 (R):
Cause of interrupt occurred
0 (R):
No cause of interrupt occurred (software reset value)
1 (W):
Resets this bit to 0
0 (W):
Has no effect
This bit is set at cyclic interrupt intervals set up by RTCT[2:0]/RTC_INTMODE register. When RTC
interrupts have been enabled by RTCIEN/RTC_INTMODE register at this time, an interrupt request is
sent to the ITC.
note: Writing 1 to this status bit clears it. Because this bit is not cleared in hardware, be sure to clear
it in software after an interrupt is generated. If this bit remains set while interrupts are re-en-
abled or control is returned from the interrupt handler routine by the reti instruction, the same
interrupt may be generated again. Moreover, the value of this bit is indeterminate after power-
on, and is not initialized to 0 by initial reset. To prevent the occurrence of unwanted RTC inter-
rupts, be sure to reset this bit in software after power-on and initial reset.
RTC interrupt Mode Register (RTC_inTMODe)
Register name address
Bit
RTC interrupt
0x5141
D7–5 –
Mode Register
(8 bits)
D4–2 RTCT[2:0]
(RTC_inTMODe)
D1
D0
Init.: ( ) indicates the value set after a software reset (RTCRST → 1 → 0) is performed.
D[7:5]
Reserved
D[4:2]
RTCT[2:0]: RTC interrupt Cycle Setup Bits
These bits select the RTC interrupt cycle.
RTCIRQ/RTC_INTSTAT register is set by a count-up pulse of the interrupt cycle counter selected.
When RTC interrupts are enabled by RTCIEN, an interrupt request is sent to the ITC.
RTCT[2:0] should be set while RTC interrupts are disabled. (These bits may also be set simultaneously
when RTC interrupts are enabled.)
8-10
name
Function
reserved
RTCiRQ
Interrupt status
name
Function
reserved
RTC interrupt cycle setup
RTCiMD
RTC interrupt mode select
RTCien
RTC interrupt enable
Table 8.
5.2 Interrupt Cycle Settings
RTCT[2:0]
0x7
0x6
0x5
0x4
0x3
0x2
0x1
0x0
(Default: indeterminate, software reset: 0x1)
Seiko epson Corporation
Setting
init. R/W
1 Occurred
0 Not occurred X (0) R/W Reset by writing 1.
Setting
init. R/W
RTCT[2:0]
Cycle
X
(0x1)
0x7
reserved
0x6
1/128 second
0x5
1/256 second
0x4
1/512 second
0x3
1 hour
0x2
1 minute
0x1
1 second
0x0
1/64 second
1 Level sense 0 Edge trigger X (1) R/W
1 Enable
0 Disable
X (0) R/W
interrupt cycle
Reserved
1/128 second
1/256 second
1/512 second
1 hour
1 minute
1 second
1/64 second
S1C17624/604/622/602/621 TeChniCal Manual
Remarks
0 when being read.
Remarks
0 when being read.
R/W

Advertisement

Table of Contents
loading

This manual is also suitable for:

S1c17604S1c17622S1c17602S1c17621

Table of Contents