
Rev. 1.00
30
��ne 1�� �01�
Rev. 1.00
31
��ne 1�� �01�
HT46R003B
Cost-Effective A/D 8-bit OTP MCU
HT46R003B
Cost-Effective A/D 8-bit OTP MCU
PBPU Register
Bit
7
6
5
4
3
2
1
0
Name
—
—
PBPU5
PBPU�
PBPU3
PBPU�
PBPU1
PBPU0
R/W
—
—
R/W
R/W
R/W
R/W
R/W
R/W
POR
—
—
0
0
0
0
0
0
Bit 7~6
Unimplemented, read as "0"
Bit 5~0
PBPU5~PBPU0
: Port B bit 5~bit 0 pull-high control
0: Disable
1: Enable
Port A Wake-up
If the HALT instruction is executed, the device will enter the Sleep Mode, where the system clock will
stop resulting in power being conserved, a feature that is important for battery and other low-power
applications. Various methods exist to wake-up the microcontroller, one of which is to change the
logic condition on one of the PA0~PA7 pins from high to low. After a HALT instruction forces the
microcontroller into entering the Sleep Mode, the processor will remain in a low-power state until
the logic condition of the selected wake-up pin on Port A changes from high to low. This function
is especially suitable for applications that can be woken up via external switches. Note that pins
PA0~PA7 can be selected individually to have this wake-up feature using an internal register known
as PAWU, located in the Data Memory.
PAWU Register
Bit
7
6
5
4
3
2
1
0
Name
PAWU7
PAWU6
PAWU5
PAWU�
PAWU3
PAWU�
PAWU1
PAWU0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
0
0
0
0
0
0
0
0
Bit 7~0
PAWU7~PAWU0
: Port A bit 7~bit 0 wake-up control
0: Disable
1: Enable
I/O Port Control Registers
Each port has its own control register known as PAC, PBC, which control the input/output
configuration. With this control register, each I/O pin with or without pull-high resistors can be
reconfigured dynamically under software control. For the I/O pin to function as an input, the
corresponding bit of the control register must be written as a “1”. This will then allow the logic
state of the input pin to be directly read by instructions. When the corresponding bit of the control
register is written as a “0”, the I/O pin will be set as a CMOS output. If the pin is currently set as an
output, instructions can still be used to read the output register. However, it should be noted that the
program will in fact only read the status of the output data latch and not the actual logic status of the
output pin.
PAC Register
Bit
7
6
5
4
3
2
1
0
Name
PAC7
PAC6
PAC5
PAC�
PAC3
PAC�
PAC1
PAC0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
POR
1
1
1
1
1
1
1
1
Bit 7~0
PAC7~PAC0
: Port A bit 7 ~ bit 0 Input/Output control
0: Output
1: Input