Rev. 1.00
66
September 11, 2018
Rev. 1.00
67
September 11, 2018
HT45F4050
A/D NFC Flash MCU
HT45F4050
A/D NFC Flash MCU
• PAWU Register
Bit
7
6
5
4
3
2
1
0
Name
PAWU7
PAWU6
PAWU5
PAWU4
PAWU3
PAWU2
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
: PA7~PA0 wake-up function control
0: Disable
1: Enable
I/O Port Control Registers
Each I/O port has its own control register known as PAC~PFC, 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
7
6
5
4
3
2
1
0
Name
PxC7
PxC6
PxC5
PxC4
PxC3
PxC2
PxC1
PxC0
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
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, C, D, E and F.
However, the actual available bits for each I/O Port may be different.
I/O Port Source Current Control
The device supports different source current driving capability for each I/O port. With the
corresponding selection registers, SLEDCn, specific I/O port can support four levels of the source
current driving capability.
U
sers should refer to the D.C. characteristics section to select the desired
source current for different applications.
Register
Name
Bit
7
6
5
4
3
2
1
0
SLEDC0 SLEDC07 SLEDC06 SLEDC05 SLEDC04 SLEDC03 SLEDC02 SLEDC01 SLEDC00
SLEDC1
—
—
SLEDC15 SLEDC14 SLEDC13 SLEDC12 SLEDC11 SLEDC10
SLEDC2 SLEDC27 SLEDC26 SLEDC25 SLEDC24 SLEDC23 SLEDC22 SLEDC21 SLEDC20
I/O Port Source Current Control Registers List