tmp88ps42ng TOSHIBA Semiconductor CORPORATION, tmp88ps42ng Datasheet - Page 59

no-image

tmp88ps42ng

Manufacturer Part Number
tmp88ps42ng
Description
8 Bit Microcontroller Tlcs-870/x Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
5.5 Port P4 (P47 to P40)
P4 Port Input/Output Registers
(01F8AH)
(00004H)
(01F84H)
P4ODE
and output modes using the P4 port input/output control register (P4CR). When reset, the P4CR register is initialized
to 0, with the P4 port set for input mode. Also, the output latch (P4DR) is initialized to 0 when reset.
is used to select open-drain or tri-state mode for the port. When reset, the P4ODE register is initialized to 0, with tri-
state mode selected for the port.
P4DR
P4CR
Port P4 is an 8-bit input/output port shared with serial interface input/output. This port is switched between input
The P4 port contains bitwise programmable open-drain control. The P4 port open-drain control register (P4ODE)
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: When using the 16-bit timer (CTC) as an ordinary timer, set P47 (CTC) for output mode.
Control output
Control input
exceeding V
When any other instruction is executed, external pin states is read out.
Data output
CTC
P47
Data input
P4ODE
P4CR
7
7
7
P4CRi
PPG2
P46
DD
6
6
6
P4 port input/output control
(Specify bitwise)
P4 port open-drain control
(Specify bitwise)
.
TXD1
P45
SO
5
5
5
utput latch
D
RXD1
P44
Q
SI
4
4
4
Figure 5-6 Port P4
P43
SCK
0: Input mode
1: Output mode
0: Tri-state
1: Open drain
3
3
3
Page 49
PDU1
P42
2
2
2
PDV1
P41
1
1
1
Note: i = 7
PDW1
P40
0
0
0
P4i
(Initial value: 0000 0000)
(Initial value: 0000 0000)
(Initial value: 0000 0000)
to
External
0
input
Control input
0
1
values
0
0 0
1 0
CR
1
TMP88PS42NG
R/W
R/W

Related parts for tmp88ps42ng