tmp86ch47ug TOSHIBA Semiconductor CORPORATION, tmp86ch47ug Datasheet - Page 59

no-image

tmp86ch47ug

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

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
tmp86ch47ug-5JP0
Manufacturer:
TOSH
Quantity:
2 478
Part Number:
tmp86ch47ug-5JP0
Manufacturer:
TOSH
Quantity:
1 000
5.2 Port P1 (P17 to P10)
(000DH)
(0001H)
control. Input/output mode is specified by the corresponding bit in the port P1 input/output control register (P1CR).
Port P1 is configured as an input if its corresponding P1CR bit is cleared to “0”, and as an output if its corresponding
P1CR bit is set to “1”.
“0”.
an input port, an external interrupt input or a timer/counter input, the corresponding bit of P1CR is cleared to “0”.
and beforehand the corresponding output latch should be set to “1”. Data can be written into the output latch regard-
less of P1CR contents, therefore initial output data should be written into the output latch before setting P1CR.
P1DR
P1CR
R/W
Port P1 is an 8-bit input/output port which can be configured as an input or an output in one-bit unit under software
During reset, the P1CR is initialized to “0” and port P1 is input mode. The P1 output latches are also initialized to
Port P1 is also used as an external interrupt input, a timer/counter input/output, and a divider output. When used as
When used as an output port, a timer/counter output or divider output, the corresponding bit of P1CR is set to “1”
Note: Ports set to the input mode read the pin states. Ports set to the output mode read the output latch. When input pin and out-
put pin exist in port P1 together, the contents of the output latch which is specified as an input mode may be rewritten by
executing the bit manipulation instructions.
P17
P1CR
7
7
Control output
Control output
Control input
Control input
P1CRi input
P1CRj input
Data output
Data output
Data input
Data input
OUTEN
OUTEN
P1CRi
P1CRj
P16
STOP
STOP
6
6
I/O port for P1 port
(specified for each bit)
INT3
P15
5
5
Output latch
Output latch
Output latch
Output latch
D
D
D
D
a) P17
b) P15, P12
P14
PPG
Q
Q
Q
Q
4
4
to
Figure 5-3 Port P1
16, P14
to
DVO
P13
10
0: Input mode
1: Output mode
3
3
to
Page 49
13
INT2
P12
2
2
INT1
P11
1
1
PWM3
PDO3
TC3
P10
0
0
P1i
Note: i = 7
P1j
Note: j = 5, 2
(Initial value: 0000 0000)
(Initial value: 0000 0000)
to 6, 4 to 3
to
0
TMP86C845UG
R/W

Related parts for tmp86ch47ug