TMP92CZ26A
92CZ26A-593
3.22.3.2 Alarm generator
The Alarm function generates eight kinds of alarm waveform having a modulation
frequency 4096Hz determined by the low-speed clock (32.768 KHz). And this waveform is
reversible by setting a value to a register.
By connecting a loud speaker outside, Alarm tone can easily sound.
Five kind of fixed cycles (1Hz, 2Hz, 64Hz, 512Hz, 8192Hz) interrupt be generate by using
a counter which is used for alarm generator.
(Operation)
At first, MELALMC<MELALM> have to be set as “0” in order to select alarm waveform
as output waveform from MLDALM. Then “10” be set on MELALMC<FC1:0> register, and
clear internal counter. Finally alarm pattern has to be set on 8-bit register of ALM. If it is
inverted output-data, set <ALMINV> as invert.
Followings are example program, setting value of alarm pattern and waveform of each
setting value.
(Setting value of alarm pattern)
Setting value
for ALM
register
Alarm waveform
00H “0” fixed
01H AL1 pattern
02H AL2 pattern
04H AL3 pattern
08H AL4 pattern
10H AL5 pattern
20H AL6pattern
40H AL7 pattern
80H AL8 pattern
Other Undefined
(Do not set)
(Example program)
In case of outputting AL2 pattern (31.25ms/8 times/1sec)
LD (MELALMC), C0H ; Set output alarm waveform
; Free-run counter start
LD (ALM), 02H ; Set AL2 pattern, start