Document
www.DataSheet4U.com
HT46R51/HT46R52 A/D Type 8-Bit OTP MCU
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 - HA0084E NiMH Battery Charger Demo Board - Using the HT46R52
Features
· Low-power fully static CMOS design · Operating voltage: · On-chip crystal and RC oscillator · 6-level subroutine nesting · Watchdog Timer · Low voltage reset function · HALT function · Up to 0.5ms instruction cycle with 8MHz system clock
fSYS=4MHz: 2.2V~5.5V fSYS=8MHz: 3.3V~5.5V
· Program Memory:
1K´14 OTP (HT46R51) 2K´14 OTP (HT46R52)
· Data memory: 88´8 RAM · A/D converter: 12bits´5Ch
at VDD=5V
· 1-channel 8-bit PWM output shared with an I/O line · PFD function · Bit manipulation instruction · Table read instruction · 63 powerful instructions · All instructions in one or two machine cycles · 18-pin DIP, 20-pin SOP/SSOP package
External A/D converter reference voltage input pin
· 14 bidirectional I/O lines · 1 interrupt input shared with an I/O line · 8-bit programmable timer/event counter with over-
flow interrupt and 7-stage prescaler
General Description
The HT46R51/HT46R52 are 8-bit high performance, RISC architecture microcontroller devices specifically designed for A/D applications that interface directly to analog signals, such as those from sensors. The advantages of low power consumption, I/O flexibility, timer functions, oscillator options, multi-channel A/D converter, Pulse Width Modulation function, HALT and wake-up functions, watchdog timer, as well as low cost, enhance the versatility of these devices to suit a wide range of A/D application possibilities such as sensor signal processing, chargers, motor driving, industrial control, consumer products, subsystem controllers, etc.
Rev. 1.40
1
July 12, 2005
HT46R51/HT46R52
Block Diagram
IN T T M R C T M R M U X P r e s c a le r T M R fS
Y S
S T A C K P ro g ra m R O M P ro g ra m C o u n te r
In te rru p t C ir c u it IN T C
W D T S In s tr u c tio n R e g is te r M U X W D T P r e s c a le r D A T A M e m o ry
E N /D IS
W D T
M U
fS X
Y S
/4
B P
M P
W D T O S C
P A P A C
P o rt A
P A 0 ~ P A 2 , P A 3 /P F D P A 4 /T M R , P A 5 /IN T P A 6 ~ P A 7
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 ra to r
M U X
A /D C o n v e rte r
S T A T U S
M U
V D D
X
V R E F
P B 0 /A N 0 ~ P B 4 /A N 4
P B P B C
P o rt B
S h ifte r
O S C 2
O S R E V D V S
C 1 S D S
P D A C C O p tio n R O M O T P O n ly P D C
P o rt D
P D 0 /P W M
Pin Assignment
P A 3 /P F D 1 2 3 4 5 6 7 8 9 1 0 P A 3 /P F D 1 2 3 4 5 6 7 8 9 P A 2 P A 1 P A 0 P D 0 /P W M V S S P B 0 /A N 0 P B 1 /A N 1 P B 2 /A N 2 1 8 1 7 1 6 1 5 1 4 1 3 1 2 1 1 1 0 P A 4 /T M R P A 5 /IN T P A 6 P A 7 O S C 2 O S C 1 V D D R E S P B 3 /A N 3 P A 2 P A 1 P A 0 P D 0 /P W M V R E F V S S P B 0 /A N 0 P B 1 /A N 1 P B 2 /A N 2 2 0 1 9 1 8 1 7 1 6 1 5 1 4 1 3 1 2 1 1 P A 4 /T M R P A 5 /IN T P A 6 P A 7 O S C 2 O S C 1 V D D R E S P B 4 /A N 4 P B 3 /A N 3
H T 4 6 R 5 1 /H T 4 R 5 2 1 8 D IP -A
H T 4 6 R 5 1 /H T 4 R 5 2 2 0 S O P -A /S S O P -A
Rev. 1.40
2
July 12, 2005
HT46R51/HT46R52
Pin Description
Pin Name PA0~PA2 PA3/PFD PA4/TMR PA5/INT PA6~PA7 PB0/AN0 PB1/AN1 PB2/AN2 PB3/AN3 PB4/AN4 I/O Options Pull-high Wake-up PA3 or PFD Description Bidirectional 8-bit input/output port. Each individual bit on this port can be configured as a wake-up input by configuration option. Software instructions determine if the pin is a CMOS output or Schmitt trigger input. Configuration options determine which pins on this port have pull-high resistors. The PFD, TMR and external interrupt input are pin-shared with PA3, PA4, and PA5 respectively. Bidirectional 5-bit input/output port. Software instructions determine the CMOS output or Schmitt trigger input with or without pull-high resistor. Configuration options determine which pins on this port have pull-high resistors. PB is pin-shared with the A/D input pins. The A/D inputs are selected via software instructions Once selected as an A/D input, the I/O function and pull-high resistor functions are disabled automatically.
I/O
I/O
Pull-high
PD0/PWM
I/O
Bidirectional 1-bit input/output port. Software instructions determine the CMOS output or Schmitt trigger input with or without pull-high resistor. One configuration Pull-high PD0 or PWM option determines which pin on this port has pull-high resistor. PD0 is pin-shared with the PWM output selected via configuration option. OSC1, OSC2 are connected to an external RC network or external crystal (deterCrystal or RC mined by configuration option) for the internal system clock. For external RC system clock operation, OSC2 is an output pin for 1/4 system clock. ¾ ¾ ¾ ¾ Schmitt trigger reset input, active low Positive power supply Negative power supply, ground A/D Converter Reference Input voltage pins. Connect this pin to the desired .