![](http://datasheet.mmic.net.cn/380000/-PD789800_datasheet_16744981/-PD789800_15.png)
15
μ
PD789800
5. PERIPHERAL HARDWARE FUNCTIONS
5.1
Ports
I/O ports are listed below.
CMOS input/output ports (ports 0 to 2 and port 4): 31 pins
Of these, 18 pins (pins of ports 0 and 1, P25, and P26) can be switched to N-ch open-drain input/output pins.
Table 5-1. Port Functions
Name
Pin name
Function
Port 0
P00-P07
Input/output port. Input or output is specifiable bit by bit.
When used as an input port, the use of on-chip pull-up resistors can be specified by
software. CMOS output or N-ch open-drain output is specifiable in 8-bit units.
Port 1
P10-P17
Input/output port. Input or output is specifiable bit by bit.
When used as an input port, the use of on-chip pull-up resistors can be specified by
software. CMOS output or N-ch open-drain output is specifiable in 8-bit units.
P20-P24
Input/output port. Input or output is specifiable bit by bit.
When used as an input port, the use of on-chip pull-up resistors can be specified by
software.
Port 2
P25, P26
Input/output port. Input or output is specifiable bit by bit.
When used as an input port, the use of on-chip pull-up resistors can be specified by
software. Only for P25 and P26, CMOS output or N-ch open-drain output is specifiable.
Port 4
P40-P47
Input/output port. Input or output is specifiable bit by bit.
When used as an input port, the use of on-chip pull-up resistors can be specified by
software.
5.2
Clock Generator
The
μ
PD789800 has an on-chip system clock generator.
It is possible to change the minimum instruction execution time.
0.33
μ
s/ 1.33
μ
s (when the system clock operates at 6.0 MHz)
Figure 5-1. Block Diagram of Clock Generator
X1
System
clock
oscillator
f
X
Prescaler
f
X
2
2
Prescaler
Clock to
peripheral hardware
CPU clock (f
CPU
)
Standby
control
circuit
Wait
control
circuit
S
STOP
X2