Page 57
TMP86PM29BUG
Note 1: When used as an
INT0
, ECNT and ECIN pins of a secondary function, the respective bit of P6CR should be set to “0”and
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.
Port P6 control register
P6DR
(0006H)
R/W
7
6
5
4
3
2
1
0
P67
AIN7
STOP5
P66
AIN6
STOP4
P65
AIN5
STOP3
P64
AIN4
STOP2
P63
AIN3
INT0
P62
AIN2
ECNT
P61
AIN1
ECIN
P60
AIN0
(Initial value: 0000 0000)
P6CR
(000CH)
7
6
5
4
3
2
1
0
(Initial value: 0000 0000)
P6CR
I/O control for port P6
(specified for each bit)
AINDS = 1 (AD unused)
AINDS = 0 (AD used)
R/W
P6DR = “0”
P6DR = “1”
P6DR = “0”
P6DR = “1”
0
Input “0” fixed
Input mode
AD input
#1
Input mode
1
Output mode
#1
Do not set output mode to pin which is used for an analog input.
Содержание TLCS-870/C Series
Страница 1: ...8 Bit Microcontroller TLCS 870 C Series TMP86PM29BUG ...
Страница 6: ...TMP86PM29BUG ...
Страница 7: ...Revision History Date Revision 2007 10 11 1 First Release 2008 8 29 2 Contents Revised ...
Страница 9: ......
Страница 15: ...vi ...
Страница 19: ...Page 4 1 3 Block Diagram TMP86PM29BUG 1 3 Block Diagram Figure 1 2 Block Diagram ...
Страница 23: ...Page 8 1 4 Pin Names and Functions TMP86PM29BUG ...
Страница 48: ...Page 33 TMP86PM29BUG ...
Страница 49: ...Page 34 2 Operational Description 2 3 Reset Circuit TMP86PM29BUG ...
Страница 61: ...Page 46 3 Interrupt Control Circuit 3 8 External Interrupts TMP86PM29BUG ...
Страница 81: ...Page 66 6 Watchdog Timer WDT 6 3 Address Trap TMP86PM29BUG ...
Страница 135: ...Page 120 10 8 Bit TimerCounter TC5 TC6 10 1 Configuration TMP86PM29BUG ...
Страница 145: ...Page 130 11 Asynchronous Serial interface UART 11 9 Status Flag TMP86PM29BUG ...
Страница 165: ...Page 150 13 10 bit AD Converter ADC 13 6 Precautions about AD Converter TMP86PM29BUG ...
Страница 183: ...Page 168 15 LCD Driver 15 4 Control Method of LCD Driver TMP86PM29BUG ...
Страница 201: ...Page 186 18 Electrical Characteristics 18 9 Handling Precaution TMP86PM29BUG ...
Страница 203: ...Page 188 19 Package Dimensions TMP86PM29BUG ...
Страница 205: ......