Page 52
5. I/O Ports
5.1 Port P1 (P17 to P10)
TMP86PM29BUG
5.1
Port P1 (P17 to P10)
Port P1 is an 8-bit input/output port which is also used as an external interrupt input, serial interface input/output,
UART input/output and segment output of LCD. When used as a segment pins of LCD, the respective bit of P1LCR
should be set to “1”.
When used as an input port or a secondary function (except for segment) pins, the respective output latch (P1DR)
should be set to “1” and its corresponding P1LCR bit should be set to “0”. When used as an output port, the respec-
tive P1LCR bit should be set to “0”. During reset, the output latch is initialized to “1”.
P1 port output latch (P1DR) and P1 port terminal input (P1PRD) are located on their respective address.
When read the output latch data, the P1DR should be read and when read the terminal input data, the P1PRD 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-2 Port P1
Port P1 control register
P1DR
(0001H)
R/W
7
6
5
4
3
2
1
0
P17
SEG24
SCK
P16
SEG25
TxD
SO
P15
SEG26
RxD
SI
P14
SEG27
INT3
P13
SEG28
INT2
P12
SEG29
INT1
P11
SEG30
P10
SEG31
(Initial value: 1111 1111)
P1LCR
(0029H)
7
6
5
4
3
2
1
0
(Initial value: 0000 0000)
P1LCR
Port P1/segment output control
(set for each bit individually)
0: P1 input/output port or secondary function (expect for segment)
1: Segment output
R/W
P1PRD
(0008H)
Read only
7
6
5
4
3
2
1
0
P17
P16
P15
P14
P13
P12
P11
P10
! "
! "
Содержание 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: ......