Rev. 1.10
84
October 23, 2020
Rev. 1.10
85
October 23, 2020
BC66F5652
2.4GHz RF Transceiver A/D Flash MCU
BC66F5652
2.4GHz RF Transceiver A/D 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~PDC, 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 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.
• 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 or D.
However, the actual available bits for each I/O Port may be different.
Note that the PC3~PC6 lines are not connected to the external pins and the IRQ is pin-shared
with PA1, it is recommended that the corresponding PxCn bit should be properly configured
to implement correct connection and RF function control after power on. Refer to the “Pin-
shared Functions” section for more details.
I/O Port Source Current Control
The device supports different output source current driving capability for each I/O port. With the
selection register, SLEDCn, specific I/O port can support four levels of the source current driving
capability. These source current selection bits are available when the corresponding pin is configured
as a CMOS output. Otherwise, these select bits have no effect. Users should refer to the Input/Output
Characteristics section to select the desired output 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
D3
D2
SLEDC11 SLEDC10
I/O Port Source Current Control Registers List