CHAPTER 4 PORT FUNCTIONS
User’s Manual U17446EJ3V1UD
57
Also, since the option byte is referenced after the reset release, if low level is input to the RESET
pin before the referencing, then the reset state is not released. When it is used as an input port
pin, connect the pull-up resistor.
4.2.4 Port
4
Port 4 is an 8-bit I/O port with an output latch. Each bit of this port can be set to the input or output mode by using
port mode register 4 (PM4). When the P40 to P47 pins are used as an input port, an on-chip pull-up resistor can be
connected in 1-bit units by using pull-up resistor option register 4 (PU4).
The P41 to P44 pins can also be used for external interrupt request input, serial interface data I/O, and timer
output.
Generation of reset signal sets port 4 to the input mode.
Figures 4-8 to 4-11 show the block diagrams of port 4.
Figure 4-8. Block Diagram of P40, P45 to P47
P40, P45 to P47
WR
PU
RD
WR
PORT
WR
PM
PU40,
PU45 to PU47
Output latch
(P40, P45 to P47)
PM40,
PM45 to PM47
V
DD
P-ch
PU4
PM4
Internal bus
Selector
P4
PU4:
Pull-up resistor option register 4
P4:
Port register 4
PM4:
Port mode register 4
RD:
Read signal
WR
××
: Write signal
Содержание 78K0S/KB1+
Страница 2: ...User s Manual U17446EJ3V1UD 2 MEMO ...