tmp86fh46bng TOSHIBA Semiconductor CORPORATION, tmp86fh46bng Datasheet - Page 82

no-image

tmp86fh46bng

Manufacturer Part Number
tmp86fh46bng
Description
8 Bit Microcontroller Tlcs-870/c Series
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
TMP86FH46BNG
Manufacturer:
TOSHIBA/东芝
Quantity:
20 000
7.5
Port P4 (P47 to P40)
7.5
(000FH)
(0004H)
ware control. Input/output mode is specified by the corresponding bit in the port P4 input/output control register
(P4CR). Port P4 is configured as an input if its corresponding P4CR bit is cleared to “0”, and as an output if its cor-
responding P4CR bit is set to “1”.
ized to “0”.
latch regardless of P4CR contents, therefore initial output data should be written into the output latch before set-
ting P4CR.
P4DR
P4CR
R/W
Port P4 (P47 to P40)
Port P4 is an 8-bit input/output port which can be configured as an input or an output in one-bit unit under soft-
During reset, the P4CR is initialized to “0” and port P4 is input mode. The P4 output latches are also initial-
When used as an input port, the corresponding bit of P4CR is cleared to “0”.
When used as an output port, the corresponding bit of P4CR is set to “1”. Data can be written into the output
Note:Ports set to the input mode read the pin states. Ports set to the output mode read the output latch. When in-
Note:Ports set to the input mode read the pin states. Ports set to the output mode read the output latch. When in-
put pin and output pin exist in port P3 together, the contents of the output latch which is specified as an in-
put mode may be rewritten by executing the bit manipulation instructions.
put pin and output pin exist in port P4 together, the contents of the output latch which is specified as an in-
put mode may be rewritten by executing the bit manipulation instructions.
P47
Data input (P4DR)
P4CR
7
7
P4CRi input
Data output
P46
OUTEN
6
6
I/O control for port P4
(Specified for each bit)
P4CRi
STOP
P45
5
5
Output latch
D
D
P44
4
4
Q
Q
Figure 7-6 Port P4
P43
0: Input mode
1: Output mode
3
3
Page 64
P42
2
2
P41
1
1
P40
0
0
(Initial value: 0000 0000)
(Initial value: 0000 0000)
P4i
Note: i = 7
TMP86FH46BNG
to
0
R/W

Related parts for tmp86fh46bng