17.5 Alarm function
By writing "1" to RTCPAGER<PAGE>, the alarm function of the PAGE1 registers is enabled. One of the follow-
ing three signals is output to the ALARM pin.
1. "Low" pulse (when the alarm register corresponds with the clock)
2. Outputting Low-pulse (1 Hz, 2 Hz, 4 Hz, 8 Hz or 16 Hz)
In any cases shown above, the INTRTC outputs one cycle pulse of low-speed clock. It outputs the INTRTC inter-
rupt request simultaneously.
The INTRTC interrupt signal is falling edge triggered. Specify the falling edge as the active state in the CG Inter-
rupt Mode Control Register
17.5.1 "Low" pulse (when the alarm register corresponds with the clock)
"Low" pulse is output to the ALARM pin when the values of the PAGE0 clock register and the PAGE1
alarm register correspond. The INTRTC interrupt is generated and the alarm is triggered.
The alarm settings
Initialize the alarm with alarm prohibited. Write "1" to RTCRESTR<RSTALM>.
It makes the alarm setting to be 00 minute, 00 hour, 01 day and Sunday.
Setting alarm for min., hour, date and day is done by writing data to the relevant PAGE1 register.
Enable the alarm with the RTCPAGER <ENAALM> bit. Enable the interrupt with the RTCPAGER <INTE-
NA> bit.
The following is an example program for outputting an alarm from the ALARM pin at noon (12:00) on Mon-
day 5th.
7
6
5
4
3
2
1
0
RTCPAGER
←
0
0
0
0
1
0
0
1
Disables alarm,sets PAGE1
RTCRESTR
←
1
1
0
1
0
0
0
0
Initializes alarm
RTCDAYR
←
0
0
0
0
0
0
0
1
Monday
RTCDATER
←
0
0
0
0
0
1
0
1
5th day
RTCHOURR
←
0
0
0
1
0
0
1
0
Sets 12 o’clock
RTCMINR
←
0
0
0
0
0
0
0
0
Sets 00 min
RTCPAGER
←
0
0
0
0
1
1
0
0
Enables alarm
RTCPAGER
←
1
0
0
0
1
1
0
0
Enables interrupts
The above alarm works in synchronization with the low-speed clock. When the CPU is operating at high fre-
quency oscillation, a maximum of one clock delay at fs (about 30μs) may occur for the time register setting
to become valid.
TMPM3V6/M3V4
Page 413
2019-02-06
Содержание TMPM3V4
Страница 1: ...32 Bit RISC Microcontroller TX03 Series TMPM3V6 M3V4 ...
Страница 2: ... 2019 Toshiba Electronic Devices Storage Corporation ...
Страница 7: ...Revision History Date Revision Comment 2019 02 06 1 First Release ...
Страница 8: ......
Страница 22: ...xiv ...
Страница 52: ...TMPM3V6 M3V4 3 Processor Core 3 6 Exclusive access Page 30 2019 02 06 ...
Страница 148: ...TMPM3V6 M3V4 7 Exceptions 7 6 Exception Interrupt Related Registers Page 126 2019 02 06 ...
Страница 178: ...TMPM3V6 M3V4 9 Input Output port 9 2 Block Diagrams of Ports Page 156 2019 02 06 ...
Страница 206: ...TMPM3V6 M3V4 10 16 bit Timer Event Counters TMRB 10 7 Applications using the Capture Function Page 184 2019 02 06 ...
Страница 232: ...TMPM3V6 M3V4 11 Universal Asynchronous Receiver Transmitter Circuit UART 11 4 Operation Description Page 210 2019 02 06 ...
Страница 354: ...TMPM3V6 M3V4 14 Synchronous Serial Port SSP 14 6 Frame Format Page 332 2019 02 06 ...
Страница 419: ...TMPM3V6 M3V4 Page 397 2019 02 06 ...
Страница 420: ...TMPM3V6 M3V4 16 Analog Digital Converter ADC 16 6 Timing chart of AD conversion Page 398 2019 02 06 ...
Страница 462: ...TMPM3V6 M3V4 21 Watchdog Timer WDT 21 5 Control register Page 440 2019 02 06 ...
Страница 510: ...TMPM3V6 M3V4 22 Flash Memory Operation 22 4 Programming in the User Boot Mode Page 488 2019 02 06 ...
Страница 538: ...TMPM3V6 M3V4 25 Electrical Characteristics 25 7 Recommended Oscillation Circuit Page 516 2019 02 06 ...
Страница 541: ...26 3 TMPM3V4FWUG TMPM3V4FSUG Type LQFP64 P 1010 0 50E LPHQVLRQV TMPM3V6 M3V4 Page 519 2019 02 06 ...
Страница 544: ......