tmp86c847iug TOSHIBA Semiconductor CORPORATION, tmp86c847iug Datasheet - Page 57

no-image

tmp86c847iug

Manufacturer Part Number
tmp86c847iug
Description
8 Bit Microcontroller
Manufacturer
TOSHIBA Semiconductor CORPORATION
Datasheet
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 input
P1CRi input
Data output
Data input
P16
6
6
I/O port for P1 port
(specified for each bit)
P1CRi
UTEN
ST P
INT3
P15
5
5
utput latch
utput latch
D
D
P14
PPG
4
4
Q
Q
Figure 5-3 Port P1
DVO
P13
0: Input mode
1: Output mode
3
3
Page 49
INT2
P12
TC1
2
2
INT1
P11
1
1
PWM3
PDO3
TC3
P10
0
0
(Initial value: 0000 0000)
(Initial value: 0000 0000)
Note: i = 7
P1i
to
0
TMP86C847IUG
R/W

Related parts for tmp86c847iug