Port 4; Block Diagram Of P40 To P47 - NEC switch User Manual

Nec user's manua switch
Table of Contents

Advertisement

4.2.4 Port 4

This is an 8-bit I/O port with an output latch. Port 4 can be specified in the input or output mode in 1-bit units by
using port mode register 4 (PM4). When using P40 to P47 pins as input port pins, on-chip pull-up resistors can be
connected in 8-bit units by using pull-up resistor option register 0 (PU0).
The port is also used as a key return input.
This port is set in the input mode when the RESET signal is input.
Figure 4-10 shows a block diagram of port 4.
Caution
When using the pins of port 4 as the key return, key return mode register 00 (KRM00) must be
set according to the function to be used. For how to set the register, see Section 11.3 (5) Key
return mode register 00 (KRM00).
WR
PU0
RD
WR
KRM
WR
PORT
(P40 to P47)
WR
PM
PM40 to PM47
KRM00:
Key return mode register 00
PU0:
Pull-up resistor option register 0
PM:
Port mode register
RD:
Port 4 read signal
WR:
Port 4 write signal
68
CHAPTER 4
Figure 4-10. Block Diagram of P40 to P47
PU04
KRM000 to
KRM007
Output latch
Alternate
function
User's Manual U12978EJ3V0UD
PORT FUNCTIONS
V
DD0
P-ch
P40/KR00 to
P47/KR07

Advertisement

Table of Contents
loading

Table of Contents