HT36A4
Rev. 1.00
10
July 2, 2003
Oscillator Configuration
The HT36A4 provides two types of oscillator circuit for
the system clock, i.e., RC oscillator and crystal oscilla-
tor. No matter what type of oscillator, the signal divided
by 2 is used for the system clock. The HALT mode stops
the system oscillator and ignores external signal to con-
serve power. If the RC oscillator is used, an external re-
sistor between OSC1 and VSS is required, and the
range of the resistance should be from 30k
The system clock, divided by 4, is available on OSC2
with pull-high resistor, which can be used to synchronize
external logic. The RC oscillator provides the most cost
effective solution. However, the frequency of the oscilla-
tion may vary with VDD, temperature, and the chip itself
due to process variations. It is therefore, not suitable for
timing sensitive operations where accurate oscillator
frequency is desired.
to 680k .
On the other hand, if the crystal oscillator is selected, a
crystalacrossOSC1andOSC2isneededtoprovidethe
feedback and phase shift required for the oscillator, and
no other external components are required. Aresonator
may be connected between OSC1 and OSC2 to replace
the crystal and to get a frequency reference, but two ex-
ternal capacitors in OSC1 and OSC2 are required.
The WDT oscillator is a free running on-chip RC oscilla-
tor, and no external components are required. Even if
the system enters the power down mode, the system
clock is stopped, but the WDToscillator still works with a
period of approximately 78 s. The WDT oscillator can
be disabled by mask option to conserve power.
Watchdog Timer
WDT
The WDT clock source is implemented by a dedicated
RC oscillator (WDT oscillator) or instruction clock (sys-
tem clock of the MCU divided by 4), determined by mask
options. This timer is designed to prevent a software
malfunction or sequence jumping to an unknown loca-
tionwithunpredictableresults.TheWatchdogTimercan
be disabled by mask option. If the Watchdog Timer is
disabled, all the executions related to the WDT result in
no operation.
Register
Bit No.
Label
Function
INTC
(0BH)
0
EMI
Controls the Master (Global) interrupt
(1=enabled; 0=disabled)
1
Unused bit, read as 0
2
ET0I
Controls the Timer Counter 0 interrupt
(1=enabled; 0=disabled)
3
ET1I
Controls the Timer Counter 1 interrupt
(1=enabled; 0=disabled)
4
Unused bit, read as 0
5
T0F
Internal Timer Counter 0 request flag
(1=active; 0=inactive)
6
T1F
Internal Timer Counter 1 request flag
(1=active; 0=inactive)
7
Unused bit, read as 0
INTC register
1
+
0
9
+
0
9
:
B
#
" "
System oscillator
1
8 +
9 0 4
;
+
9
D
" ' +
0
;
+
9
9
+
E
D
" ' + ' 8
9
D
D
4
9
0
D
" '
Watchdog timer