Toshiba TLCS-900/H1 Series Manual page 511

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:
Table of Contents

Advertisement

3.20.6
Explanation of the interrupt signal and alarm signal
The alarm function used by setting the PAGE1 register and outputting either of the
following three signals from
outputs a 1-shot pulse when the falling edge is detected. RTC is not initialized by RESET.
Therefore, when the clock or alarm function is used, clear interrupt request flag in INTC
(interrupt controller).
(1) When the alarm register and the clock correspond, output "0".
(2) 1Hz Output clock.
(3) 16Hz Output clock.
(1) When the alarm register and the clock correspond, output "0"
When PAGER<ENAALM>= "1", and the value of PAGE0 clock corresponds with
PAGE1 alarm register output "0" to
The methods for using the alarm are as follows:
Initialization of alarm is done by writing in "1" to RESTR<RSTALM>. All alarm
settings become Don't care. In this case, the alarm always corresponds with value of
the clock, and if PAGER<ENAALM> is "1", INTRTC interrupt request is generated.
Setting alarm min., alarm hour, alarm date and alarm day is done by writing data to
the relevant PAGE1 register.
When all setting contents correspond, RTC generates an INTRTC interrupt, if
PAGER<INTENA><ENAALM> is "1". However, contents which have not been set up
(don't care state) are always considered to correspond.
Contents which have already been set up, cannot be returned independently to the
Don't care state. In this case, the alarm must be initialized and alarm register reset.
The following is an example program for outputting an alarm from
noon (PM12:00) every day.
LD
LD
LD
LD
LD
LD
LD
( LD
When the CPU is operating at high frequency oscillation, it may take a maximum of
one clock at 32 kHz (about 30μs) for the time register setting to become valid. In the
above example, it is necessary to set 31μs of set up time between setting the time
register and enabling the alarm register.
Note: This set up time is unnecessary when you use only internal interruption.
pin by writing "1" to PAGER<PAGE>. INTRTC
ALARM
(PAGER), 09H
;
(RESTR), D0H
;
(DAYR), 01H
;
(DATER),01H
(HOURR), 12H
;
(MINR), 00H
;
;
(PAGER), 0CH
;
(PAGER), 8CH
;
92CF30-509
pin and generate INTRTC.
ALARM
Alarm disable, setting PAGE1
Alarm initialize
W0
1 day
Setting 12 o'clock
Setting 00 min
Set up time 31 μs (Note)
Alarm enable
Interrupt enable )
TMP92CF30
-pin at
ALARM
2009-06-12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tmp92cf30fg

Table of Contents