Port 2; Block Diagram Of P20 - NEC PD789488 User Manual

Pd789489 subseries 8-bit single-chip microcontrollers
Table of Contents

Advertisement

4.2.3 Port 2

This is a 6-bit I/O port with an output latch. Port 2 can be specified in the input or output mode in 1-bit units by
using port mode register 2 (PM2). When using the P20 to P25 pins as input port pins, on-chip pull-up resistors can be
connected in 1-bit units by using pull-up resistor option register B2 (PUB2).
This port is also used for serial interface I/O.
RESET input sets this port to input mode.
Figures 4-4 to 4-8 show block diagrams of port 2.
Caution When using the pins of port 2 as the serial interface, the I/O or output latch must be set
according to the function to be used. For how to set the latches, see Table 11-2 Serial Interface
20 Operation Mode Settings and 12.3 (1) Serial operation mode register 1A0 (CSIM1A0).
WR
PUB2
RD
WR
PORT
WR
PM
PUB2:
Pull-up resistor option register B2
PM:
Port mode register
RD:
Port 2 read signal
WR:
Port 2 write signal
CHAPTER 4 PORT FUNCTIONS
Figure 4-4. Block Diagram of P20
PUB20
Alternate
function
Output latch
(P20)
PM20
Alternate
function
User's Manual U15331EJ4V1UD
V
DD
P-ch
P20/ASCK20/
SCK20
79

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd78f9488Pd78f9489Pd789489

Table of Contents