Port 2 ( Pd78054Y Subseries); P20, P21, P23 To P26 Block Diagram - NEC PD78052 User Manual

Pd78054 series; pd78054y series 8-bit single-chip microcontrollers
Table of Contents

Advertisement

6.2.4 Port 2 ( PD78054Y Subseries)

Port 2 is an 8-bit input/output port with output latch. P20 to P27 pins can specify the input mode/output mode in
1-bit units with the port mode register 2 (PM2). When P20 to P27 pins are used as input ports, an on-chip pull-up
resistor can be used to them in 8-bit units with a pull-up resistor option register L (PUOL).
Alternate functions include serial interface data input/output, clock input/output, automatic transmit/receive busy
input, and strobe output.
RESET input sets port 2 to input mode.
Figures 6-7 and 6-8 show block diagrams of port 2.
Caution When used as a serial interface, set the input/output and output latch according to its functions.
For the setting method, refer to Figure 17-4 Serial Operating Mode Register 0 Format and Figure
18-3 Serial Operating Mode Register 1 Format.
WR
PUO
PUO2
RD
WR
PORT
Output Latch
(P20, P21, P23 to P26)
WR
PM
PM20, PM21
PM23 to PM26
Alternate Function
PUO : Pull-up resistor option register
PM : Port mode register
RD
: Port 2 read signal
WR : Port 2 write signal
CHAPTER 6 PORT FUNCTIONS
Figure 6-7. P20, P21, P23 to P26 Block Diagram
Selector
V
DD
P-ch
P20/SI1,
P21/SO1,
P23/STB,
P24/BUSY,
P25/SI0/SB0/SDA0,
P26/SO0/SB1/SDA1
139

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents