TMP92CF30
2009-06-12
92CF30-515
3.21.3.2
Alarm generator
The Alarm function generates eight kinds of alarm waveform having a modulation
frequency of 4096Hz determined by the low-speed clock (32.768 kHz). This waveform is
reversible by setting a value to a register.
The alarm tone can easily be heard by connecting an external loud speaker.
Five kind of fixed cycle (interrupts can be generated 1Hz, 2Hz, 64Hz, 512Hz, 8192Hz) by
using a counter which is used for the alarm generator.
(Operation)
MELALMC<MELALM> must first be set as 0 in order to select the alarm
waveform to be output from MLDALMC. The “10” must be set on the MELALMC
<FC1:0> register, and clear internal counter. Alarm pattern must then be set on
the 8-bit register of ALM. If it is inverted output-data, set <ALMINV> as invert.
Then set the MELAMC<FC1:0> to “11” to start the free-run counter.
To stop the alarm output, write “00H” to the ALM register.
The following are examples of 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)
When outputting AL2 pattern (31.25ms/8 times/1sec)
LD
(MELALMC), 80H
;
Clear counter, set output alarm waveform
LD
(ALM), 02H
;
Set AL2 pattern
LD
(MELALMC), C0H
;
Free-run counter start
Содержание TLCS-900/H1 Series
Страница 1: ...TOSHIBA Original CMOS 32 Bit Microcontroller TLCS 900 H1 Series TMP92CF30FG Semiconductor Company ...
Страница 650: ...TMP92CF30 2009 06 12 92CF30 648 7 Package Dimensions LQFP176 P 2020 0 40F TOP VIEW BOTTOM VIEW Detail view of A 25 1 A ...
Страница 652: ...TMP92CF30 2009 06 12 92CF30 650 ...