English
Language : 

BH66F5233 Datasheet, PDF (55/137 Pages) Holtek Semiconductor Inc – 24-Bit Delta Sigma A/D MCU
BH66F5233
24-Bit Delta Sigma A/D MCU
Port A Wake-up
The HALT instruction forces the microcontroller into the SLEEP or IDLE Mode which preserves
power, 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 Port
A pins from high to low. This function is especially suitable for applications that can be woken up
via external switches. Each pin on Port A can be selected individually to have this wake-up feature
using the PAWU register.
Note that the wake-up function can be controlled by the wake-up control registers only when the
pin-shared functional pin is selected as general purpose input/output and the MCU enters the Power
down mode.
PAWU Register
Bit
Name
R/W
POR
7
PAWU7
R/W
0
6
PAWU6
R/W
0
5
PAWU5
R/W
0
4
PAWU4
R/W
0
3
PAWU3
R/W
0
2
PAWU2
R/W
0
Bit 7~0
PAWU7~PAWU0: PA7~PA0 wake-up function control
0: Disable
1: Enable
1
PAWU1
R/W
0
0
PAWU0
R/W
0
I/O Port Control Registers
Each I/O port has its own control register known as PAC~PCC, to control the input/output
configuration. With this control register, each CMOS output or input can be reconfigured
dynamically under software control. Each pin of the I/O ports is directly mapped to a bit in its
associated port control register. 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 setup as a CMOS output. If the pin is currently setup 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.
PxC Register
Bit
Name
R/W
POR
7
PxC7
R/W
1
6
PxC6
R/W
1
5
PxC5
R/W
1
4
PxC4
R/W
1
3
PxC3
R/W
1
2
PxC2
R/W
1
1
PxC1
R/W
1
0
PxC0
R/W
1
PxCn:I/O Port x Pin type selection
0: Output
1: Input
The PxCn bit is used to control the pin type selection. Here the "x"can be A, B, and C. However, the
actual available bits for each I/O Port may be different.
Rev. 1.00
55
June 30, 2016