TMPM382FSFG Toshiba, TMPM382FSFG Datasheet - Page 516

no-image

TMPM382FSFG

Manufacturer Part Number
TMPM382FSFG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMPM382FSFG

Product Summaries
Summary
Lead Free
Yes
Rohs Compatible Product(s)
Available
Rom (kbytes)
64K
Rom Type
Flash
Ram (kbytes)
8K
Number Of Pins
64
Package
QFP(14x14)
Vcc
5V
Cpu Mhz
40
Ssp (ch) Spi
1
I2c/sio (ch)
1
Uart/sio (ch)
3
Usb
-
Can
-
Ethernet
-
External Bus Interface
N
Cs/wait Controller (ch)
-
Dma Controller
2
10-bit Da Converter
-
10-bit Ad Converter
-
12-bit Ad Converter
10
16-bit Timer / Counter
6
Motor / Igbt Control
Y
Real Time Clock
1
Watchdog Timer
Y
Osc Freq Detect
Y
Clock Gear
Y
Low-power Hold Function
-
Remote Control Interface
Y
Hardware Cec Controller
-
Comparators
-
Low-voltage Detector
Y
Etm Hardware Trace
2-bit
18.6 Alarm Function
One of the following three signals is output to the ALARM pin.
(1) “0” pulse (when the alarm register corresponds with the clock)
(2) 1Hz cycle “0” pulse
(3) 16Hz cycle “0” pulse
the INTRTC interrupt request simultaneously.
state in the CG Interrupt Mode Control Register.
(1) “0” pulse (when the alarm register corresponds with the clock)
(Note)
By writing “1” to RTCPAGER<PAGE>, the alarm function of the PAGE1 registers is enabled.
In any cases shown above, the INTRTC outputs one cycle pulse of low-speed clock. It outputs
The INTRTC interrupt signal is falling edge triggered. Specify the falling edge as the active
PAGE1 alarm register correspond. The INTRTC interrupt is generated and the alarm is
triggered.
alarm setting to be 00 minute, 00 hour, 01 day and Sunday.
register. Enable the alarm with the RTCPAGER <ENAALM> bit. Enable the interrupt with the
RTCPAGER <INTENA> bit.
(12:00p.m.) on Monday 5
operating at high frequency oscillation, a maximum of one clock delay at 32 kHz (about 30µs)
may occur for the time register setting to become valid.
“0” pulse is output to the ALARM pin when the values of the PAGE0 clock register and the
The alarm settings
Initialize the alarm with alarm prohibited. Write “1” to RTCRESTR<RSTALM>. It makes the
Setting alarm for min., hour, date and day is done by writing data to the relevant PAGE1
The following is an example program for outputting an alarm from the ALARM pin at noon
The above alarm works in synchronization with the low-speed clock. When the CPU is
RTCPAGER ← 0 0 0 0 1 0 0 1
RTCRESTR ← 1 1 0 1 0 0 0 0
RTCDAYR
RTCDATER ← 0 0 0 0 0 1 0 1
RTCHOURR ← 0 0 0 1 0 0 1 0
RTCMINR
RTCPAGER ← 0 0 0 0 1 1 0 0
RTCPAGER ← 1 0 0 0 1 1 0 0
To make the alarm work repeatedly (e.g. every Wednesday at 12:00), next alarm
must be set during the INTRTC interrupt routine that is generated when the time
set for the alarm matches the RTC count.
← 0 0 0 0 0 0 0 1
← 0 0 0 0 0 0 0 0
7 6 5 4 3 2 1 0
TMPM380/M382 - 15 / 16 -
th
.
Disables alarm, sets PAGE1
Initializes alarm
Monday
5th day
Sets 12 o’clock
Sets 00 min.
Enables alarm
Enables interrupt
TMPM380/M382

Related parts for TMPM382FSFG