TMP86xy46NG Toshiba, TMP86xy46NG Datasheet - Page 63

no-image

TMP86xy46NG

Manufacturer Part Number
TMP86xy46NG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMP86xy46NG

Package
SDIP42
Rom Types (m=mask,p=otp,f=flash)
M/P/F
Rom Size
8/16/32
Ram Size
512/512/1K
Driver Led
19
Driver Lcd
-
Spi/sio Channels
1
Uart/sio Channels
1
I2c/sio Channels
-
High-speed Serial Output
-
Adc 8-bit Channels
-
Adc 10-bit Channels
8
Da Converter Channels
-
Timer Counter 18-bit Channel
-
Timer Counter 16-bit Channel
1
Timer Counter 8-bit Channel
2
Motor Channels
-
Watchdog Timer
Y
Dual Clock
Y
Clock Gear
-
Number Of I/o Ports
33
Power Supply (v)
4.5 to 5.5
5.5 Port P4 (P47 to P40)
5. I/O Ports
5.5 Port P4 (P47 to P40)
(0004H)
(000FH)
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 corresponding
P4CR bit is set to “1”.
“0”.
regardless of P4CR contents, therefore initial output data should be written into the output latch before setting P4CR.
P4DR
P4CR
R/W
Port P4 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 P4CR is initialized to “0” and port P4 is input mode. The P4 output latches are also initialized to
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 latch
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 P4 together, the contents of the output latch which is specified as an input mode may be rewritten by
executing the bit manipulation instructions.
Data input (P4DR)
P47
P4CR
7
7
P4CRi input
Data output
OUTEN
P4CRi
STOP
P46
6
6
I/O control for port P4
(Specified for each bit)
P45
5
5
Output latch
D
D
P44
4
4
Q
Q
Figure 5-6 Port P4
P43
3
3
0: Input mode
1: Output mode
Page 52
P42
2
2
P41
1
1
P40
0
0
(Initial value: 0000 0000)
(Initial value: 0000 0000)
P4i
Note: i = 7
to
TMP86PM46NG
0
R/W

Related parts for TMP86xy46NG