HT46R01B-1/HT46R01N-1
HT48R01B-1/HT48R01N-1
Small Package 8-Bit OTP MCU
Technical Document
·
Application Note
-
HA0075E MCU Reset and Oscillator Circuits Application Note
Features
CPU Features
·
Operating voltage:
·
6-level subroutine nesting
·
All instructions executed in one or two instruction
f
SYS
= 4MHz: 2.2V~5.5V
f
SYS
= 8MHz: 3.3V~5.5V
f
SYS
= 12MHz: 4.5V~5.5V
·
Up to 0.33ms instruction cycle with 12MHz system
cycles
·
Table read instructions
·
63 powerful instructions
·
Bit manipulation instruction
·
Low voltage reset function
·
10-pin MSOP, 16-pin NSOP package types
clock at V
DD
= 5V
·
Sleep mode and wake-up functions to reduce
power consumption
·
Oscillator types:
Peripheral Features
·
Up to 10 bidirectional I/O lines
·
4 channel 12-bit ADC
·
1 channel 8-bit PWM
·
External interrupt input shared with an I/O line
·
Two 8-bit programmable Timer/Event
External high frequency Crystal -- HXT
External RC -- ERC
Internal RC -- HIRC
External low frequency crystal -- LXT
·
Three operational modes: Normal, Slow, Sleep
·
Fully integrated internal 4MHz, 8MHz and 12MHz
oscillator requires no external components
·
Program Memory: 1K´15
·
Data Memory: 96´8
·
Watchdog Timer function
·
LIRC oscillator function for watchdog timer
Counter with overflow interrupt and prescaler
·
Time-Base function
·
Programmable Frequency Divider - PFD
General Description
The Small Package MCUs are a series of 8-bit high per-
formance, RISC architecture microcontrollers specifi-
cally designed for a wide range of applications. The
usual Holtek microcontroller features of low power con-
sumption, I/O flexibility, timer functions, oscillator op-
tions, power down and wake-up functions, watchdog
timer and low voltage reset, combine to provide devices
with a huge range of functional options while still main-
taining a high level of cost effectiveness. The fully inte-
grated system oscillator HIRC, which requires no
external components and which has three frequency
selections, opens up a huge range of new application
possibilities for these devices, some of which may in-
clude industrial control, consumer products, household
appliances subsystem controllers, etc.
Rev.1.00
1
June 9, 2011
HT46R01B-1/HT46R01N-1
HT48R01B-1/HT48R01N-1
Selection Table
Part No.
HT46R01B-1
HT46R01N-1
HT48R01B-1
HT48R01N-1
Program
Memory
1K´15
1K´15
1K´15
1K´15
Data
Memory
96´8
96´8
96´8
96´8
I/O
8
10
8
10
8-bit
Timer
2
2
2
2
Time
Base
1
1
1
1
HIRC
(MHz)
4/8/12
RTC
(LXT)
Ö
Ö
Ö
Ö
A/D
12-bit´4
12-bit´4
¾
¾
PWM
8-bit´1
8-bit´1
¾
¾
PFD
Ö
Ö
Ö
Ö
Stack
6
6
6
6
Package
10MSOP
16NSOP
10MSOP
16NSOP
Block Diagram
The following block diagram illustrates the main functional blocks.
L o w
V o lta g e
R e s e t
P W M
D r iv e r
O T P
P ro g ra m
M e m o ry
R A M
D a ta
M e m o ry
P F D
D r iv e r
I/O
P o rts
W a tc h d o g
T im e r
R e s e t
C ir c u it
8 - b it
R IS C
M C U
C o re
In te rru p t
C o n tr o lle r
E x te rn a l
C r y s ta l/R C
O s c illa to r s
A /D
C o n v e rte r
8 - b it
T im e r s
T im e
B a s e
In te rn a l
O s c illa to r s
Pin Assignment
P A 3 /IN T
P A 2 /T C 0
P A 1 /P F D
P A 0
V S S
5
4
6
3
7
2
8
1
1 0
9
P A 4 /T C 1
P A 5 /O S C 2
P A 6 /O S C 1
P A 7 /R E S
V D D
P A 3 /IN T /A N 3
P A 2 /T C 0 /A N 2
P A 1 /P F D /A N 1
P A 0 /A N 0
V S S
5
4
6
3
7
2
8
1
1 0
9
P A 4 /T C 1 /P W M
P A 5 /O S C 2
P A 6 /O S C 1
P A 7 /R E S
V D D
H T 4 8 R 0 1 B -1
1 0 M S O P -A
H T 4 6 R 0 1 B -1
1 0 M S O P -A
P A 3 /IN T
1
2
3
4
5
6
7
8
P A 2 /T C 0
P A 1 /P F D
P A 0
P B 0
V S S
N C
N C
1 6
1 5
1 4
1 3
1 2
1 1
1 0
9
P A 4 /T C 1
P A 5 /O S C 2
P A 6 /O S C 1
P A 7 /R E S
P B 1
V D D
N C
N C
P A 3 /IN T /A N 3
1
2
3
4
5
6
7
8
P A 2 /T C 0 /A N 2
P A 1 /P F D /A N 1
P A 0 /A N 0
P B 0
V S S
N C
N C
1 6
1 5
1 4
1 3
1 2
1 1
1 0
9
P A 4 /T C 1 /P W M
P A 5 /O S C 2
P A 6 /O S C 1
P A 7 /R E S
P B 1
V D D
N C
N C
H T 4 8 R 0 1 N -1
1 6 N S O P -A
H T 4 6 R 0 1 N -1
1 6 N S O P -A
Rev.1.00
2
June 9, 2011
HT46R01B-1/HT46R01N-1
HT48R01B-1/HT48R01N-1
Pin Description
The function of each pin is listed in the following tables, however the details behind how each pin is configured is con-
tained in the other individual peripheral function sections.
HT46R01B-1
Pin Name
Function
PA0
PA0/AN0
AN0
PA1
PA1/PFD/AN1
PFD
AN1
PA2
PA2/TC0/AN2
TC0
AN2
PA3
PA3/INT/AN3
INT
AN3
PA4
PA4/TC1/PWM
TC1
PWM
PA5
PA5/OSC2
OSC2
PA6
PA6/OSC1
OSC1
PA7
PA7/RES
VDD
VSS
Note:
RES
VDD
VSS
OPT
PAPU
PAWK
ADCR
PAPU
PAWK
CTRL0
ADCR
PAPU
PAWK
TMR0C
ADCR
PAPU
PAWK
INTC0
CTRL1
ADCR
PAPU
PAWK
TMR1C
CTRL0
PAPU
PAWK
CO
PAPU
PAWK
CO
PAWK
CO
¾
¾
I/T
ST
OPAI
ST
¾
¾
ST
ST
¾
ST
ST
OPAI
ST
ST
¾
ST
¾
ST
OSC
ST
ST
PWR
PWR
O/T
Description
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
Analog to Digital Converter channel input 0
CMOS General purpose I/O. Register enabled pull-up and wake-up.
CMOS PFD output
OPAO Analog to Digital Converter channel input 1
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
External Timer 0 clock input
OPAO Analog to Digital Converter channel input 2
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
¾
External interrupt input
Analog to Digital Converter channel input 3
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
External Timer 1 clock input
CMOS PWM output
CMOS General purpose I/O. Register enabled pull-up and wake-up.
OSC
Oscillator pin
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
¾
¾
¾
Oscillator pin
NMOS General purpose I/O. Register enabled wake-up.
Reset input
Power supply
Ground
OPT: Optional by configuration option (CO) or register option
I/T: Input type
O/T: Output type
CO: Configuration option
ST: Schmitt Trigger input
AN: analog input;
CMOS: CMOS output
NMOS: NMOS output
OSC: Oscillator pin
PWR: Power
*: AVDD is the ADC power supply and is bonded together internally with VDD while AVSS is the ADC ground
pin and is bonded together internally with VSS.
Rev.1.00
3
June 9, 2011
HT46R01B-1/HT46R01N-1
HT48R01B-1/HT48R01N-1
HT46R01N-1
Pin Name
Function
PA0
PA0/AN0
AN0
PA1
PA1/PFD/AN1
PFD
AN1
PA2
PA2/TC0/AN2
TC0
AN2
PA3
PA3/INT/AN3
INT
AN3
PA4
PA4/TC1/PWM
TC1
PWM
PA5
PA5/OSC2
OSC2
PA6
PA6/OSC1
OSC1
PA7
PA7/RES
RES
PB0
PB1
VDD
VSS
Note:
PB0
PB1
VDD
VSS
CO
PBPU
PBPU
¾
¾
ST
ST
ST
PWR
PWR
OPT
PAPU
PAWK
ADCR
PAPU
PAWK
CTRL0
ADCR
PAPU
PAWK
TMR0C
ADCR
PAPU
PAWK
INTC0
CTRL1
ADCR
PAPU
PAWK
TMR1C
CTRL0
PAPU
PAWK
CO
PAPU
PAWK
CO
PAWK
I/T
ST
OPAI
ST
¾
¾
ST
ST
¾
ST
ST
OPAI
ST
ST
¾
ST
¾
ST
OSC
ST
O/T
Description
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
Analog to Digital Converter channel input 0
CMOS General purpose I/O. Register enabled pull-up and wake-up.
CMOS PFD output
OPAO Analog to Digital Converter channel input 1
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
External Timer 0 clock input
OPAO Analog to Digital Converter channel input 2
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
¾
External interrupt input
Analog to Digital Converter channel input 3
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
External Timer 1 clock input
CMOS PWM output
CMOS General purpose I/O. Register enabled pull-up and wake-up.
OSC
Oscillator pin
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
Oscillator pin
NMOS General purpose I/O. Register enabled wake-up.
¾
Reset input
CMOS General purpose I/O. Register enabled.
CMOS General purpose I/O. Register enabled.
¾
¾
Power supply
Ground
OPT: Optional by configuration option (CO) or register option
I/T: Input type
O/T: Output type
CO: Configuration option
ST: Schmitt Trigger input
AN: analog input
CMOS: CMOS output
NMOS: NMOS output
OSC: Oscillator pin
PWR: Power
*: AVDD is the ADC power supply and is bonded together internally with VDD while AVSS is the ADC ground
pin and is bonded together internally with VSS.
Rev.1.00
4
June 9, 2011
HT46R01B-1/HT46R01N-1
HT48R01B-1/HT48R01N-1
HT48R01B-1
Pin Name
PA0
Function
PA0
PA1
PA1/PFD
PFD
PA2
PA2/TC0
TC0
PA3
PA3/INT
INT
PA4
PA4/TC1
TC1
PA5
PA5/OSC2
OSC2
PA6
PA6/OSC1
OSC1
PA7
PA7/RES
RES
VDD
VSS
Note:
VDD
VSS
CO
¾
¾
ST
PWR
PWR
INTC0
CTRL1
PAPU
PAWK
TMR1C
PAPU
PAWK
CO
PAPU
PAWK
CO
PAWK
ST
ST
ST
ST
¾
ST
OSC
ST
¾
External interrupt input
OPT
PAPU
PAWK
PAPU
PAWK
CTRL0
PAPU
PAWK
TMR0C
PAPU
PAWK
I/T
ST
ST
¾
ST
ST
ST
O/T
Description
CMOS General purpose I/O. Register enabled pull-up and wake-up.
CMOS General purpose I/O. Register enabled pull-up and wake-up.
CMOS PFD output
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
External Timer 0 clock input
CMOS General purpose I/O. Register enabled pull-up and wake-up.
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
External Timer 1 clock input
CMOS General purpose I/O. Register enabled pull-up and wake-up.
OSC
Oscillator pin
CMOS General purpose I/O. Register enabled pull-up and wake-up.
¾
Oscillator pin
NMOS General purpose I/O. Register enabled wake-up.
¾
¾
¾
Reset input
Power supply
Ground
OPT: Optional by configuration option (CO) or register option
I/T: Input type
O/T: Output type
CO: Configuration option
ST: Schmitt Trigger input
AN: analog input
CMOS: CMOS output
NMOS: NMOS output
OSC: Oscillator pin
PWR: Power
Rev.1.00
5
June 9, 2011