Page 58
5. I/O Ports
5.6 Port P7 (P77 to P70)
TMP86PM29BUG
5.6
Port P7 (P77 to P70)
Port P7 is an 8-bit input/output port which is also used as a segment pins of LCD.
When used as input port, the respective output latch (P7DR) should be set to “1”.
During reset, the P7DR is initialized to “1”.
When used as a segment pins of LCD, the respective bit of P7LCR should be set to “1”. When used as an output
port, the respective P7LCR bit should be set to “0”.
P7 port output latch (P7DR) and P7 port terminal input (P7PRD) are located on their respective address.
When read the output latch data, the P7DR should be read and when read the terminal input data, the P7PRD reg-
ister should be read. If the terminal input data which is configured as LCD segment output is read, unstable data is
read.
Figure 5-7 Port P7
Port P7 control register
P7DR
(0007H)
R/W
7
6
5
4
3
2
1
0
P77
SEG8
P76
SEG9
P75
SEG10
P74
SEG11
P73
SEG12
P72
SEG13
P71
SEG14
P70
SEG15
(Initial value: 1111 1111)
P7LCR
(002BH)
7
6
5
4
3
2
1
0
(Initial value: 0000 0000)
P7LCR
Port P7/segment output control
(set for each bit individually)
0: P7 input/output port
1: Segment output
R/W
P7PRD
(000DH)
Read only
7
6
5
4
3
2
1
0
P77
P76
P75
P74
P73
P72
P71
P70
Summary of Contents for TLCS-870/C Series
Page 1: ...8 Bit Microcontroller TLCS 870 C Series TMP86PM29BUG ...
Page 6: ...TMP86PM29BUG ...
Page 7: ...Revision History Date Revision 2007 10 11 1 First Release 2008 8 29 2 Contents Revised ...
Page 9: ......
Page 15: ...vi ...
Page 19: ...Page 4 1 3 Block Diagram TMP86PM29BUG 1 3 Block Diagram Figure 1 2 Block Diagram ...
Page 23: ...Page 8 1 4 Pin Names and Functions TMP86PM29BUG ...
Page 48: ...Page 33 TMP86PM29BUG ...
Page 49: ...Page 34 2 Operational Description 2 3 Reset Circuit TMP86PM29BUG ...
Page 61: ...Page 46 3 Interrupt Control Circuit 3 8 External Interrupts TMP86PM29BUG ...
Page 81: ...Page 66 6 Watchdog Timer WDT 6 3 Address Trap TMP86PM29BUG ...
Page 135: ...Page 120 10 8 Bit TimerCounter TC5 TC6 10 1 Configuration TMP86PM29BUG ...
Page 145: ...Page 130 11 Asynchronous Serial interface UART 11 9 Status Flag TMP86PM29BUG ...
Page 165: ...Page 150 13 10 bit AD Converter ADC 13 6 Precautions about AD Converter TMP86PM29BUG ...
Page 183: ...Page 168 15 LCD Driver 15 4 Control Method of LCD Driver TMP86PM29BUG ...
Page 201: ...Page 186 18 Electrical Characteristics 18 9 Handling Precaution TMP86PM29BUG ...
Page 203: ...Page 188 19 Package Dimensions TMP86PM29BUG ...
Page 205: ......