HT48R064G/065G/066G/0662G
Enhanced I/O Type 8-Bit OTP MCU with OPA
Operational Amplifiers
There are two fully integrated Operational Amplifiers in these devices, OPA0 and OPA1. These OPAs
can be used for user specified analog signal processing. The OPAs can be disabled or enabled entirely
under software control using internal registers. With specific control registers, some OPA related
applications can be easily implemented, such as Unity Gain Buffer, Non-Inverting Amplifier,
Inverting Amplifier and various kinds of filters, etc.
Comparator & Operational Amplifier Registers
The internal Operational Amplifiers are fully under the control of internal registers, COPA0C,
COPA1C, COPA2C, COPA3C, OPA0OC and OPA1OC. These registers control the enable/disable
function, input path selection, gain control, polarity and calibration function.
Operational Amplifier Operation
The advantages of multiple switches and input path options, various reference voltage selection, up to 8
kinds of internal software gain control, output with interrupt function, offset reference voltage calibration
function and power down control for low power consumption enhance the flexibility of these two OPAs
to suit a wide range of application possibilities.
Note that the EA0I, EA1I interrupt control bits should be set to ²0² before entering halt mode for
power saving.
The following block diagram illustrates the main functional blocks of the OPAs and Comparator in this
device.
S11
A0N
A0P
0.7VDD
0.5VDD
0.1VDD
MA0P
MUX
S12
A0
EA0I
A0X
To OPA0 interrupt
S13
A0X
A1N
A0PS[2:0]
A1NS[1:0]
S21
MA1N R1
MUX
10K
A1P
0.7VDD
0.5VDD
0.1VDD
MA1P
MUX
S24
A1X
CN
CP
0.7VDD
0.5VDD
0.1VDD
A1PS[2:0]
CNS[1:0]
MUX MCN
MCP
MUX
CPS[2:0]
CX
S22
R2
S23
500K
EA1I
A1X
A1
To OPA1 interrupt
POL
C
debounce
CINTS[1:0]
Edge
control
=00: rasing edge
=01: falling edge
=10: both edge
to interrupt
TC0 pin
CX
(COUT)
mux
To timer 0 external
clock input
TMR0S
Rev. 1.10
69
October 23, 2012