Document
HT46R322/HT46R342 A/D with OPA Type 8-Bit OTP MCU
Technical Document
· Tools Information · FAQs · Application Note - HA0003E Communicating between the HT48 & HT46 Series MCUs and the HT93LC46 EEPROM - HA0049E Read and Write Control of the HT1380 - HA0051E Li Battery Charger Demo Board - Using the HT46R47 - HA0052E Microcontroller Application - Battery Charger - HA0083E Li Battery Charger Demo Board - Using the HT46R46
Features
· Operating voltage: · Up to 0.5ms instruction cycle with 8MHz system clock
fSYS=4MHz: 2.2V~5.5V fSYS=8MHz: 3.3V~5.5V
· 36 bidirectional I/O lines (max.), including 16 LED
at VDD=5V
· 6-level subroutine nesting · 4 channel 12-bit resolution A/D converter · Integrated single operational amplifier or comparator
driver with twice sink/source current
· Single interrupt input shared with an I/O line · 8-bit programmable timer/event counter with overflow
selectable via configuration option
· Dual 8-bit PWM outputs shared with I/O lines · Bit manipulation instruction · Full table read instruction · 63 powerful instructions · All instructions executed in one or two machine
interrupt and 7-stage prescaler
· Integrated crystal and RC oscillator · Watchdog Timer · 2048´14 Program Memory capacity - HT46R322
4096´15 Program Memory capacity - HT46R342
· 88´8 Data Memory capacity - HT46R322
cycles
· Low voltage reset function · 44-pin QFP package
192´8 Data Memory capacity - HT46R342
· Integrated PFD function for sound generation · Power-down and wake-up functions reduce power
consumption
General Description
The HT46R322 and HT46R342 are 8-bit, high performance, RISC architecture microcontroller devices. With their fully integrated A/D converter they are especially suitable for applications which interface to analog signals, such as those from sensors. The addition of an internal operational amplifier/comparator and PWM modulation functions further adds to the analog capability of these devices. With the comprehensive features of low power consumption, I/O flexibility, programmable frequency divider, timer functions, oscillator options, multi-channel A/D Converter OP/Comparator, Pulse Width Modulation function, Power-down and wake-up functions etc, the application scope of these devices is broad and encompasses areas such as sensor signal processing, motor driving, industrial control, consumer products, subsystem controllers, etc. The HT46R342 is under development and will be available soon.
Rev. 1.00
1
December 21, 2006
www.DataSheet4U.com
HT46R322/HT46R342
Block Diagram
P A 5 /IN T
In te rru p t C ir c u it 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 T C T M R C T M R P A 3 /P F D In s tr u c tio n R e g is te r M U X P A 4 M U X fS
Y S
P r e s c a le r P A 4 /T M R
fS
Y S
M P
M U
X
D A T A M e m o ry
W D T
/4
W D T O S C
P E C P E 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 S h ifte r P A 3 , P A 5 P C C P C O S C 2 O S R E V D V S S S D C 1 A C C L V R M U X P W M P D C S T A T U S P D
P o rt E
P E 0 ~ P E 7
P o rt D
P D 0 /P W M 0 P D 1 /P W M 1 P D 2 P D 3
P o rt C
P C 0 ~ P C 7
4 -C h a n n e l A /D C o n v e rte r P B C A P N A P P A P O L o w O ffs e t O P -a m p P A C P A P o rt A P A P A P A P A P A 0 ~ P 3 /P 4 /T 5 /IN 6 ~ P A 2 F D M R T A 7 P B P o rt B P B 0 /A N 0 ~ P B 3 /A N 3 P B 4 ~ P B 7
Rev. 1.00
2
December 21, 2006
HT46R322/HT46R342
Pin Assignment
P E P E P E P E P E P E P E P A P A P A 5 /IN P A 4 /T M R
4 4 4 3 4 2 4 1 4 0 3 9 3 8 3 7 3 6 3 5 3 4 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
T 6 P E P C P C P C P C P C P C P C P C 0 7 6 5 4 3 2 1 7 7 6 5 4 3 2 1
P A 3
P B 3 P B 2 P B 1
P B 7 P B 6 P B 5 P B 4 /P F D P A 2 P A 1 P A 0 /A N 3 /A N 2 /A N 1
3 3 3 2 3 1 3 0
H T 4 6 R 3 2 2 /H T 4 6 R 3 4 2 4 4 Q F P -A
2 9 2 8 2 7 2 6 2 5 2 4 2 3
0 O S C 2 O S C 1
V D D R E S P D 0 /P W M 0 P D 1 /P W M 1 P D 2 P D 3 V S S A P P A P N A P O P B 0 /A N 0
Pin Description
Pin Name PA0~PA2 PA3/PFD PA4/TMR PA5/INT PA6, PA7 PB0/AN0 PB1/AN1 PB2/AN2 PB3/AN3 PB4~PB7 I/O Options Pull-high Wake-up PA3 or PFD Description Bidirectional 8-bit input/output port. Each pin can be configured as wake-up input by configuration options. 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. The PFD, TMR and INT pins are pin-shared with PA3, PA4 and PA5, respectively. 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. Pins PB0~PB3 are 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 are disabled automatically. Bidirectional 8-bit input/output port. Software instructions determine if the pin is a CMOS output or Schmitt trigg.