![](http://datasheet.mmic.net.cn/360000/TMP96C031F_datasheet_16672905/TMP96C031F_23.png)
TOSHIBA CORPORATION
23
TMP96C031N/F
Table 3.5 (1) Port Function
Port Name
Pin Name
Number of
Pins
Direction
R
Direction Setting Unit
Pin Name for Built-in Function
Port2
Port3
P20 to P27
P30
P31
P32
P33
P34
P35
P40
P41
P42
P43
P50 to P53
P60
P61
P62
P63
P64
P65
P66
P67
P70
P71
P72
P73
P74
P75
P76
8
1
1
1
1
1
1
1
1
1
1
4
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Output
Output
Output
Output
Input
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
Input/Output
↓
↑
↑
↑
↑
↑
↑
↑
↑
↑
↑
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
–
Bit
Bit
Bit
Bit
Bit
Bit
Bit
A0 to A7/ A16 to A23
TO5/HWR
TI0/WAIT
BUSRQ
BUSAK
R/W/RAS
RAS/INT7
CS0
CS1
CS2
CS3/CAS
AN0 ~ AN3
PG00/TxD0
PG01/RxD0
PG02/CTS0
PG03/RSFH
PG10
PG11
PG12/INT6
PG13/WDTOUT
TO1/TO4
TO2/DMUX
INT4/TI4
INT5/TI5
TxD1
RxD1
SCLK1
Port4
(Fixed)
(Fixed)
(Fixed)
(Fixed)
(Fixed)
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Bit
Port5
Port6
Port7
3.5.1 Programmable Pull-up/Pull-down
PORT2 has a built-in pull-down resistor and PORT3 and
PORT4 have a built-in pull-up resistor. Normally, their load can
be turned on or off from software by setting the value of the
output latch (registers P2, P3, and P4) during input mode.
They can also be set in stand-by (STOP) mode and the load
can be turned on or off when the immediately preceding set-
ting is the value of output latch in input mode or is the value of
output data in output mode.
Table 3.5 (2) Pull-up/down Function Setting
Programmable
Pull-up/down
Setting
Output latch
Output data
ON/OFF
Normal
Standby (STOP) mode
PORT2 (I/O)
Pull-down
0
1
0
1
0
1
ON
OFF
ON
OFF
ON
OFF
Setting enabled only in
input mode
Setting enabled in input/
output mode
PORT3 (I/O)
Pull-up
↑
↑
PORT4 (Output)
Pull-up
Setting disabled
Setting enabled only in
output mode
(R:
↑
= With programmable pull-up resistor
↓
= WIth programmable pull-down resistor)
3.5 Port Functions
The input/output ports of the TMP96C031F consist of a total
of 37 bits.
In addition to general purpose input/output port func-
tions, these port pins also function as input/outputs for internal
CPU and built-in I/O. Table 3.5 (1) shows the function of each
port pin.