HT46RU66/HT46CU66
A/D Type 8-Bit MCU with LCD
Technical Document
·
Tools Information
·
FAQs
·
Application Note
-
HA0003E Communicating between the HT48 & HT46 Series MCUs and the HT93LC46 EEPROM
-
HA0004E HT48 & HT46 MCU UART Software Implementation Method
-
HA0005E Controlling the I2C bus with the HT48 & HT46 MCU Series
-
HA0047E An PWM application example using the HT46 series of MCUs
-
HA0075E MCU Reset and Oscillator Circuits Application Note
Features
·
Operating voltage:
·
8-bit RTC prescaler
·
Watchdog Timer
·
Buzzer output function
·
Crystal, RC and 32768Hz crystal system oscillator
f
SYS
=4MHz: 2.2V~5.5V
f
SYS
=8MHz: 3.3V~5.5V
·
32 bidirectional I/O lines
·
Two external interrupt inputs
·
Two 16-bit programmable timer/event counters with
option
·
Power down and wake-up functions reduce power
Programmable Frequency Divider, PFD, function
·
One 8-bit programmable timer/event counter with
consumption
·
16-level subroutine nesting
·
8-channel 12-bit resolution A/D converter
·
4-channel PWM output shared with 4 I/O lines
·
Bit manipulation instruction
·
16-bit table read instruction
·
Up to 0.5ms instruction cycle with 8MHz system clock
·
63 powerful instructions
·
Instruction execution within 1 or 2 machine cycles
·
Low voltage reset/detector function
·
52-pin QFP, 56-pin SSOP, 100-pin LQFP packages
source clock prescaler
·
47´3 or 46´4 segment LCD driver with logic
output option for SEG0~SEG23)
·
16K´16 program memory
·
576´8 data memory RAM
·
Universal Asynchronous Receiver Transmitter
(UART)
·
PFD function for sound generation
·
Real Time Clock - RTC
General Description
The HT46RU66/HT46CU66 are 8-bit, high perfor-
mance, RISC architecture microcontroller devices spe-
cifically designed for A/D product applications that
interface directly to analog signals and which require an
LCD Interface. The HT46CU66 mask version device, is
fully pin and functionally compatible with its sister
HT46RU66 OTP device.
The advantages of low power consumption, I/O flexibility,
timer functions, oscillator options, multi-channel A/D
Converter, Pulse Width Modulation function, Power
Down and Wake-up functions, in addition to a flexible
and configurable LCD interface enhance the versatility of
these devices to control a wide range of applications re-
quiring analog signal processing and LCD interfacing,
such as electronic metering, environmental monitoring,
handheld measurement tools, motor driving, etc. for both
the industrial and home appliance application areas.
Rev. 1.30
1
May 25, 2011
HT46RU66/HT46CU66
Block Diagram
In te rru p t
C ir c u it
P ro g ra m
E P R O M
P ro g ra m
C o u n te r
S T A C K
IN T C
T M R 2 C
T M R 2
M
U
P r e s c a le r
X
T M R 2
f
S
Y S
T M R 0 C
T M R 0
P F D 0
In s tr u c tio n
R e g is te r
M P
M
U
X
D A T A
M e m o ry
T M R 1 C
T M R 1
P F D 1
M
U
X
M
U
P r e s c a le r
X
P D 6 /T M R 0
P D 7 /T M R 1
f
S Y S
/4
3 2 7 6 8 H z
f
S
Y S
R T C
In s tr u c tio n
D e c o d e r
A L U
T im in g
G e n e r a tio n
S h ifte r
M U X
W D T
S T A T U S
T im e B a s e
P W M
P D C
O S C 2
O S C 4
O S
R E
V D
V S
O S
S
C 1
S
D
C 3
L C D D r iv e r
A C C
B P
P D
P o rt D
M
U
X
f
S
Y S
/4
R T C O S C
O S C 3
O S C 4
W D T O S C
P D 0
P D 4
P D 5
P D 6
P D 7
/P W
/IN
/IN
/T M
/T M
M 0 ~ P D 3 /P W M 3
T 0
T 1
R 0
R 1
L C D
M e m o ry
U A R T
P C C
P C
8 -C h a n n e l
A /D C o n v e rte r
P o rt C
P C 0
P C 1
P C 6
P C 7
/T M R 2
~ P C 5
/T X
/R X
C O M 0 ~
C O M 2
C O M 3 /
S E G 4 6
E N /D IS
S E G 0 ~
S E G 4 5
H A L T
P B C
P B
P A C
P o rt B
P B 0 /A N 0 ~ P B 7 /A N 7
P A 0
P A 1
P A 2
P A 3
P A 4
/B Z
/B Z
/P F D
~ P A 7
P o rt A
L V D /L V R
P A
Rev. 1.30
2
May 25, 2011
HT46RU66/HT46CU66
Pin Assignment
P A 0 /B Z
1
2
3
4
5
6
7
8
9
1 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
2 0
2 1
2 2
2 3
2 4
2 5
2 6
2 7
2 8
P A 1 /B Z
P A 2
P A 3 /P F D
P A 4
P A 5
P A 6
P A 7
P C 6 /T X
P C 7 /R X
P B 0 /A N 0
P B 1 /A N 1
P B 2 /A N 2
P B 3 /A N 3
V S S
P D 0 /P W M 0
P D 1 /P W M 1
P D 2 /P W M 2
P D 4 /IN T 0
P D 5 /IN T 1
P D 6 /T M R 0
V L C D
V M A X
V 1
V 2
C 1
C 2
C O M 0
5 6
5 5
5 4
5 3
5 2
5 1
5 0
4 9
4 8
4 7
4 6
4 5
4 4
4 3
4 2
4 1
4 0
3 9
3 8
3 7
3 6
3 5
3 4
3 3
3 2
3 1
3 0
2 9
R E S
O S C 1
O S C 2
V D D
O S C 3
O S C 4
S E G 1 6
S E G 1 7
S E G 1 8
S E G 1 9
S E G 2 0
P
P
S E G 2 1
S E G 2 2
S E G 2 3
S E G 2 4
S E G 2 5
S E G 2 6
S E G 2 7
S E G 2 8
S E G 2 9
S E G 3 0
S E G 3 1
S E G 1
S E G 1
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
O S C
O S C
V D
V R E
A V D
O S C
O S C
R E
P A 0 /B
P A 1 /B
P A
P A 3 /P F
P A
S E G 3 2
S E G 3 3
S E G 3 4
C O M 3 /S E G 4 6
C O M 2
C O M 1
P A 5
P A 6
P A 7
P C 4
P C 5
P C 6 /T X
P C 7 /R X
P B 0 /A N 0
P B 1 /A N 1
P B 2 /A N 2
P B 3 /A N 3
P B 4 /A N 4
P B 5 /A N 5
P B 6 /A N 6
P B 7 /A N 7
V S S
A V S S
D 0 /P W M 0
D 1 /P W M 1
D 2 /P W M 2
D 3 /P W M 3
P D 4 /IN T 0
P D 5 /IN T 1
D 6 /T M R 0
D 7 /T M R 1
2
3
4
5
6
7
8
9
1 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
2 0
2 1
2 2
2 3
2 4
2 5
2 6 2 7 2 8 2 9 3 0 3 1 3 2 3 3 3 4 3 5 3 6 3 7 3 8 3 9 4 0 4 1 4 2 4 3 4 4 4 5 4 6 4 7 4 8 4 9 5 0
H T 4 6 R U 6 6 /H T 4 6 C U 6 6
1 0 0 L Q F P -A
P
P
1
P
P
P C
P C
B 0
B 1
B 2
B 3
P A 5
P A 6
P A 7
6 /T X
7 /R X
/A N 0
/A N 1
/A N 2
/A N 3
V S S
W M 0
W M 1
W M 2
1
2
3
4
5
6
7
8
9
1 0
1 1
1 2
1 3
1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6
5 2 5 1 5 0 4 9 4 8 4 7 4 6 4 5 4 4 4 3 4 2 4 1 4 0
P A
P
S
S
E G 1
E G 1
O S C
O S C
V D
O S C
O S C
R E
A 0 /B
A 1 /B
P A
3 /P F
P A
D
S
Z
4
H T 4 6 R U 6 6 /H T 4 6 C U 6 6
5 2 Q F P -A
1
2
3
4
6
7
3 9
3 8
3 7
3 6
3 5
3 4
3 3
3 2
3 1
3 0
2 9
2 8
2 7
P
D
Z
2
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
1 8
1 9
2 0
2 1
2 2
2 3
2 4
2 5
2 6
2 7
2 8
2 9
3 0
P D 0 /P
P D 1 /P
P D 2 /P
S E G
S E G
S E G
C O M
C O M
C O M
C O M
V 1
V M A
V L C
P D 6
P D 5
P D 4
/T M R 0
/IN T 1
/IN T 0
D
3 1
3 2
3 3
3 /S E G 4 6
X
0
D
D
1
2
1 0 0 9 9 9 8 9 7 9 6 9 5 9 4 9 3 9 2 9 1 9 0 8 9 8 8 8 7 8 6 8 5 8 4 8 3 8 2 8 1 8 0 7 9 7 8 7 7 7 6
D
S
F
Z
1
2
3
4
2
4
7 5
7 4
7 3
7 1
7 0
6 9
6 8
6 7
6 6
6 5
6 4
6 3
6 2
6 1
6 0
5 9
5 8
5 7
5 6
5 5
5 4
5 3
5 2
5 1
7 2
N C
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
S E
G 1 2
G 1 3
G 1 4
G 1 5
G 1 6
G 1 7
G 1 8
G 1 9
G 2 0
G 2 1
G 2 2
G 2 3
G 2 4
G 2 5
G 2 6
G 2 7
G 2 8
G 2 9
G 3 0
G 3 1
G 3 2
G 3 3
G 3 4
G 3 5
0
1
0
1
2
3
4
5
6
7
8
9
Z
H T 4 6 R U 6 6 /H T 4 6 C U 6 6
5 6 S S O P -A
P
P
P
P
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
S E G
C O M
C O M
C O M
C O M
C 2
C 1
V 2
V 1
V M A
V L C
N C
P C 3
P C 2
P C 1
P C 0
D
/T M R 2
3 6
3 7
3 8
3 9
4 0
4 1
4 2
4 3
4 4
4 5
3 /S E G 4 6
X
0
1
2
Rev. 1.30
3
May 26, 2011
HT46RU66/HT46CU66
Pin Description
Pin Name
PA0/BZ
PA1/BZ
PA2
PA3/PFD
PA4~PA7
I/O
Configuration
Option
Pull-high
Wake-up
Buzzer
PFD
Description
Bidirectional 8-bit input/output port. Each individual pin on this port can
be configured as a wake-up input by a configuration option. Software in-
structions determine if the pin is a CMOS output or Schmitt Trigger input.
Configuration options determine which pins on the port have pull-high
resistors. Pins PA0, PA1 and PA3 are pin-shared with BZ, BZ and PFD
respectively, the function of which is chosen via configuration options.
Bidirectional 8-bit input/output port. Software instructions determine if
the pin is a CMOS output or Schmitt Trigger input. Configuration options
determine which pins on the port have pull-high resistors. PB is
pin-shared with the A/D input pins. The A/D inputs are selected via soft-
ware instructions. Once selected as an A/D input, the I/O function and
pull-high resistor functions are disabled automatically.
Bidirectional 8-bit input/output port. Software instructions determine if
the pin is a CMOS output or Schmitt Trigger input. A Configuration option
determines if the port has pull-high resistors. Pin PC0 is pin-shared with
the timer input pin TMR2. Pins PC6 and PC7 are pin-shared with the
UART pins TX and RX.
Bidirectional 8-bit input/output port. Software instructions determine if
the pin is a CMOS output or Schmitt Trigger input. Configuration options
determine which pins on the port have pull-high resistors. PD0~PD3 are
pin-shared with PWM0~PWM3, the function of each pin is selected via a
configuration option. Pins PD4 and PD5 are pin-shared with external in-
terrupt input pins INT0 and INT1 respectively. Configuration options de-
termine the interrupt enable/disable and the interrupt low/high trigger
type. Pins PD6 and PD7 are pin-shared with the external timer input pins
TMR0 and TMR1 respectively.
OSC1 and OSC2 are connected to an external RC network or external
crystal, determined by configuration option, for the internal system clock.
For external RC system clock operation, OSC2 is an output pin where
the system frequency can be monitored, at a frequency of 1/4 system
clock. If an RTC oscillator on pins OSC3 and OSC4 is used as a system
clock, then the OSC1 and OSC2 pins should be left floating.
OSC3 and OSC4 are connected to a 32768Hz crystal to form a real time
clock for timing purposes or to form a system clock.
LCD power supply
IC maximum voltage, connect to V
DD
, V
LCD
or V1
LCD voltage pump
LCD driver outputs for LCD panel segments. A configuration option can
select all pins to be used as segment drivers or all pins to be used as
CMOS outputs.
I/O
PB0/AN0~
PB7/AN7
I/O
Pull-high
PC0/TMR2
PC1~PC5
PC6/TX
PC7/RX
PD0/PWM0
PD1/PWM1
PD2/PWM2
PD3/PWM3
PD4/INT0
PD5/INT1
PD6/TMR0
PD7/TMR1
I/O
Pull-high
I/O
Pull-high
PWM
Interrupt
OSC1
OSC2
I
O
Crystal or RC
OSC3
OSC4
VLCD
VMAX
V1, V2, C1, C2
SEG0~SEG7
I
O
¾
¾
I
O
RTC or
System Clock
¾
¾
¾
SEG0~SEG7 or
CMOS output
SEG8~SEG15
O
LCD driver outputs for LCD panel segments. A configuration option can
SEG8~SEG15 or
select all pins to be used as segment drivers or all pins to be used as
CMOS output
CMOS outputs.
SEG16~SEG23
CMOS output
¾
LCD driver outputs for LCD panel segments. Configuration options can
select each pin to be used as either a segment driver or each pin to be
used as a CMOS output.
LCD driver outputs for LCD panel segments
SEG16~SEG23
SEG24~SEG45
COM0~COM2
COM3/SEG46
O
O
O
An LCD duty-cycle configuration option determines if SEG46 is config-
1/3 or 1/4 Duty
ured as a segment driver or as a common output driver for the LCD
COM3 or SEG46
panel. COM0~COM2 are the LCD common outputs.
Rev. 1.30
4
May 25, 2011
HT46RU66/HT46CU66
Pin Name
VREF
RES
VDD
VSS
AVDD
AVSS
Note:
I/O
I
I
¾
¾
I
I
Configuration
Option
¾
Description
Reference voltage input pin.
Schmitt Trigger reset input. Active low.
Positive power supply
Negative power supply, ground
Positive analog power supply
Negative analog power supply, ground
¾
¾
¾
¾
¾
Each pin on Port A can be programmed through a configuration option to have a wake-up function.
Individual pins can be selected to have a pull-high resistor.
Pins V2, C1, C2 and segment pin SEG34 are not available on the 52-pin QFP package.
Pins PB4/AN4~PB7/AN7 only exist on the 100-pin QFP package.
Pins PC0~PC5 only exist on the 100-pin QFP package.
Pin PD3/PWM3 only exists on the 100-pin QFP package.
Pins PD7/TMR1 and PC0/TMR2 only exist on the 100-pin QFP package. The 56-pin SSOP and 52-pin QFP
packages have only one external timer input TMR0.
Segment pins SEG0~SEG15 and SEG35~SEG45 only exist on the 100-pin QFP package.
For the 52-pin QFP and 56-pin SSOP, the VREF, AVDD are bonded together with VDD pin.
For the 52-pin QFP and 56-pin SSOP, the AVSS is bonded together with VSS pin.
Absolute Maximum Ratings
Supply Voltage ...........................V
SS
-0.3V
to V
SS
+6.0V
Input Voltage..............................V
SS
-0.3V
to V
DD
+0.3V
I
OL
Total ..............................................................150mA
Total Power Dissipation .....................................500mW
Storage Temperature ............................-50°C to 125°C
Operating Temperature...........................-40°C to 85°C
I
OH
Total............................................................-100mA
Note: These are stress ratings only. Stresses exceeding the range specified under
²Absolute
Maximum Ratings² may
cause substantial damage to the device. Functional operation of this device at other conditions beyond those listed
in the specification is not implied and prolonged exposure to extreme conditions may affect device reliability.
D.C. Characteristics
Symbol
Parameter
Test Conditions
V
DD
¾
¾
¾
3V
5V
3V
5V
5V
5V
3V
5V
Conditions
f
SYS
=4MHz
f
SYS
=8MHz
V
REF
=AV
DD
No load, f
SYS
=4MHz,
ADC Off, UART Off
No load, f
SYS
=4MHz,
ADC Off, UART On
No load, f
SYS
=8MHz,
ADC Off, UART Off
No load, f
SYS
=8MHz,
ADC Off, UART On
No load, ADC Off,
UART Off
Min.
2.2
3.3
3.0
¾
¾
¾
¾
¾
¾
¾
¾
Typ.
¾
¾
¾
1
3
1.5
3
4
5
0.3
0.6
Max.
5.5
5.5
5.5
2
5
3
6
8
10
0.6
1
Ta=25°C
Unit
V
V
V
mA
mA
mA
mA
mA
mA
mA
mA
V
DD
AV
DD
I
DD1
Operating Voltage
Analog Operating Voltage
(see Note 5)
Operating Current
(Crystal OSC, RC OSC)
Operating Current
(Crystal OSC, RC OSC)
Operating Current
(Crystal OSC, RC OSC)
Operating Current
(Crystal OSC, RC OSC)
Operating Current
(f
SYS
=32768Hz)
I
DD2
I
DD3
I
DD4
I
DD5
Rev. 1.30
5
May 25, 2011