Rev. 1.40
104
De�e��e� 1�� �01�
Rev. 1.40
10�
De�e��e� 1�� �01�
BS67F340/BS67F350/BS67F360/BS67F370
Enhanced Touch A/D Flash MCU with LCD Driver
BS67F340/BS67F350/BS67F360/BS67F370
Enhanced Touch A/D Flash MCU with 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.
These devices provide bidirectional input/output lines labeled with port names PA~PH. 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.
Register
Name
Bit
7
6
5
4
3
2
1
0
PA
PA7
PA�
PA�
PA4
PA3
PA�
PA1
PA0
PAC
PAC7
PAC�
PAC�
PAC4
PAC3
PAC�
PAC1
PAC0
PAPU
PAPU7
PAPU�
PAPU�
PAPU4
PAPU3
PAPU�
PAPU1
PAPU0
PAWU
PAWU7
PAWU�
PAWU�
PAWU4
PAWU3
PAWU�
PAWU1
PAWU0
PB
PB7
PB�
PB�
PB4
PB3
PB�
PB1
PB0
PBC
PBC7
PBC�
PBC�
PBC4
PBC3
PBC�
PBC1
PBC0
PBPU
PBPU7
PBPU�
PBPU�
PBPU4
PBPU3
PBPU�
PBPU1
PBPU0
PC
—
—
—
—
PC3
PC�
PC1
PC0
PCC
—
—
—
—
PCC3
PCC�
PCC1
PCC0
PCPU
—
—
—
—
PCPU3
PCPU�
PCPU1
PCPU0
PD
—
PD�
PD�
PD4
—
—
—
—
PDC
—
PDC�
PDC�
PDC4
—
—
—
—
PDPU
—
PDPU�
PDPU�
PDPU4
—
—
—
—
PE
PE7
PE�
PE�
PE4
PE3
PE�
PE1
PE0
PEC
PEC7
PEC�
PEC�
PEC4
PEC3
PEC�
PEC1
PEC0
PEPU
PEPU7
PEPU�
PEPU�
PEPU4
PEPU3
PEPU�
PEPU1
PEPU0
I/O Registers List – BS67F340
Register
Name
Bit
7
6
5
4
3
2
1
0
PA
PA7
PA�
PA�
PA4
PA3
PA�
PA1
PA0
PAC
PAC7
PAC�
PAC�
PAC4
PAC3
PAC�
PAC1
PAC0
PAPU
PAPU7
PAPU�
PAPU�
PAPU4
PAPU3
PAPU�
PAPU1
PAPU0
PAWU
PAWU7
PAWU�
PAWU�
PAWU4
PAWU3
PAWU�
PAWU1
PAWU0
PB
PB7
PB�
PB�
PB4
PB3
PB�
PB1
PB0
PBC
PBC7
PBC�
PBC�
PBC4
PBC3
PBC�
PBC1
PBC0
PBPU
PBPU7
PBPU�
PBPU�
PBPU4
PBPU3
PBPU�
PBPU1
PBPU0
PC
PC7
PC�
PC�
PC4
PC3
PC�
PC1
PC0
PCC
PCC7
PCC�
PCC�
PCC4
PCC3
PCC�
PCC1
PCC0
PCPU
PCPU7
PCPU�
PCPU�
PCPU4
PCPU3
PCPU�
PCPU1
PCPU0
PD
—
PD�
PD�
PD4
PD3
PD�
PD1
PD0
PDC
—
PDC�
PDC�
PDC4
PDC3
PDC�
PDC1
PDC0
PDPU
—
PDPU�
PDPU�
PDPU4
PDPU3
PDPU�
PDPU1
PDPU0
PE
PE7
PE�
PE�
PE4
PE3
PE�
PE1
PE0
PEC
PEC7
PEC�
PEC�
PEC4
PEC3
PEC�
PEC1
PEC0
PEPU
PEPU7
PEPU�
PEPU�
PEPU4
PEPU3
PEPU�
PEPU1
PEPU0
I/O Registers List – BS67F350