Port 13; Registers Controlling Port Functions - NEC 78K0S/KA1+ User Manual

8-bit single-chip microcontrollers
Hide thumbs Also See for 78K0S/KA1+:
Table of Contents

Advertisement

4.2.5

Port 13

This is a 1-bit output-only port.
Figure 4-12 shows the block diagram of port 13.
RD
WR
PORT
P13:
Port register 13
RD:
Read signal
WR××: Write signal
Remark When a reset is input, P130 outputs a low level. If P130 outputs a high level immediately after
reset is released, the output signal of P130 can be used as a dummy CPU reset signal.
4.3

Registers Controlling Port Functions

The ports are controlled by the following four types of registers.
• Port mode registers (PM2, PM3, PM4, PM12)
• Port registers (P2, P3, P4, P12, P13)
• Port mode control register 2 (PMC2)
• Pull-up resistor option registers (PU2, PU3, PU4, PU12)
(1) Port mode registers (PM2, PM3, PM4, PM12)
These registers are used to set the corresponding port to the input or output mode in 1-bit units.
Each port mode register can be set by a 1-bit or 8-bit memory manipulation instruction.
Reset signal generation sets these registers to FFH.
When a port pin is used as an alternate-function pin, set its port mode register and output latch as shown in
Table 4-3.
Caution Because P30, P31, and P43 are also used as external interrupt pins, the corresponding
interrupt request flag is set if each of these pins is set to the output mode and its output level
is changed.
interrupt mask flag to 1 in advance.
60
CHAPTER 4 PORT FUNCTIONS
Figure 4-12. Block Diagram of P130
P13
Output latch
(P130)
To use the port pin in the output mode, therefore, set the corresponding
User's Manual U16898EJ3V0UD
P130

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents