tmp89ch42 TOSHIBA Semiconductor CORPORATION, tmp89ch42 Datasheet - Page 120

no-image

tmp89ch42

Manufacturer Part Number
tmp89ch42
Description
8 Bit Microcontroller Tlcs-870/c1 Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
8.3
I/O Port Registers
RA007
Port P2 function control
Port P2 output control
Port P2 built-in pull-up resistor control
Port P2 input data
P2OUTCR
(0x0F36)
(0x0F43)
(0x0F29)
(0x000F)
P2PRD
P2PU
P2FC
Note 1: * : Don’t care
Note 2: i = 0 to 2, 5 to 7
Function
Function
Function
Read/Write
Read/Write
Read/Write
Read/Write
Bit Symbol
Bit Symbol
Bit Symbol
Bit Symbol
After reset
After reset
After reset
After reset
Function
0:
1:
0:
1:
0:
1:
C-MOS output
Open drain output
The built-in pull-up resistor is not connec-
ted.
The built-in pull-up resistor is connected.
(The resistor is connected only when the
port is used in the input mode or as the
open drain output. Under any other condi-
tions, setting to "1" does not make the
resistor connected.)
If the port is used in the input mode or as
the open drain output, the contents of the
port are read. If not, "0" is read.
P2OUT7
P2PRD7
P2PU7
R/W
R/W
R
R
7
0
7
0
7
0
7
-
*
Table 8-9 P2PRD Read Value (P20 to P22, P25 to P27)
P2CRi
0
1
1
P2OUT6
P2PRD6
Set condition
P2PU6
R/W
R/W
R
R
6
0
6
0
6
0
6
-
*
P2OUTCRi
Port function
*
0
1
SCLK0 (O)
P2OUT5
P2PRD5
P2FC5
P2PU5
R/W
R/W
R/W
R
5
0
5
0
5
0
5
Page 106
*
The contents of the port are
read without condition.
SCL0 (I/O)
P2PRD4
P2PRDi read value
P2FC4
Contents of port
Contents of port
R/W
R
R
R
4
0
4
0
4
0
4
-
-
*
"0"
SDA0 (I/O)
P2PRD3
SO0 (O)
P2FC3
R/W
R
R
R
3
0
3
0
3
0
3
-
-
*
C-MOS output
Open drain output
The built-in pull-up resistor is not connec-
ted.
The built-in pull-up resistor is connected.
(The resistor is connected only when the
port is used in the input mode or as the
open drain output. Under any other condi-
tions, setting to "1" does not make the
resistor connected.)
If the port is used in the input mode or as
the open drain output, the contents of the
port are read. If not, "0" is read.
SCLK0 (O)
P2OUT2
P2PRD2
P2PU2
P2FC2
R/W
R/W
R/W
R
2
0
2
0
2
0
2
*
TXD0 (O)
P2OUT1
P2PRD1
P2FC1
P2PU1
R/W
R/W
R/W
R
1
0
1
0
1
0
1
*
TMP89CH42
TXD0 (O)
P2OUT0
P2PRD0
SO0 (O)
P2FC0
P2PU0
R/W
R/W
R/W
R
0
0
0
0
0
0
0
*

Related parts for tmp89ch42