Rev. 1.20
64
�an�a�� 2�� 201�
Rev. 1.20
6�
�an�a�� 2�� 201�
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
BS82B12A-3/BS82C16A-3/BS82D20A-3
Touch Key 8-Bit Flash MCU with LED/LCD Driver
Input/Output Ports
Holtek microcontrollers offer considerable flexibility on their I/O ports. With the input or output
designation of every pin fully under user program control, pull-high selections for all ports and
wake-up selections on certain pins, the user is provided with an I/O structure to meet the needs of a
wide range of application possibilities.
The devices provide bidirectional input/output lines labeled with port names PA ~ PD. These I/O
ports are mapped to the RAM Data Memory with specific addresses as shown in the Special Purpose
Data Memory table. All of these I/O ports can be used for input and output operations. For input
operation, these ports are non-latching, which means the inputs must be ready at the T2 rising edge
of instruction "MOV A, [m]", where m denotes the port address. For output operation, all the data is
latched and remains unchanged until the output latch is rewritten.
I/O Register List
Device
Register
Name
Bit
7
6
5
4
3
2
1
0
BS82B12A-�
BS82C16A-�
BS82D20A-�
PAWU
PAWU7
—
—
PAWU4 PAWU� PAWU2 PAWU1 PAWU0
PAPU
PAPU7
—
—
PAPU4 PAPU� PAPU2 PAPU1 PAPU0
PA
PA7
—
—
PA4
PA�
PA2
PA1
PA0
PAC
PAC7
—
—
PAC4
PAC�
PAC2
PAC1
PAC0
PBPU
PBPU7 PBPU6 PBPU� PBPU4 PBPU� PBPU2 PBPU1 PBPU0
PB
PB7
PB6
PB�
PB4
PB�
PB2
PB1
PB0
PBC
PBC7
PBC6
PBC�
PBC4
PBC�
PBC2
PBC1
PBC0
PCPU
PCPU7 PCPU6 PCPU� PCPU4 PCPU� PCPU2 PCPU1 PCPU0
PC
PC7
PC6
PC�
PC4
PC�
PC2
PC1
PC0
PCC
PCC7
PCC6
PCC�
PCC4
PCC�
PCC2
PCC1
PCC0
BS82C16A-�
BS82D20A-�
PDPU
—
—
—
—
PDPU� PDPU2 PDPU1 PDPU0
PD
—
—
—
—
PD�
PD2
PD1
PD0
PDC
—
—
—
—
PDC�
PDC2
PDC1
PDC0
PAWUn
: PA wake-up function control
0: Disable
1: Enable
PAn/PBn/PCn/PDn
: I/O Data bit
0: Data 0
1: Data 1
PACn/PBCn/PCCn/PDCn
: I/O Type selection
0: Output
1: Input
PAPUn/PBPUn/PCPUn/PDPUn
: I/O Pull-high function control
0: Disable
1: Enable
Содержание BS82B12A-3
Страница 33: ...Rev 1 20 33 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 34: ...Rev 1 20 34 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...
Страница 35: ...Rev 1 20 35 January 23 2015 BS82B12A 3 BS82C16A 3 BS82D20A 3 Touch Key 8 Bit Flash MCU with LED LCD Driver ...