Toshiba TLCS-870/C Series Manual page 72

8 bit microcontroller
Hide thumbs Also See for TLCS-870/C Series:
Table of Contents

Advertisement

Port P6 control register
7
6
P6DR
P67
P66
(0006H)
AIN7
AIN6
R/W
STOP5
STOP4
7
6
P6CR
(000CH)
I/O control for port P6
P6CR
(specified for each bit)
#1
Do not set output mode to pin which is used for an analog input.
Note 1: When used as an
the P6 should set to "1".
Note 2: When used as an STOP2 to STOP5 pins of Key on Wake up, the respective bit of P6CR should be set to "0".
Note 3: When a read instruction for port P6 is executed, the bit of Analog input mode becomes read data "0".
Note: Although P6DR is a read/writer register, because it is also used as an input mode control function, read-modify-
write instructions such as bit manipulate instructions cannot be used.
Read-modify-write instruction writes the all data of 8-bit after data is read and modified. Because a bit setting Input
mode read data of terminal, the output latch is changed by these instruction. So P6 port can not input data.
5
4
3
P65
P64
P63
AIN5
AIN4
AIN3
STOP3
STOP2
INT0
5
4
3
0
1
, ECNT and ECIN pins of a secondary function, the respective bit of P6CR should be set to "0"and
INT0
Page 57
2
1
0
P62
P61
P60
AIN2
AIN1
AIN0
(Initial value: 0000 0000)
ECNT
ECIN
2
1
0
(Initial value: 0000 0000)
AINDS = 1 (AD unused)
P6DR = "0"
P6DR = "1"
Input "0" fixed
Input mode
Output mode
TMP86PM29BUG
AINDS = 0 (AD used)
P6DR = "0"
P6DR = "1"
R/W
#1
Input mode
AD input

Advertisement

Table of Contents
loading

Table of Contents