English
Language : 

TMP86FS49BUG Datasheet, PDF (79/294 Pages) Toshiba Semiconductor – 8 Bit Microcontroller
TMP86FS49BUG
P7CR2i
P7CR2i input
P7CR1i
P7CR1i input
Control input
Data input (P7DRi)
DQ
DQ
Data output (P7DRi)
DQ
P7i
STOP
OUTTEN
Analog input
AINDS
SAIN
Note 1: i = 7 to 0
Note 2: STOP is bit7 in SYSCR1.
Note 3: SAIN is AD input select signal.
Figure 5-9 Port 7, P7CR1 and P7CR2
P7DR
(0007H)
R/W
7
P77
AIN15
6
P76
AIN14
5
P75
AIN13
4
P74
AIN12
3
P73
AIN11
2
P72
AIN10
1
P71
AIN9
0
P70
AIN8
(Initial value: 0000 0000)
P7CR1
7
6
5
4
3
2
1
0
(0F9DH)
(Initial value: 0000 0000)
0: Input mode
P7CR1 I/O control for port P7 (Specified for each bit)
R/W
1: Output mode
P7CR2
7
6
5
4
3
2
1
0
(0F9EH)
(Initial value: 1111 1111)
0: Analog input
P7CR2 P7 port input control (Specified for each bit)
R/W
1: Port input
Note 1: The port placed in input mode reads the pin input state. Therefore, when the input and output modes are used together,
the output latch contents for the port in input mode might be changed by executing a bit manipulation instruction.
Note 2: When used as an analog inport, be sure to clear the corresponding bit of P7CR2 to disable the port input.
Note 3: Do not set the output mode (P7CR1 = “1”) for the pin used as an analog input pin.
Note 4: Pins not used for analog input can be used as I/O ports. During AD conversion, output instructions should not be executed
to keep a precision. In addition, a variable signal should not be input to a port adjacent to the analog input during AD con-
version.
Page 63