tmp88ps42ng TOSHIBA Semiconductor CORPORATION, tmp88ps42ng Datasheet - Page 60

no-image

tmp88ps42ng

Manufacturer Part Number
tmp88ps42ng
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
5. Input/Output Ports
5.6 Port P5 (P57 to P50)
P5 Port Input/Output Registers
(01F8BH)
(00005H)
(01F85H)
P5ODE
output control register (P5CR). When reset, the P5CR register is initialized to 0, with the P5 port set for input mode.
Also, the output latch (P5DR) is initialized to 0 when reset.
is used to select open-drain or tri-state mode for the port. When reset, the P5ODE register is initialized to 0, with tri-
state mode selected for the port.
P5DR
P5CR
Port P5 is an 8-bit input/output port. This port is switched between input and output modes using the P5 port input/
The P5 port contains bitwise programmable open-drain control. The P5 port open-drain control register (P5ODE)
Note 1: Even when open-drain mode is selected, the protective diode remains connected. Therefore, do not apply voltages
Note 2: Read-modify-write (RMW) operation executes at open-drain mode is selected, read out the output latch states.
Note 3: For PMD circuit output, set the P5DR output latch to 1.
Note 4: When using P5 port as an input/output port, disable the EMG2 circuit.
Control output
Control input
exceeding V
When any other instruction is executed, external pin states is read out.
Data output
P57
P5ODE
Data input
Z2
P5CR
7
7
7
P5CRi
P56
Y2
DD
6
6
6
P5 port input/output control
(Specify bitwise)
P5 port open-drain control
(Specify bitwise)
.
P55
X2
5
5
5
utput latch
D
P54
W2
Q
4
4
4
Figure 5-7 Port P5
P53
V2
0: Input mode
1: Output mode
0: Tri-state
1: Open drain
3
3
3
Page 50
P52
U2
2
2
2
EMG2
P51
1
1
1
Note: i = 7
P50
CL2
0
0
0
P5i
Read/Write
(Initial value: 0000 0000)
(Initial value: 0000 0000)
(Initial value: 0000 0000)
to
External
0
input
Control input
0
1
0
0 0
1 0
value
CR
1
TMP88PS42NG
R/W
R/W

Related parts for tmp88ps42ng