Toshiba TLCS-900/H1 Series Data Book page 66

32bit micro controller
Hide thumbs Also See for TLCS-900/H1 Series:
Table of Contents

Advertisement

3.5.2 Port 2 (P20 to P27)
Port2 is an 8-bit general-purpose I/O port. Bits can be individually set as either inputs or outputs by control
register P2CR and function register P2FC.
In addition to functioning as a general-purpose I/O port, port2 can also function either as a data bus
(D16 to D23) or key-board interface pin KO0 to KO7 which can set to open drain output buffer.
External write strobe
External write data
Port read data
External read data
External read strobe
SYMBOL
NAME
P2
PORT2
PORT2
P2CR
Control
Register
PORT2
P2FC
Function
Register
PORT2
P2FC2
Function
Register2
PORT2
P2DR
Drive
Register
AM1
AM0
0
0
0
1
1
0
1
1
P2CR register
P2FC register
P2 register
Selector
Table 3.5.4 Port2 Registers
Address
7
P27
0008H
0
P27C
P26C
000AH
0
-
000BH
P27F2
P26F2
0009H
P27D
P26D
0082H
Function Setting after reset is released
Don't use this setting
Input port
Data Bus (D16 to D23)
Input port
S
1
0
Figure 3.5.2 Port2
6
5
4
P26
P25
P24
0
0
0
Input/Output
P25C
P24C
0
0
0
0:Input
-
-
-
0:PORT 1:Data Bus(D16 to D23)
P25F2
P24F2
0:CMOS output, 1:Open drain output
P25D
P24D
Output/Input buffer drive-register for standby-mode
92CH21 - 62
P2FC2 register
S
0
Open drain
1
Selector
enable
3
2
P23
P22
R/W
0
0
P23C
P22C
W
0
0
1:Output
-
-
P23F2
P22F2
W
0
P23D
P22D
R/W
1
TMP92CH21
P20 to P27
(D16 to D23,
KO0 to KO7)
1
0
P21
P20
0
0
P21C
P20C
0
0
-
P2F
W
0/1
P21F2
P20F2
P21D
P20D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tmp92ch21fg

Table of Contents