75
CHAPTER 4 PORT FUNCTIONS
Preliminary User’s Manual U13420EJ2V0UM00
4.2.2 Port 2
Port 2 is an 8-bit input/output port with output latch. Input mode/output mode can be specified for pins P20 to P27
in 1-bit units with port mode register 2 (PM2). For pins P20 to P27, an on-chip pull-up resistor can be specified in
1-bit units with pull-up resistor option register 2 (PU2).
This port can also be used as the timer input/output.
RESET input sets port 2 to input mode.
Figure 4-3 shows a block diagram of port 2.
Figure 4-3. Block Diagram of P20 to P27
PU: Pull-up resistor option register
PM: Port mode register
RD: Port 2 read signal
WR: Port 2 write signal
RD
P20/TI00/TO0,
P21/TI01,
P22/TI50/TO50,
P23/TI51/TO51,
P24 to P27
P-ch
WR
PU
WR
PORT
WR
PM
PU20 to PU27
Output latch
(P20 to P27)
PM20 to PM27
Selector
V
DD0
Internal bus
Alternate functions
Содержание mPD780065 Series
Страница 2: ...Preliminary User s Manual U13420EJ2V0UM00 2 MEMO ...
Страница 10: ...10 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 22: ...22 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 134: ...134 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 154: ...154 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 160: ...160 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 186: ...186 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 326: ...326 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 342: ...342 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Страница 350: ...350 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...