149
CHAPTER 6 PORT FUNCTIONS
P-ch
WR
PM
WR
PORT
RD
WR
PUO
V
DD
Selector
PUO13
Output Latch
(P130 and P131)
PM130, PM131
Internal bus
P130/ANO0,
P131/ANO1
6.2.11 Port 13
This is a 2-bit input/output port with output latches. Input mode/output mode can be specified bit-wise by means
of port mode register 13 (PM13). When pins P130 and P131 are used as input port pins, an on-chip pull-up resistor
can be used as a 2-bit unit by means of pull-up resistor option register H (PUOH).
Alternate function includes D/A converter analog output.
RESET input sets the input mode.
Figure 6-18 shows a block diagram of port 13.
Caution When only either one of the D/A converter channels is used with AV
REF1
< V
DD
, the other pins
that are not used as analog outputs must be set as follows:
•
Set PM13. bit of the port mode register 13 (PM13) to 1 (input mode) and connect the pin
to V
SS
.
•
Set PM13x bit of the port mode register 13 (PM13) to 0 (output mode) and the output latch
to 0, to output low level from the pin.
Figure 6-18. P130 and P131 Block Diagram
PUO : Pull-up resistor option register
PM
: Port mode register
RD
: Port 13 read signal
WR : Port 13 write signal
Содержание PD78052
Страница 2: ...2 MEMO ...
Страница 8: ...8 MEMO ...
Страница 16: ...16 MEMO ...
Страница 36: ...36 MEMO ...
Страница 158: ...158 MEMO ...
Страница 174: ...174 MEMO ...
Страница 240: ...240 MEMO ...
Страница 260: ...260 MEMO ...
Страница 340: ...340 MEMO ...
Страница 392: ...392 MEMO ...
Страница 438: ...438 MEMO ...
Страница 482: ...482 CHAPTER 20 REAL TIME OUTPUT PORT MEMO ...
Страница 510: ...510 MEMO ...
Страница 524: ...524 MEMO ...
Страница 560: ...560 MEMO ...
Страница 576: ...576 MEMO ...
Страница 598: ...598 MEMO ...
Страница 602: ...602 MEMO ...