Interrupt requests are generated at 0.5-second intervals. (A clock timer oscillator is
incorporated.)
Either the main clock (6.29 MHz/12.58 MHz) or real-time clock (32.768 kHz) can be
selected as the input clock.
Selected from fCLK, fCLK/2, fCLK/4, fCLK/8, or fCLK/16 (can be used as a 1-bit output port)
12-bit resolution × 2 channels
UART/IOE (3-wire serial I/O) : 2 channels (incorporating baud rate generator)
APPENDIX A DEVELOPMENT TOOLS ..........................................................................................53
APPENDIX B CONVERSION SOCKET (EV-9200GF-100) PACKAGE DRAWING .....................56
APPENDIX C RELATED DOCUMENTS .........................................................................................58
Data Sheet U11681EJ2V0DS00
5
µ
PD78P4908
1. DIFFERENCES BETWEEN µPD78P4908 AND MASK ROM PRODUCTS
The µPD78P4908 is produced by replacing the mask ROM in the µPD784907 or µPD784908 with PROM to which
µ
data can be written. The functions of the
for the PROM specification such as writing and verification, except that the PROM size can be changed to 96 or 128
Kbytes, and except that the internal RAM size can be changed to 3,584 or 4,352 bytes.
Table 1-1 shows the differences between these products.
Table 1-1. Differences Between the
PD78P4908 are the same as those of the µPD784907 or µPD784908 except
µ
PD78P4908 and Mask ROM Products
Product name
Item
Internal program
memory
Internal RAM
Pin connection
Power supply voltage
Electrical
characteristics
µ
µ
PD78P4908
• 128-Kbyte PROM
• 96-Kbyte mask ROM
PD784907
µ
PD784908
• 128-Kbyte mask ROM
• Can be changed to 96
Kbytes by IMS
• 4,352-byte internal RAM
• 3,584-byte internal RAM
• 4,352-byte internal RAM
• Can be changed to 3,584
bytes by IMS
Pin functions related to writing or reading of PROM have been added to the µPD78P4908.
• VDD = 4.5 to 5.5 V• VDD = 4.0 to 5.5 V
(At main clock: fXX = 12.58(At main clock: fXX = 12.58 MHz, internal system clock = fXX:
MHz, internal system clock =fCYK = 79 ns)
fXX: fCYK = 79 ns• VDD = 3.5 to 5.5 V
• VDD = 4.0 to 5.5 V(Other than above: fCYK = 159 ns)
A8-A19: Address bus
AD0-AD7: Address/data bus
ANI0-ANI7: Analog input
ASCK, ASCK2 : Asynchronous serial clock
ASTB: Address strobe
DD: Analog power supply
AV
REF1: Reference voltage
AV
SS: Analog ground
AV
CI: Clock input
CLKOUT: Clock output
HLDAK: Hold acknowledge
HLDRQ: Hold request
INTP0-INTP5 : Interrupt from peripherals
NMI: Non-maskable interrupt
P00-P07: Port 0
P10-P17: Port 1
P20-P27: Port 2
P30-P37: Port 3
P40-P47: Port 4
P50-P57: Port 5
P60-P67: Port 6
P70-P77: Port 7
P90-P97: Port 9
P100-P107: Port 10
PWM0, PWM1 : Pulse width modulation output
RD: Read strobe
REFRQ: Refresh request
REGC: Regulator capacitance
REGOFF: Regulator off
RESET: Reset
RX: IEBus receive data
RxD, RxD2: Receive data
SCK0-SCK3: Serial clock
SI0-SI3: Serial input
SO0-SO3: Serial output
TEST: Test
TO0-TO3: Timer output
TX: IEBus transmit data
TxD, TxD2: Transmit data
DD: Power supply
V
SS: Ground
V
WAIT: Wait
WR: Write strobe
X1, X2: Crystal (main system clock)
XT1, XT2: Crystal (watch)
Function
Timer output
Input of a count clock for timer/counter 2
Serial data input (UART0)
Serial data input (UART2)
Serial data output (UART0)
Serial data output (UART2)
Baud rate clock input (UART0)
Baud rate clock input (UART2)
Serial data input (3-wire serial I/O 0)
Serial data input (3-wire serial I/O 1)
Serial data input (3-wire serial I/O 2)
Serial data input (3-wire serial I/O 3)
Serial data output (3-wire serial I/O 0)
Serial data output (3-wire serial I/O 1)
Serial data output (3-wire serial I/O 2)
Serial data output (3-wire serial I/O 3)
Serial clock I/O (3-wire serial I/O 0)
Serial clock I/O (3-wire serial I/O 1)
Serial clock I/O (3-wire serial I/O 2)
Serial clock I/O (3-wire serial I/O 3)
External interrupt request—
• Input of a count clock for timer/counter 1
• Capture/trigger signal for CR11 or CR12
• Input of a count clock for timer/counter 2
• Capture/trigger signal for CR22
• Input of a count clock for timer/counter 2
• Capture/trigger signal for CR21
• Input of a count clock for timer/counter 0
• Capture/trigger signal for CR02
—
Input of a conversion start trigger for A/D converter
Time multiplexing address/data bus (for connecting external memory)
High-order address bus (for connecting external memory)
High-order address during address expansion (for connecting external memory)
Strobe signal output for reading the contents of external memory
Strobe signal output for writing on external memory
Wait signal insertion
Refresh pulse output to external pseudo static memory
Input of bus hold request
Output of bus hold response
Latch timing output of time multiplexing address (A0-A7) (for connecting
external memory)
Data Sheet U11681EJ2V0DS00
13
(2) Non-port pins (2/2)
µ
PD78P4908
Pin
CLKOUT
PWM0
PWM1
RX
TX
REGC
REGOFF
RESET
X1
X2
XT1
XT2
ANI0-ANI7
AV
REF1
AVDD
AVSS
VDD
VSS
TEST
I/O
Output
Output
Output
Input
Output
—
—
Input
Input
—
Input
—
Input
—
Input
Also used as
ASTB
P70-P77
—
—
—
—
—
—
—
—
—
—
—
Function
Clock output
PWM output 0
PWM output 1
Data input (IEBus)
Data output (IEBus)
Capacitor connection for stabilizing the regulator output/Power supply
when the regulator is stopped. Connect to V
Signal for specifying regulator operation. Directly connect to VSS (regulator
selected).
Chip reset
Crystal input for system clock oscillation (A clock pulse can also be input
to the X1 pin.)
Real-time clock connection
Analog voltage inputs for the A/D converter
Application of A/D converter reference voltage
Positive power supply for the A/D converter
Ground for the A/D converter
Positive power supply
Ground
Directly connect to V
SS. (The TEST pin is for the IC test.)
SS via a 1-
µ
F capacitor.
4.2 PINS FOR PROM PROGRAMMING MODE (VPP≥ +5 V or +12.5 V, RESET = L)
4.2.1 Pin Functions
Pin name
V
PP
RESET
A0-A16
D0-D7
CE
OE
PGM
V
DD
VSS
Input
I/O
Input
I/O
—
—
—
PROM programming mode selection
High voltage input during program write or verification
PROM programming mode selection
Address bus
Data bus
PROM enable input/program pulse input
Read strobe input to PROM
Program/program inhibit input during PROM programming mode
Positive power supply
GND
Function
14
Data Sheet U11681EJ2V0DS00
4.2.2 Pin Functions
(1) V
PP (Programming power supply): Input
µ
Input pin for setting the
+6.5 V or more and when RESET input goes low, the
When CE is made low for V
PD78P4908 to the PROM programming mode. When the input voltage on this pin is
µ
PD78P4908 enters the PROM programming mode.
PP = +12.5 V and OE = high, program data on D0 to D7 can be written into the internal
PROM cell selected by A0 to A16.
(2) RESET (Reset): Input
µ
Input pin for setting the
the input voltage on the V
PD78P4908 to the PROM programming mode. When input on this pin is low, and when
PP pin goes +5 V or more, the
µ
PD78P4908 enters the PROM programming mode.
(3) A0 to A16 (Address bus): Input
Address bus that selects an internal PROM address (0000H to 1FFFFH)
(4) D0 to D7 (Data bus): I/O
Data bus through which a program is written on or read from internal PROM
µ
PD78P4908
(5) CE (Chip enable): Input
This pin inputs the enable signal from internal PROM. When this signal is active, a program can be written or
read.
(6) OE (Output enable): Input
This pin inputs the read strobe signal to internal PROM. When this signal is made active for CE = low, a onebyte program in the internal PROM cell selected by A0 to A16 can be read onto D0 to D7.
(7) PGM (Program): Input
The input pin for the operation mode control signal of the internal PROM.
Upon activation, writing to the internal PROM is enabled.
Upon inactivation, reading from the internal PROM is enabled.
DD
(8) V
Positive power supply pin
(9) V
SS
Ground potential pin
Data Sheet U11681EJ2V0DS00
15
4.3 I/O CIRCUITS FOR PINS AND HANDLING OF UNUSED PINS
Table 4-1 describes the types of I/O circuits for pins and the handling of unused pins.
Figure 4-1 shows the configuration of these various types of I/O circuits.
Table 4-1. Types of I/O Circuits for Pins and Handling of Unused Pins (1/2)
Input state:To be connected to VDD
Output state: To be left open
To be connected to VDD or VSS
To be connected to VDD
Input state: To be connected to VDD
Output state: To be left open
To be connected to VDD
Input state: To be connected to VDD
Output state: To be left open
Input state:To be connected to V
Output state : To be left open
To be left open
DD or VSS
16
Data Sheet U11681EJ2V0DS00
µ
PD78P4908
Table 4-1. Types of I/O Circuits for Pins and Handling of Unused Pins (2/2)
Pin
RESET
TEST
XT2
XT1
PWM0, PWM1
RX
TX
AV
REF1
AVSS
AVDD
I/O circuit type
2
1
—
3
1
3
—
I/O
Input
—
Input
Output
Input
Output
—
Caution When the I/O mode of an I/O dual-function pin is unpredictable, connect the pin to V
Recommended connection method for unused pins
—
To be connected to V
To be left open
To be connected to VSS
To be left open
To be connected to VDD or VSS
To be left open
To be connected to VSS
To be connected to VDD
SS directly
DD through
a resistor of 10 to 100 kΩ (particularly when the voltage of the reset input pin becomes higher
than that of the low level input at power-on or when I/O is switched by software).
Remark Since type numbers are consistent in the 78K series, those numbers are not always serial in each product.
(Some circuits are not included.)
Data Sheet U11681EJ2V0DS00
17
Figure 4-1. I/O Circuits for Pins
Data
V
DD
P
N
IN/OUT
Output
disable
VDD
P
Pull-up
enable
Input
enable
Data
V
DD
P
N
IN/OUT
Output
disable
VDD
P
Pull-up
enable
µ
PD78P4908
Type 1
VDD
P
IN
N
Type 2
IN
Schmitt trigger input with hysteresis characteristics
Type 3
V
DD
P-ch
DataOUT
N-ch
Type 4
VDD
Data
P
Type 2-A
VDD
P
Pull-up
enable
IN
Schmitt trigger input with hysteresis characteristics
Type 5-A
Type 8-A
Output
disable
Push-pull output which can output high impedance
(both the positive and negative channels are off.)
Type 10-A
Pull-up
enable
Data
P
Open
drain
Output
N
disable
Type 12
Analog output
voltage
P
N
18
OUT
N
VDD
P
Type 20
V
V
DD
Data
IN/OUT
Output
disable
DD
P
IN/OUT
N
Comparator
P
N
OUT
+
–
(Threshold voltage)
VREF
Input
enable
Data Sheet U11681EJ2V0DS00
µ
PD78P4908
5. INTERNAL MEMORY SIZE SELECT REGISTER (IMS)
This register enables the software to avoid using part of the internal memory. The IMS can be set to establish
the same memory mapping as used in mask ROM products that have different internal memory (ROM and RAM)
configurations.
The IMS is set using 8-bit memory operation instructions.
PD784907 or µPD784908). But the action is not affected if
Same as the PD784908
Same as the PD784907
Not to be set
the write command to the IMS is executed to the mask ROM product.
Address
0FFFCH
Memory size
µ
µ
Reset valueWR/W
FFH
Data Sheet U11681EJ2V0DS00
19
µ
PD78P4908
6. PROM PROGRAMMING
The µPD78P4908 has an on-chip 128-KB PROM device for use as program memory. When programming, set
PP and RESET pins for PROM programming mode. See 2. PIN CONFIGURATION (TOP VIEW) (2) PROM
the V
programming mode with regard to handling of other, unused pins.
6.1 OPERATION MODE
PROM programming mode is selected when +6.5 V is added to the V
low-level input is added to the RESET pin. This mode can be set to operation mode by setting the CE pin, OE pin,
and PGM pin as shown in Table 6-1 below.
In addition, the PROM contents can be read by setting read mode.