The µPD78F9328 is a µPD789327 Subseries (designed for remote controller with on-chip LCD) product in the
78K/0S Series, featuring expanded flash memory in place of the internal ROM of the µPD789322, 789324, 789326,
and 789327.
Because flash memory allows the program to be written and erased with the device mounted on the target board,
this product is ideal for development trials, small-scale production, or for applications that require frequent upgrades.
Detailed function descriptions are provided in the following user’s manuals. Be sure to read them before
designing.
µµµµ
PD789327, 789467 Subseries User’s Manual: To be prepared
78K/0S Series User’s Manual Instructions: U11047E
FEATURES
• Pin-compatible with mask ROM product (except VPP)
• Flash memory: 32 Kbytes
• Internal high-speed RAM: 512 bytes
• LCD display RAM: 24 bytes
• Variable minimum instruction execution time: High speed (0.4 µs: @5.0-MHz operation with main system clock),
low speed (1.6 µs: @5.0-MHz operation with main system clock), and ultra low speed (122 µs: @32.768-kHz
operation with subsystem clock)
• I/O ports: 21
• Serial interface (3-wire serial I/O mode): 1 channel
• LCD controller/driver
Segment signals: 24
Common signals: 4
• Timer: 4 channels
• Supply voltage: VDD = 1.8 to 5.5 V
APPLICATIONS
Remote-control devices, healthcare equipment, etc.
ORDERING INFORMATION
Part NumberPackage
PD78F9328GB-8ET52-pin plastic LQFP (10 mm × 10 mm)
µ
The information contained in this document is being issued in advance of the production cycle for the
device. The parameters for the device may change before final production or NEC Corporation, at its own
discretion, may withdraw the device prior to its production.
Not all devices/types available in every country. Please check with local NEC representative for
availability and additional information.
Document No. U14411EJ1V0PM00 (1st edition)
Date Published November 1999 N CP(K)
Printed in Japan
78K/0S SERIES LINEUP
The products in the 78K/0S Series are listed below. The names enclosed in boxes are subseries names.
Products in mass production
Products under development
Small-scale, general-purpose applications
µ
44-pin
42-/44-pin
28-pin
µ
PD789046
µ
PD789026
PD789014
µ
Small-scale, general-purpose applications + A/D
PD789026 with internal subsystem clock
PD789014 with enhanced timer and expanded ROM, RAM
µ
On-chip UART. Capable of low-voltage (1.8 V) operation
RC oscillation version of the PD789197AY
PD789177 with on-chip EEPROM
µ
PD789167 with enhanced A/D converter
µ
µ
PD789104A with enhanced timer
µ
PD789146 with enhanced A/D converter
PD789104A with EEPROM
µ
PD789124A with enhanced A/D converter
µ
RC oscillation version of the PD789104A
PD789104A with enhanced A/D converter
µ
PD789026 with added A/D, multiplier
µ
On-chip inverter control circuit and UART
On-chip UART and dot LCD
µ
PD789407A with enhanced A/D converter
µ
PD789457 with enhanced I/O
µ
PD789447 with enhanced A/D converter
RC oscillation version of the PD789427
µ
PD789427 with enhanced A/D converter
µ
PD789306 with A/D converter
RC oscillation version of the PD789306
Basic subseries for LCD drive
µ
TM
and SMB
µ
µ
µ
ASSP
44-pin
44-pin
20-pin
20-pin
5-pin
2
PD789800
µ
µ
PD789840
µ
PD789861
µ
PD789860
IC card
PD789810
µ
Preliminary Product Information U14411EJ1V0PM00
For PC keyboard, on-chip USB function
For key pad, on-chip POC
RC oscillation version of the PD789860
For keyless entry, on-chip POC and key return circuit
On-chip EEPROM, security circuit
µ
The major functional differences among the subseries are listed below.
µµµµ
PD78F9328
Subseries Name
PD78904616 K1 ch
Smallscale,
generalpurpose
applications
Smallscale,
generalpurpose
applications
+ A/D
Inverter
µ
PD7890264 K to 16 K
µ
PD7890142 K to 4 K2 ch
µ
µ
PD789217AY
µ
PD789197AY
PD789177
µ
PD789167
µ
PD789156
µ
PD789146
µ
PD789134A
µ
µ
PD789124A
µ
PD789114A
PD789104A
µ
PD7898428 K to 16 K3 ch
µ
control
LCD drive
PD78983024 K1 ch
µ
PD789417A
µ
PD789407A
µ
PD789457
µ
PD7894474 ch
µ
PD789437
µ
PD789427
µ
PD789316
µ
PD789306
µ
ROM
Capacity
8-Bit 16-Bit
TimerFunction
Watch
1 ch1 ch34
−
−
16 K to 24 K 3 ch1 ch
8 K to 16 K
1 ch
1 ch
−
2 K to 8 K
Note
1 ch1 ch 8 ch
1 ch1 ch 1 ch
12 K to 24 K 3 ch
16 K to 24 K
2 ch
8 K to 16 K
WDT
1 ch
1 ch
8-Bit
10-Bit
A/D
−−
−
Serial InterfaceI/O V
A/D
1 ch (UART: 1 ch)
2 ch UART: 1ch
8 ch
SMB : 1ch
1 ch (UART: 1 ch)
8 ch
4 ch
4 ch
4 ch
−
4 ch
−
−
4 ch
−
−
4 ch
−
−
1 ch (UART: 1 ch)304.0 V
−
1 ch (UART: 1 ch)
−
−
7 ch431.8 V
7 ch
−
4 ch
−
2 ch (UART: 1 ch)
−
4 ch
−
4 ch
−
−
DD
Min.
Value
1.8 V
22
31
1.8 V
20
302.7 V
25
23
Remarks
−
RC oscillation
version,
on-chip
EEPROM
On-chip
EEPROM
−
On-chip
EEPROM
RC oscillation
version
−
−
−
RC oscillation
version
−
RC oscillation
version
−
ASSP
PD789800
µ
PD789840
µ
PD789861
µ
PD789860
µ
IC cardµPD7898106 K
10-bit timer: 1 channel
Note
8 K1 ch
4 K
2 ch
−
−−−
Preliminary Product Information U14411EJ1V0PM00
1 ch
−
−
2 ch (USB: 1 ch)314.0 V
−
−
4 ch1 ch292.8 V
−
−
141.8 V
RC oscillation
version
−
1 ch
−−−
12.7 V
On-chip
EEPROM
3
OVERVIEW OF FUNCTIONS
ItemDescription
µµµµ
PD78F9328
Internal memory
Main system clock
(oscillation frequency)
Subsystem clock
(oscillation frequency)
General-purpose registers8 bits × 8 registers
Instruction set
I/O portsTotal: 21
Timers
Timer outputs1
Serial interface3-wire serial I/O mode: 1 channel
LCD controller/driver
sources
Reset
Supply voltageVDD = 1.8 to 5.5 V
Operating ambient temperatureTA = −40 to +85°C
Package52-pin plastic LQFP (10 m m × 10 mm)
3.1 Port Pins......................................................................................................................................... 9
4.3.1 Control registers...............................................................................................................................15
5.1.1 Port functions....................................................................................................................................19
5.1.2 Port configuration .............................................................................................................................21
5.1.3 Port function control registers...........................................................................................................22
Caution In normal operation mode, directly connect the VPP pin to VSS.
COM0 to COM3: Common OutputRESET:Reset
INT:Interrupt from PeripheralsS0 to S23:Segment Output
KR00 to KR03:Key ReturnSCK10:Serial Clock Input/Output
P00 to P03:Port 0SI10:Serial Data Input
P10, P11:Port 1SO10:Serial Data Output
DD
P20 to P22:Port 2V
P40 to P43:Port 4V
:Power Supply
LC0
:Power Supply for LCD
P60, P61:Port 6VPP:Programming Power Supply
P80 to P85:Port 8VSS:Ground
TO40:Timer OutputX1, X2:Crystal (Main system clock)
XT1, XT2:Crystal (Sabsystem clock)
Preliminary Product Information U14411EJ1V0PM00
7
2. BLOCK DIAGRAM
µµµµ
PD78F9328
TO40/P60
SCK10/P20
SO10/P21
SI10/P22
S0 to S23
COM0 to COM3
V
LC0
8-bit
timer 30
8-bit
timer 40
Watchdog timer
Serial interface 10
Cascaded
16-bit
timer
Watch timer
LCD
controller/driver
78K/0S
CPU core
RAM
Flash
memory
RAM
space for
LCD data
Port 0
Port 1
Port 2
Port 4
Port 6
Port 8
System control
P00 to P03
P10, P11
P20 to P22
P40 to P43
P60, P61
P80 to P85
RESET
X1
X2
XT1
XT2
Power-on clear
VDDVSSV
INT/P61
Interrupt control
PP
KR00/P40 to
KR03/P43
8
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
3. PIN FUNCTIONS
3.1 Port Pins
Pin NameI/OFunctionAf ter ResetAlternate Function
P00 to P03I/OPort 0.
This is a 4-bit I/O port.
Input/output can be spec i f i ed i n 1-bi t units.
When used as an input port, on-chip pull -up resistors can be
specified for the whole port using pull-up resistor option
register 0 (PU0).
P10, P11I/OPort 1.
This is a 2-bit I/O port.
Input/output can be spec i f i ed i n 1-bi t units.
When used as an input port, on-chip pull -up resistors can be
specified for the whole port using pull-up resistor option
register 0 (PU0).
P20SCK10
P21SO10
P22
P40 to P43I/OPort 4.
P60TO40
P61
P80 to P85I/OPort 8.
I/OPort 2.
This is a 3-bit I/O port.
Input/output can be spec i f i ed i n 1-bi t units.
When used as an input port, on-chip pull -up resistors can be
specified in 1-bit units using pull-up resistor option regi s ter 2
(PUB2).
This is a 4-bit I/O port.
Input/output can be spec i f i ed i n 1-bi t units.
When used as an input port, on-chip pull -up resistors can be
specified for the whole port using pull-up resistor option
register 0 (PU0), or key ret urn mode register 00 (KRM00).
I/OPort 6.
This is a 2-bit I/O port.
Input/output can be spec i f i ed i n 1-bi t units.
This is a 6-bit I/O port.
Input/output can be spec i f i ed i n 1-bi t units.
Input
Input
Input
SI10
InputKR00 to KR03
Input
INT
Low-level
output
S22 to S17
−
−
Preliminary Product Information U14411EJ1V0PM00
9
µµµµ
PD78F9328
3.2
Non-Port Pins
Pin NameI/OFunctionAf ter ResetAlternate Function
INTInputExternal interrupt input f or whi ch the valid edge (rising edge,
falling edge, or both rising and falling edges) can be specified.
KR00 to KR03InputKey return signal detectionInputP40 to P43
TO40Output8-bit timer 40 outputInputP60
SCK10I/OSerial cl ock input/output of serial i nterface 10InputP20
SI10InputSerial data input of serial i nt erface 10InputP22
SO10OutputSerial data out put of serial interface 10InputP21
S0 to S16
S17 to S22P85 to P80
S23
COM0 to COM3OutputLCD controller/driver common si gnal out putsLow-level
LC0
V
X1Input
X2
XT1Input
XT2
RESETInputSystem reset inputInput
DD
V
SS
V
PP
V
OutputLCD controller/driver segment signal outputsLow-level
LCD drive voltage
−
Connecting crystal res onator for main system clock oscillation
−
Connecting crystal res onator for subsystem clock oscillation
−
Positive power supply
−
Ground potential
−
Flash memory programming mode setting.
−
High-voltage application for program write/verify.
In normal operation mode, connect di rectly to V
SS
.
InputP61
output
output
−−
−−
−−
−−
−−
−−
−−
−−
−
−
−
−
10
Preliminary Product Information U14411EJ1V0PM00
3.3 Pin I/O Circuits and Recommended Connection of Unused Pins
The I/O circuit type of each pin and recommended connection of unused pins is shown in Table 3-1.
For the input/output circuit configuration of each type, refer to Figure 3-1.
Table 3-1. Types of Pin I/O Circuits and Recommended Connection of Unused Pins
Pin NameI/O Ci rcuit TypeI/ORecommend Connection of Unused Pi ns
P00 to P03
P10, P11
5-A
I/OInput: Independently connec t to V
Output: Leave open.
P20/SCK108-A
P21/SO105-A
P22/SI10
8-A
P40/KR00 to P43/KR03
P60/TO405
P61/INT8
P80/S22 to P85/S1717-G
S0 to S16, S2317-D
Output
Leave open.
COM0 to COM318-B
LC0
V
−
−
XT1InputConnect to VSS.
XT2
−
Leave open.
RESET2Input
PP
V
−−
Connect directly to V
SS
.
DD
or VSS via a resistor.
−
µµµµ
PD78F9328
Figure 3-1. I/O Circuit Type (1/2)
Type 2Type 5
IN
Output
disable
Schmitt-triggered input with hysteresis characteristics.
Input
enable
Data
V
DD
P-ch
IN/OUT
N-ch
V
SS
Preliminary Product Information U14411EJ1V0PM00
11
Figure 3-1. I/O Circuit Type (2/2)
Type 5-AType 8
V
DD
µµµµ
PD78F9328
Pull-up
enable
Data
Output
disable
V
SS
V
DD
P-ch
N-ch
P-ch
IN/OUT
Data
Output
disable
Input
enable
Type 8-AType 17-D
DD
V
V
Pull-up
enable
Data
V
DD
P-ch
P-ch
VLC3
SEG
IN/OUT
Output
disable
N-ch
V
SS
V
LC0
data
LC2
P-ch
P-ch
N-ch
N-ch
P-ch
N-ch
V
DD
P-ch
IN/OUT
N-ch
V
SS
P-ch
OUT
N-ch
Type 17-GType 18-B
DD
V
Data
P-ch
IN/OUT
Output
disable
N-ch
VSS
Input
enable
LC0
V
VLC1
P-ch
P-ch
N-ch
P-ch
COM
data
V
SEG
data
N-ch
V
LC2
P-ch
N-ch
N-ch
V
SS
SS
V
V
LC0
LC1
V
P-ch
P-ch
N-ch
P-ch
N-ch
OUT
P-ch
LC2
N-ch
P-ch
N-ch
N-ch
V
SS
Remark
12
V
LC1
: V
LC0
× 2/3, V
LC2
LC0
: V
/3
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
4. CPU ARCHITECTURE
4.1 Memory Space
The µPD78F9328 is provided with 64 Kbytes of accessible memory space. Figure 4-1 shows the memory map.
Figure 4-1. Memory Map
F F F F H
Special function registers
256 × 8 bits
F F 0 0 H
F E F F H
Internal high-speed RAM
512 × 8 bits
F D 0 0 H
Data memory
space
F C F F H
F A 1 8 H
F A 1 7 H
F A 0 0 H
F 9 F F H
8 0 0 0 H
7 F F F H
Reserved
LCD display RAM
24 × 8 bits
7 F F F H
Reserved
Program
memory space
0 0 0 0 H
Flash memory
32 K × 8 bits
0 0 8 0 H
0 0 7 F H
0 0 4 0 H
0 0 3 F H
0 0 1 4 H
0 0 1 3 H
0 0 0 0 H
Program area
CALLT table area
Program area
Vector table area
Preliminary Product Information U14411EJ1V0PM00
13
µµµµ
PD78F9328
4.2 Data Memory Addressing
The µPD78F9328 is provided with a variety of addressing modes to improve the operability of the memory. In the
area that incorporates data memory (FD00H to FFFFH) in particular, specific addressing modes that correspond to
the particular functions of an area, such as the special function registers (SFRs), are available. Figure 4-2 shows the
data memory addressing modes.
Figure 4-2. Data Memory Addressing Modes
F F F F H
Special function registers (SFRs)
256 × 8 bits
F F 2 0 H
F F 1 F H
F F 0 0 H
F E F F H
SFR addressing
F E 2 0 H
F E 1 F H
F D 0 0 H
F C F F H
F A 1 8 H
F A 1 7 H
F A 0 0 H
F 9 F F H
8 0 0 0 H
7 F F F H
Internal high-speed RAM
512 × 8 bits
Reserved
LCD display RAM
24 × 8 bits
Reserved
Flash memory
32 K × 8 bits
Short direct
addressing
Direct addressing
Register indirect
addressing
Based addressing
14
0 0 0 0 H
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
4.3 Processor Registers
4.3.1 Control registers
(1) Program counter (PC)
The PC is a 16-bit register that holds the address information of the next program to be executed.
The PSW is an 8-bit register that indicates the status of the CPU according to the results of instruction execution.
Figure 4-4. Program Status Word Configuration
70
IEZ0AC001CY
015
(a) Interrupt enable flag (IE)
This flag controls the interrupt request acknowledgement of the CPU.
(b) Zero flag (Z)
This flag is set (1) if the result of an operation is zero; otherwise it is reset (0).
(c) Auxiliary carry flag (AC)
AC is set (1) if the result of the operation has a carry from bit 3 or a borrow at bit 3; otherwise it is reset (0).
(d) Carry flag (CY)
CY is used to indicate whether an overflow or underflow has occurred during the execution of a subtract or
add instruction.
(3) Stack pointer (SP)
The SP is a 16-bit register that holds the start address of the stack area. Only the internal RAM area (FD00H to
FEFFH) can be specified as the stack area.
Caution RESET input makes the SP contents undefined, so be sure to initialize the SP before instruction
execution.
Preliminary Product Information U14411EJ1V0PM00
15
µµµµ
PD78F9328
4.3.2 General-purpose registers
PD78F9328 has eight 8-bit general-purpose registers (X, A, C, B, E, D, L, and H).
The
µ
These registers can be used either singly as 8-bit registers or in pairs as 16-bit registers (AX, BC, DE, and HL),
and can be described in terms of function names (X, A, C, B, E, D, L, H, AX, BC, DE, and HL) and absolute names
(R0 to R7 and RP0 to RP3).
Special function registers are used as peripheral hardware mode registers and control registers, and are mapped
in the 256-byte space from FF00H to FFFFH.
Note that the bit number of a bit name that is a reserved word in the RA78K0S and defined under the header file
“sfrbit.h” in the CC78K0S appears enclosed in a circle in the register formats. Refer to the register formats in
PERIPHERAL HARDWARE FUNCTIONS
.
Table 4-1. Special Function Registers (1/2)
5.
FF00H Port 0P0
FF01H Port 1P1
FF02H Port 2P2
FF03H port 4P4
FF05H Port 6P6
FF08H Port 8P8
FF20H Port mode regi ster 0PM0
FF21H Port mode regi ster 1PM1
FF22H Port mode regi ster 2PM2
FF24H Port mode regi ster 4PM4
FF26H Port mode regi ster 6PM6
FF28H Port mode regi ster 8PM8
FF32H Pull-up res i s tor option register B2PUB2
FF4AH Wat ch timer mode control registerWTM
FF58H Port func tion register 8PF8
FF63H 8-bit com pare regi ster 30CR30W
FF64H 8-bit tim er c ounter 30TM30R
FF65H 8-bit ti m er m ode control register 30TMC30R/W
FF66H 8-bit com pare regi ster 40CR40
FF67H 8-bit H wi dth compare register 40CRH40
FF68H 8-bit tim er c ounter 40TM40R
FF69H 8-bit ti m er m ode control register 40TMC40R/W
FF6AH Carrier generator output control register 40TCA40W
FF72H Serial operat i on m ode regi ster 10CSIM10
FF74H Transmis sion/reception shift register 10SIO10
FFB0H LCD display mode register 0LCDM0
FFB2H LCD clock control register 0LCDC0
FFDDH Power-on-cl ear regi ster 1POCF1
R/W
W
R/W
Bit Unit for Manipulati onAddressSpecial Function Regist er (SFR) NameS ymbolR/W
1 Bit8 Bits16 Bits
This value is 04H only after a power-on-clear reset.
Note
Preliminary Product Information U14411EJ1V0PM00
17
Table 4-1. Special Function Registers (2/2)
µµµµ
PD78F9328
FFE0H Interrupt request flag register 0IF0
FFE4H Interrupt mask flag register 0MK0
FFECH External interrupt m ode regi ster 0INTM0
FFF0H Subclock oscillation mode registerSCKM
FFF2H Subclock control registerCSS
FFF5H Key return mode register 00KRM00
FFF7H Pull-up resistor option register 0PU0
FFF9H Watchdog timer mode registerWDTM
FFFAH Oscillation stabilization time selection registerOSTS
FFFBH Processor clock control registerPCC
Bit Unit for Manipulati onAddressSpecial Function Regist er (SFR) NameS ymbolR/ W
1 Bit8 Bits16 Bits
R/W
√√−
√√−
−√−
√√−
√√−
√√−
√√−
√√−
−√−
√√−
After
Reset
00H
FFH
00H
04H
02H
18
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
5. PERIPHERAL HARDWARE FUNCTIONS
5.1 Ports
5.1.1 Port functions
Various kinds of control operations are possible using the ports provided in the
illustrated in Figure 5-1 and their functions are listed in Table 5-1.
A number of alternate functions are also provided, except for those ports functioning as digital I/O ports. Refer to
3. PIN FUNCTIONS
for details of the alternate function pins.
Figure 5-1. Ports
PD78F9328. These ports are
µ
Port 4
Port 6
Port 8
P40
P43
P60
P61
P80
P85
P00
P03
P10
P11
P20
P22
Port 0
Port 1
Port 2
Preliminary Product Information U14411EJ1V0PM00
19
Table 5-1. Port Functions
Port NamePin NameFunction
Port 0P00 to P03This is an I/O port f or whi ch input and output can be specified i n 1-bi t units.
When used as an input port, on-chip pull -up resistors can be specifi ed using pull-up
resistor option register 0 (PU0).
Port 1P10, P11This is an I/O port for whi ch input and output can be specifi ed i n 1-bi t units.
When used as an input port, on-chip pull -up resistors can be specifi ed using pull-up
resistor option register 0 (PU0).
Port 2P20 to P22This is an I/O port f or whi ch input and output can be specified i n 1-bi t units.
When used as an input port, on-chip pull -up resistors can be specifi ed using pull-up
resistor option register B2 (PUB2).
Port 4P40 to P43This is an I/O port f or whi ch input and output can be specified i n 1-bi t units.
When used as an input port, on-chip pull -up resistors can be specifi ed using pull-up
resistor option register 0 (PU0), or key return mode register 00 (KRM 00).
Port 6P60, P61This is an I/O port for whi ch input and output can be specifi ed i n 1-bi t units.
Port 8P80 to P85This is an I/O port f or whi ch input and output can be specified i n 1-bi t units.
µµµµ
PD78F9328
20
Preliminary Product Information U14411EJ1V0PM00
5.1.2 Port configuration
The ports consist of the following hardware.
Table 5-2. Port Configuration
ItemConfiguration
Control registersPort mode registers (PMm: m = 0 to 2, 4, 6, 8)
Pull-up resistor option registers (PU0, PUB2)
Port function regist er 8 (P F8)
PortsTotal: 21 (CMOS I/O: 21)
Pull-up resistorsTotal: 13 (software control: 13)
Figure 5-2. Basic Configuration of CMOS Port
WR
PUm
µµµµ
PD78F9328
DD
V
Internal bus
WR
WR
WR
PU×
PORTm
Selector
PORTm
Output latch
Pmn
PMm
PMmn
P-ch
Pmn
Caution Figure 5-2 shows the basic configuration of a CMOS I/O port. This configuration differs
depending on the functions of alternate function pins. Also, an on-chip pull-up resistor can be
connected to port 4 by means of a setting in key return mode register 00 (KRM00).
Remark
PU×: Pull-up resistor option register (× = 0, B2)
PMmn: Bit n of port mode register m (m = 0 to 2, 4, 6, 8 n = 0 to 5)
Pmn: Bit n of port m
RD: Port read signal
WR: Port write signal
Preliminary Product Information U14411EJ1V0PM00
21
5.1.3 Port function control registers
The ports are controlled by the following three types of registers.
Port mode registers (PM0 to PM2, PM4, PM6, PM8)
•
Pull-up resistor option registers (PU0, PUB2)
•
Port function register 8 (PF8)
•
(1) Port mode registers (PM0 to PM2, PM4, PM6, PM8)
Input and output can be specified in 1-bit units.
These registers can be set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets these registers to FFH.
When using the port pins as their alternate functions, set the output latch as shown in Table 5-3.
Caution Because P61 functions alternately as an external interrupt input, when the output level
changes after the output mode of the port function is specified, the interrupt request flag will
be inadvertently set. Therefore, be sure to preset the interrupt mask flag (PMK0) before
using the port in output mode.
µµµµ
PD78F9328
Figure 5-3. Port Mode Register Format
Symbol76543210AddressAfter resetR/W
PM01111PM03PM02PM01PM00FF20HFFHR/W
PM1111111PM11PM10FF21HFFHR/W
PM211111PM22PM21PM20FF22HFFHR/W
PM41111PM43PM42PM41PM40FF24HFFHR/W
PM6111111PM61PM60FF26HFFHR/W
PM811PM85PM84PM83PM82PM81PM80FF28HFFHR/W
PMmnPmn pin input/output mode s el ection
(m = 0 to 2, 4, 6, 8 n = 0 to 5)
0Output mode (output buffer on)
1Input mode (output buffer off )
22
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
Table 5-3. Port Mode Registers and Output Latch Settings When Using Alternate Functions
Alternate FunctionPin Name
NameI/O
P20SCK10
P21SO10Output01
P22SI10Input1
P40 to P43KR00 to KR03Input1
P60TO40Output00
P61INTInput1
P80 to P85
Note
Remark
S22 to S17
When using P80 to P85 pins as S22 to S17, set port function register 8 (PF8) to 3FH.
: don’t care
×
Note
Input1
Output01
Output
PM
××
××
P
PM××: Port mode register
P××: Port output latch
(2) Pull-up resistor option register 0 (PU0)
This register sets whether to use on-chip pull-up resistors for ports 0, 1, and 4 on a port by port basis. An onchip pull-up resistor can be used only for those bits set to the input mode of a port for which the use of the onchip pull-up resistor has been specified using PU0.
For those bits set to the output mode, on-chip pull-up resistors cannot be used, regardless of the setting of
PU0. This also applies to alternate-function pins used as output pins.
PU0 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
××
×
×
×
×
Figure 5-4. Format of Pull-Up Resistor Option Register 0
Symbol765<4>32<1><0>AddressAfter resetR/W
PU0000PU0400PU01PU00FFF7H00HR/W
PU0mPort m on-chip pull-up resistor selection
(m = 0, 1, 4)
0An on-chip pull-up resistor is not connected
1An on-chip pull-up resistor is connected
Caution Always set bits 2, 3, and 5 to 7 to 0.
Preliminary Product Information U14411EJ1V0PM00
23
µµµµ
PD78F9328
(3) Pull-up resistor option register B2 (PUB2)
This register sets whether to use on-chip pull-up resistors for P20 to P22 in bit units. An on-chip pull-up
resistor can be used only for those bits set to the input mode of a port for which the use of the on-chip pull-up
resistor has been specified using PUB2.
For those bits set to the output mode, on-chip pull-up resistors cannot be used, regardless of the setting of
PUB2. This also applies to alternate-function pins used as output pins.
PUB2 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-5. Format of Pull-Up Resistor Option Register B2
Symbol76543<2><1><0>AddressAfter resetR/W
PUB200000PUB22PUB21PUB20FF32H00HR/W
PUB2nP2n on-chip pull-up resistor s el ection
(n = 0 to 2)
0An on-chip pull-up resistor is not connected
1An on-chip pull-up resistor is connected
Caution Always set bits 3 to 7 to 0.
(4) Port function register 8 (PF8)
This register sets the port function of port 8 in 1-bit units.
The pins of port 8 are selected as either LCD segment signal outputs or general-purpose port pins according
to the setting of PF8.
PF8 can be set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-6. Format of Port Function Register 8
Symbol76543210AddressAfter resetR/W
PF800PF85PF84PF83PF82PF81PF80FF58H00HR/W
PF8nP8n port function (n = 0 to 5)
0Operates as a general-purpose port
1Operates as an LCD segment signal output
24
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
5.2 Clock Generator
5.2.1 Clock generator function
The clock generator generates the clock pulse to be supplied to the CPU and peripheral hardware.
There are two types of system clock oscillators:
Main system clock oscillator (ceramic/crystal resonator)
•
This circuit generates a frequency of 1.0 to 5.0 MHz. Oscillation can be stopped by executing the STOP
instruction or by means of a processor clock control register (PCC) setting.
Subsystem clock oscillator
•
This circuit generates a frequency of 32.768 kHz. Oscillation can be stopped using the subclock oscillation
mode register (SCKM).
5.2.2 Clock generator configuration
The clock generator consists of the following hardware.
Table 5-4. Clock Generator Configuration
ItemConfiguration
Control registersProcessor clock control register (PCC)
Subclock oscillation mode register (SCKM)
Subclock control register (CSS)
OscillatorsMain system clock oscillator
Subsystem clock oscillator
Preliminary Product Information U14411EJ1V0PM00
25
Internal bus
Figure 5-7. Clock Generator Block Diagram
µµµµ
PD78F9328
XT1
XT2
X1
X2
FRC
SCC
Subsystem
clock
oscillatior
Main system
clock
oscillator
STOP
Subclock oscillation mode
register (SCKM)
f
XT
X
f
MCC
PCC1
1/2
Watch timer
LCD controller/driver
Prescaler
f
X
2
2
f
XT
2
Standby
control
circuit
Clock to peripheral hardware
Wait
control
circuit
CPU clock
CPU
)
(f
Selector
CLS
CSS0
Processor clock control
register (PCC)
Subclock control
register (CSS)
Internal bus
26
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
5.2.3 Clock generator control registers
The clock generator is controlled by the following three registers.
Processor clock control register (PCC)
•
Subclock oscillation mode register (SCKM)
•
Subclock control register (CSS)
•
(1) Processor clock control register (PCC)
This register is used to select the CPU clock and set the frequency division ratio.
PCC is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 02H.
Figure 5-8. Format of Processor Clock Control Register
Symbol<7>6543210AddressAfter resetR/W
PCCMCC00000PCC10FFFBH02HR/W
MCCMain system clock oscillator operation control
0Operation enabled
1Operation stopped
CPU
CSS0PCC1
00f
01
1×f
The CPU clock is selected by a combination of flag settings in the PCC and CSS registers. (Refer to
Note
X
X
f
XT
CPU clock (f
(0.2 µs)0.4 µs
/22 (0.8 µs)
/2 (61 µs)122 µs
) selection
5.2.3 (3) Subclock control register (CSS)
Note
Minimum instructi on execution time: 2f
1.6
s
µ
.)
Cautions 1. Always set bits 0 and 2 to 6 to 0.
2. MCC can be set only when the subsystem clock is selected as the CPU clock. Setting
MCC to 1 while the main system clock is operating is invalid.
X
: Main system clock oscillation frequency
Remarks 1.
f
fXT: Subsystem clock oscillation frequency
2.
The parenthesized values apply to operation at fX = 5.0 MHz or fXT = 32.768 kHz.
3.
CPU
Preliminary Product Information U14411EJ1V0PM00
27
µµµµ
PD78F9328
(2) Subclock oscillation mode register (SCKM)
This register is used to select a feedback resistor for the subsystem clock and control the oscillation of the
clock.
SCKM is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-9. Format of Subclock Oscillation Mode Register
Symbol7654321<0>AddressAfter res etR/W
SCKM000000FRCSCCFFF0H00HR/W
FRCF eedback resistor selecti on
0An on-chip feedback resis t or i s used
1An on-chip feedback resis t or i s not used
SCCControl of subsystem clock oscillator operation
0Operation enabled
1Operation stopped
Caution Always set bits 2 to 7 to 0.
28
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
(3) Subclock control register (CSS)
This register is used to specify whether the main system or subsystem clock oscillator is selected and to
indicate the operating status of the CPU clock.
CSS is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-10. Format of Subclock Control Register
Symbol76543210AddressAfter resetR/W
Note
CSS00CLSCSS00000FFF2H00H
CLSCPU clock operating status
0Operating on the output of the (divi ded) main system clock
1Operating on the output of the subsystem clock
CSS0Selection of main system clock or subsystem clock oscillator
0Main system clock oscillator (divided) output
1Subsystem clock oscillator output
R/W
Bit 5 is read-only.
Note
Caution Always set bits 0 to 3, 6, and 7 to 0.
Preliminary Product Information U14411EJ1V0PM00
29
5.3 8-Bit Timer 30, 40
5.3.1 Functions of 8-bit timer 30, 40
The 8-bit timer in the
table are possible by means of mode register settings.
PD78F9328 has 2 channels (timer 30 and timer 40). The operation modes in the following
These timers can be used for 16-bit timer operations via a cascade connection.
The timer can be used for the following functions in this mode.
16-bit resolution interval timer
•
16-bit resolution square wave output
•
√
√
√
(3) Carrier generator mode
In this mode the carrier clock generated by timer 40 is output in the cycle set by timer 30.
(4) PWM output mode
In this mode, a pulse with an arbitrary duty ratio, which is set by timer 40, is output.
30
Preliminary Product Information U14411EJ1V0PM00
5.3.2 Configuration of 8-bit timer 30, 40
8-bit timers 30 and 40 consist of the following hardware.
Table 5-6. Configuration of 8-Bit Timer 30, 40
ItemConfiguration
Timer counter8 bits × 2 (TM30, TM40)
RegistersCom pare regi sters: 8 bits × 3 (CR30, CR40, CRH40)
Timer outputs1 (TO40)
Control registers8-bit timer mode control register 30 (TMC30)
8-bit timer mode control register 40 (TMC40)
Carrier generator output control register 40 (TCA40)
Port mode register 6 (PM6)
µµµµ
PD78F9328
Preliminary Product Information U14411EJ1V0PM00
31
32
Figure 5-11. Block Diagram of Timer 30
Internal bus
8-bit timer mode control registedr 30
(TMC30)
TCE30
Preliminary Product Information U14411EJ1V0PM00
Bit 7 of TM40
(from Figure
Timer 40 interrupt request signal
Carrier clock (in carrier generator mode)
(in other than carrier generator mode)
(from Figure 5-12 (B))
or timer 40 output signal
(from Figure 5-12 (C))
5-12 (A))
fX/2
fX/2
6
8
Selector
Selector
From Figure 5-12 (D)
Count operation start signal
(for cascade connection)
TCL301
Selector
TCL300
TMD300
Decoder
Cascade connection mode
8-bit compare register 30
(CR30)
Match
8-bit timer counter 30
(TM30)
Clear
Selector
From Figure 5-12 (E)
Timer 40 match signal
(in cascade connection mode)
OVF
To Figure 5-12 (G)
Timer 30 match signal
(in carrier generator mode)
Internal reset signal
INTTM30
µµ
µ
µ
PD78F9328
To Figure 5-12 (F)
Timer 30 match signal
(in cascade connection mode)
8-bit timer mode control
register 40 (TMC40)
TCE40
TCL402 TCL401 TCL400
TMD401
TMD400
Figure 5-12. Block Diagram of Timer 40
Internal bus
TOE40
8-bit H width compare
register 40 (CRH40)
Carrier generator output
control register 40 (TCA40)
8-bit compare
register 40 (CR40)
RMC40
NRZB40
NRZ40
Decoder
Preliminary Product Information U14411EJ1V0PM00
f
fX/2
fX/2
X
2
2
f
X
/2
3
fX/2
4
fX/2
Prescaler
Selector
To Figure 5-11 (D)
Count operation start signal to timer 30
(in cascade connection mode)
Carrier generator mode
PWM mode
Cascade connection mode
8-bit timer counter 40
(TM40)
Clear
Match
Selector
F/F
OVF
Reset
To Figure 5-11 (E)
TM40 timer counter match signal
(in cascade connection mode)
Output control
circuit
Note
From Figure 5-11 (G)
Timer counter match signal from
timer 30 (in carrier generator mode)
TO40/P60
To Figure 5-11 (C)
Carrier clock (in carrier generator mode)
or timer 40 output signal
(in other than carrier generator mode)
To Figure 5-11 (A)
Bit 7 of TM40
(in cascade connection mode)
Internal reset signal
INTTM40
To Figure 5-11 (B)
Timer 40 interrupt request signal
count clock input
signal to TM30
µµ
µ
µ
PD78F9328
33
Note Refer to Figure 5-13 for details.
To Figure 5-11 (F)
TM30 match signal
(in cascade connection mode)
Figure 5-13. Block Diagram of Output Control Circuit (Timer 40)
µµµµ
PD78F9328
TOE40
F/F
RMC40
Carrier generator mode
NRZ40
Selector
P60
output latch
PM60
TO40/P60
Carrier clock (in carrier generator mode)
or timer 40 output signal
(in other than carrier generator mode)
(1) 8-bit compare register 30 (CR30)
A value specified in CR30 is compared with the count value in 8-bit timer counter 30 (TM30), and if they
match, an interrupt request (INTTM30) is generated.
CR30 is set using an 8-bit memory manipulation instruction.
RESET input makes this register undefined.
Caution CR30 cannot be used in carrier generator mode or PWM output mode.
(2) 8-bit compare register 40 (CR40)
A value specified in CR40 is compared with the count value in 8-bit timer counter 40 (TM40), and if they
match, an interrupt request (INTTM40) is generated. When operating as a 16-bit timer in cascade
connection with TM30, an interrupt request (INTTM40) is only generated if both CR30 and TM30, and CR40
and TM40 match simultaneously (INTTM30 is not issued).
CR40 is set using an 8-bit memory manipulation instruction.
RESET input makes this register undefined.
(3) 8-bit H width compare register (CRH40)
In carrier generator mode or PWM output mode, a timer output high-level width can be set by writing a value
to CRH40.
CRH40 is set using an 8-bit memory manipulation instruction.
RESET input makes this register undefined.
34
Preliminary Product Information U14411EJ1V0PM00
(4) 8-bit timer counter 30, 40 (TM30, TM40)
This is an 8-bit register for counting the count pulses.
TM30 and TM40 can be read with a 1-bit or 8-bit memory manipulation instruction.
RESET input sets these registers to 00H.
The conditions under which TM30 and TM40 are cleared to 00H are listed below.
(a) Discrete mode
(i) TM30
Upon a reset
•
When TCE30 (bit 7 of 8-bit timer mode control register 30 (TMC30)) is cleared to 0
•
Upon a match between TM30 and CR30
•
If the TM30 count value overflows
•
(ii) TM40
Upon a reset
•
When TCE40 (bit 7 of 8-bit timer mode control register 40 (TMC40)) is cleared to 0
•
Upon a match between TM40 and CR40
•
If the TM40 count value overflows
•
µµµµ
PD78F9328
(b) Cascade connection mode (TM30 and TM40 cleared to 00H simultaneously)
Upon a reset
•
When the TCE40 flag is cleared to 0
•
Upon a simultaneous match between TM30 and CR30, and TM40 and CR40
•
If the TM30 and TM40 count values overflow simultaneously
•
(c) Carrier generator/PWM output mode (TM40 only)
Upon a reset
•
When the TCE40 flag is cleared to 0
•
Upon a match between TM40 and CR40
•
Upon a match between TM40 and CRH40
•
If the TM40 count value overflows
•
Preliminary Product Information U14411EJ1V0PM00
35
5.3.3 8-bit timer 30, 40 control registers
8-bit timers 30 and 40 are controlled by the following 4 registers.
8-bit timer mode control register 30 (TMC30)
•
8-bit timer mode control register 40 (TMC40)
•
Carrier generator output control register 40 (TCA40)
•
Port mode register 6 (PM6)
•
µµµµ
PD78F9328
36
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
(1) 8-bit timer mode control register 30 (TMC30)
This register is used to control the timer 30 count clock and operation mode settings.
TMC30 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-14. Format of 8-Bit Timer Mode Control Register 30
0TM30 count v al ue cleared and operation stopped
1Count operation st arts
TCL301TCL300Timer 30 count clock selection
X
/26 (78.1 kHz)
00
01
10Timer 40 match signal
11Carrier clock (in carrier generator mode) or timer 40 output signal (in other than carrier generator
TMD300 TMD401 TMD400
000Disc ret e m ode
101Cascade c onnection mode
011Carrier generator mode
010PWM output mode
Other than aboveSetting prohibited
f
X
/28(19.5 kHz)
f
mode)
TM30 count control operation
Timer 30, timer 40 operation mode sel ection
Note 1
Note 2
Notes 1.
The TCE30 setting will be ignored in cascade mode because in this case the count operation is
controlled by TCE40 (bit 7 of TMC40).
The operation mode selection is made using a combination of TMC30 and TMC40 register settings.
2.
Caution In cascade connection mode, the timer 40 output signal is forcibly selected for the count
clock.
X
: Main system clock oscillation frequency
Remarks 1.
f
The parenthesized values apply to operation at fX = 5.0 MHz
2.
Preliminary Product Information U14411EJ1V0PM00
37
µµµµ
PD78F9328
(2) 8-bit timer mode control register 40 (TMC40)
This register is used to control the timer 40 count clock and operation mode settings.
TMC40 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-15. Format of 8-Bit Timer Mode Control Register 40
0TM40 count v al ue cleared and operation stopped (in cascade c onnection mode, the count value of TM 30 i s
cleared at the same time)
1Count operation st arts (in cascade connection m ode, the count operation of TM30 starts at the same time)
TCL402TCL401TCL400Timer 40 count clock selec tion
000f
001
010f
011
100
101
Other than aboveSetting prohibited
TMD300 TMD401 TMD400
000Disc ret e m ode
101Cascade c onnection mode
011Carrier generator mode
010PWM output mode
Other than aboveSetting prohibited
X
(5 MHz)
X
/22 (1.25 MHz)
f
X
/2 (2.5 MHz)
X
/22 (1.25 MHz)
f
X
/23 (625 kHz)
f
X
/24 (313 kHz)
f
TM40 count control operation
Timer 30, timer 40 operation mode sel ection
Note 1
Note 2
38
TOE40Timer output control
0Output disabl ed (port mode)
1Output enabled
Notes 1.
The TCE30 setting will be ignored in cascade mode because in this case the count operation is
controlled by TCE40 (bit 7 of TMC40).
The operation mode selection is made using a combination of TMC30 and TMC40 register settings.
2.
X
: Main system clock oscillation frequency
Remarks 1.
f
The parenthesized values apply to operation at fX = 5.0 MHz
2.
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
(3) Carrier generator output control register 40 (TCA40)
This register is used to set the timer output data in the carrier generator mode.
TCA40 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-16. Format of Carrier Generator Output Control Register 40
Symbol76543<2><1><0>AddressAfter resetR/W
TCA4000000RMC40NRZB40NRZ40FF6AH00HW
RMC40Remote controller output control
0When NRZ40 = 1, a carrier puls e i s output to the TO40/P60 pin
1When NRZ40 = 1, a high level i s output to the TO40/P60 pin
NRZB40 This bit stores the data that NRZ40 will output next. Data is t rans ferred to NRZ40 upon the generation of a
timer 30 match signal.
NRZ40No return, zero data
0A low level i s output (the carrier clock i s stopped)
1A carrier puls e i s output
(4) Port mode register 6 (PM6)
This register is used to set port 6 to input or output in 1-bit units.
When the TO40/P60 pin is used as a timer output, set the PM60 and P60 output latches to 0.
PM6 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to FFH.
The watch timer consists of the following hardware.
Table 5-8. Watch Timer Configuration
ItemConfiguration
Counter5 bits × 1
Prescaler9 bits × 1
Control registerWatch timer mode c ontrol register (WTM)
Preliminary Product Information U14411EJ1V0PM00
41
µµµµ
PD78F9328
5.4.3 Watch timer control register
The following register controls the watch timer.
Watch timer mode control register (WTM)
•
(1) Watch timer mode control register (WTM)
This register is used to enable/disable the count clock and operation of the watch timer and set the interval
time of the prescaler and operation control of the 5-bit counter.
WTM is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-19. Format of Watch Timer Mode Control Register
Symbol765432<1><0>AddressAfter resetR/W
WTMWTM7WTM6WTM5WTM400WTM1WTM0FF4AH00HR/W
WTM7Watch timer count clock (fW) selection
X
/27(39.1 kHz)
f
0
1fXT(32.768 kHz)
WTM6WTM5WTM4Prescaler interval time selection
4
W
/f
000
001
010
011
100
101
2
5
W
/f
2
6
W
/f
2
7
W
/f
2
8
W
/f
2
9
W
/f
2
Other than aboveSetting prohibited
WTM15-bit counter operation control
0Cleared after operation stopped
1Start
WTM0Watch timer operat i on enabl e
0Operation s topped (both prescaler and timer cleared)
1Operation enabled
W
: Watch timer clock frequency (fX/27 or fXT)
Remarks 1.
f
fX: Main system clock oscillation frequency
2.
fXT: Subsystem clock oscillation frequency
3.
The parenthesized values apply to operation at fX = 5.0 MHz or fXT = 32.768 kHz.
4.
42
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
5.5 Watchdog Timer
5.5.1 Watchdog timer functions
The watchdog timer has the following functions.
(1) Watchdog timer
The watchdog timer is used to detect a program runaway. If a runaway is detected, either a non-maskable
interrupt or the RESET signal can be generated.
(2) Interval timer
The interval timer is used to generate interrupts at preset intervals.
5.5.2 Watchdog timer configuration
The watchdog timer consists of the following hardware.
Table 5-9. Watchdog Timer Configuration
ItemConfiguration
Control registerWatchdog timer mode register (WDTM)
Figure 5-20. Watchdog Timer Block Diagram
Internal bus
WDTMK
WDTIF
f
X
4
2
7-bit counter
Clear
RUN
Control circuit
WDTM4 WDTM3
Watchdog timer mode register
(WDTM)
INTWDT
maskable
interrupt request
RESET
INTWDT
non-maskable
interrupt request
Internal bus
Preliminary Product Information U14411EJ1V0PM00
43
µµµµ
PD78F9328
5.5.3 Watchdog timer control register
The watchdog timer is controlled by the following register.
Watchdog timer mode register (WDTM)
•
(1) Watchdog timer mode register (WDTM)
This register is used to set the watchdog timer operation mode and whether to enable or disable counting.
WDTM is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-21. Format of Watchdog Timer Mode Register
Symbol<7>6543210AddressAfter resetR/W
WDTMRUN00WDTM4WDTM3000FFF9H00HR/W
RUN
0Counting stopped
1Counter cleared and counting starts
WDTM4WDTM3
00Operation stopped
01
10Watchdog timer mode 1 (when an overflow occurs, a non-maskable i nterrupt is generated)
11Watchdog timer mode 2 (when an overflow occurs, a reset operation i s activated)
Notes 1.
Once the RUN bit has been set (1), it is impossible to clear it (0) by software. Consequently, once
Interval timer mode (when an overf l ow occurs, a maskable interrupt i s generated)
Watchdog timer operation selec tion
Watchdog timer operation mode sel ection
Note 1
Note 2
Note 3
counting begins, it cannot be stopped by any means other than RESET input.
Once WDTM3 and WDTM4 have been set (1), it is impossible to clear them (0) by software.
2.
The interval timer starts operating as soon as the RUN bit is set to 1.
3.
Cautions 1. When the RUN bit is set to 1, and the watchdog timer is cleared, the actual overflow time
will be up to 0.8% shorter than the time specified by the watchdog timer clock selection
register.
2. To use watchdog timer mode 1 or 2, be sure to set WDTM4 to 1 after confirming that
WDTIF (bit 0 of interrupt request flag 0 (IF0)) has been set to 0. If WDTIF is 1, selecting
watchdog timer mode 1 or 2 causes a non-maskable interrupt to be generated the instant
rewriting ends.
44
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
5.6 Serial Interface 10
5.6.1 Functions of serial interface 10
Serial interface 10 has the following two modes.
Operation stopped mode
•
3-wire serial I/O mode
•
(1) Operation stopped mode
This mode is used to minimize power consumption when serial transfer is not performed.
(2) 3-wire serial I/O mode (switchable between MSB-first and LSB-first transmission)
This mode is used to transmit 8-bit data, using three lines: a serial clock line (SCK10) and two serial data lines
(SI10 and SO10).
As 3-wire serial I/O mode supports simultaneous transmission and reception, the time required for data
processing can be reduced.
In 3-wire serial I/O mode, it is possible to select whether 8-bit data transmission begins with the MSB or LSB,
allowing serial interface 10 to be connected to any device regardless of whether that device is designed for
MSB-first or LSB-first transmission.
3-wire serial I/O mode is effective for connecting peripheral I/O circuits and display controllers having
conventional clock synchronous serial interfaces, such as those of the 75XL, 78K, and 17K Series devices.
5.6.2 Configuration of serial interface 10
Serial interface 10 consists of the following hardware.
Table 5-10. Configuration of Serial Interface 10
ItemConfiguration
RegisterTransmission/reception shift regi ster 10 (SIO10)
Control registerSerial operation mode regis ter 10 (CSIM10)
This is an 8-bit register used for parallel/serial data conversion and for serial transmission or reception in
synchronization with the serial clock.
SIO10 is set using an 8-bit memory manipulation instruction.
RESET input makes this register undefined.
Preliminary Product Information U14411EJ1V0PM00
45
46
Preliminary Product Information U14411EJ1V0PM00
SI10/P22
SO10/P21
PM21
Figure 5-22. Block Diagram of Serial Interface 10
Serial operation mode register 10
CSIE10
(CSIM10)
TPS101
TPS100
DIR10
Internal bus
CSCK10
Transmission/reception shift
register 10 (SIO10)
SCK10/P20
PM20
Serial clock counter
Clock control
circuit
F/F
Selector
Interrupt request
generator
fX/2
fX/2
Selector
TPS101
TPS100
INTCSI10
2
3
µµ
µ
µ
PD78F9328
µµµµ
PD78F9328
5.6.3 Control register for serial interface 10
Serial interface 10 is controlled by the following register.
Serial operation mode register 10 (CSIM10)
•
Figure 5-23. Format of Serial Operation Mode Register 10
TPS101TPS100Selecti on of count clock when internal clock selected
X
/22 (1.25 MHz)
00
01
Other than aboveSetting prohi bi t ed
f
X
/23 (625 kHz)
f
DIR10First-bit specification
0MSB
1LSB
CSCK10SIO10 clock selection
0External clock pulse input to the SCK10 pin
1Internal clock selected wi t h TPS100, TPS101
Cautions 1. Bits 0, 3 and 6 must be fixed to 0.
2. Be sure to switch to operation mode after stopping the serial transmission/reception
operation.
X
: Main system clock oscillation frequency
Remarks 1.
f
The parenthesized values apply to operation at fX = 5.0 MHz.
2.
Preliminary Product Information U14411EJ1V0PM00
47
Table 5-11. Operation Mode Settings for Serial Interface 10
(1) Operation stopped mode
µµµµ
PD78F9328
CSIM10
CSIE10
DIR10
CSCK10
0
×
×
(2) 3-wire serial I/O mode
CSIM10
CSIE10
Notes 1.
DIR10
CSCK10
1
0
0
1
1
0
1
Can be used freely as a port
Can be used as P22 (CMOS I/O) only when transmitting
2.
PM22
Note 1
×
PM22
Note 2
1
P22
PM21
Note 1
Note 1
×
×
P22
PM210P211PM20
Note 2
×
P21
Note 1
×
PM20
Note 1
×
1
0
1
0
P20
Note 1
×
P20
First
Bit
−
Shift
Clock
−
P22/SI10
Pin Function
P21/SO10
Pin Function
P20/SCK10
Pin Function
P22 P21P20
Setting prohibitedOther than above
First
×
MSB
Bit
Shift
Clock
External
clock
1
Internal
P22/SI10
Pin Function
Note 2
SI10
P21/SO10
Pin Function
SO10
(CMOS output)
P20/SCK10
Pin Function
SCK10 input
SCK10 output
clock
×
LSB
External
SCK10 input
clock
1
Internal
SCK10 output
clock
Setting prohibitedOther than above
Remark
: don’t care
×
48
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
5.7 LCD Controller/Driver
5.7.1 LCD controller/driver functions
The LCD controller/driver incorporated in the
(1) Segment and common signals based on the automatic reading of the display data memory can be
automatically output
(2) Four types of frame frequencies are selectable
(3) 24 segment signal outputs (S0 to S23), 4 common signal outputs (COM0 to COM3)
(4) Operation with a subsystem clock is possible
The maximum number of displayable pixels is shown in Table 5-12 below.
Table 5-12. Maximum Number of Display Pixels
Bias MethodTime Di visionCommon Si gnal s UsedMaximum Number of Di splay Pixels
1/34COM0 to COM396 (24 segments × 4 commons)
PD78F9328 has the following features.
µ
The LCD panel of the figure
Note
5.7.2 LCD controller/driver configuration
The LCD controller/driver consists of the following hardware.
Table 5-13. Configuration of LCD Controller/Driver
ItemConfiguration
Display outputsSegment signals: 24
Common signals: 4
Control registersLCD display mode register 0 (LCDM0)
LCD clock control register 0 (LCDC0)
Port function regist er 8 (P F8)
consists of 12 rows with 2 segments per row.
Preliminary Product Information U14411EJ1V0PM00
49
The correspondence with the LCD display RAM is shown in Figure 5-24 below.
The LCD controller/driver is controlled by the following three registers.
LCD display mode register 0 (LCDM0)
•
LCD clock control register 0 (LCDC0)
•
Port function register 8 (PF8)
•
(1) LCD display mode register 0 (LCDM0)
This register is used to enable/disable operation, and set the operation mode and the supply of power for LCD
drive.
LCDM0 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-26. Format of LCD Display Mode Register 0
Symbol<7><6>5<4>3210AddressAfter res etR/W
LCDM0 LCDON0VAON00LIPS00000FFB0H00HR/W
LCDON0LCD display enable/disable
0Display off (all segment outputs are unselected for signal output)
1Display on
VAON0
0No internal boos ter (for 2.7- to 5.5-V display)
1Internal boos ter enabled (for 1.8- to 5.5-V display )
LIPS0
0Power not supplied for LCD drive
1Power suppl i ed for LCD drive
To reduce power consumption when the LCD display is not being used, set VAON0 and LIPS0 to 0.
Note
LCD controller/driver operation m ode
Supply of power for LCD drive
Note
Note
Cautions 1. Always set bits 0 to 3 and 5 to 0.
2. Always manipulate VAON0 after turning off the LCD display by setting LIPS0 and
LCDON0 to 0.
52
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
(2) LCD clock control register (LCDC0)
This register is used to set the internal and LCD clocks. The frame frequency is determined by the number of
LCD clock time divisions.
LCDC0 is set using a 1 - bit or 8-bit memory manipula t ion instruction.
RESET input sets this register to 00H.
Figure 5-27. Format of LCD Clock Control Register 0
Symbol76543210Address After resetR/W
LCDC00000LCDC03LCDC02 LCDC01 LCDC00FFB2H00HR/W
LCDC03 LCDC02
Internal clock (f
00fXT(32.768 kHz)
X
/25(156.3 kHz)
01
10
11
f
X
/26(78.1 kHz)
f
X
/27(39.1 kHz)
f
LCDC01 LCDC00LCD clock (f
6
CLK
/2
00
01
10
11
Select f
Note
Remarks 1.
2.
3.
f
7
CLK
/2
f
8
CLK
/2
f
9
CLK
/2
f
X
so that a clock of at least 32 kHz is set for the internal clock f
fX: Main system clock oscillation frequency
fXT: Subsystem clock oscillation frequency
The parenthesized values apply to operation at fX = 5.0 MHz or fXT = 32.768 kHz
Caution Always set bits 4 to 7 to 0.
CLK
) selection
LCD
) selection
Note
CLK
.
Examples of the frame frequencies when the internal clock is fXT (32.768 kHz) are shown in Table 5-14 below.
Table 5-14. Frame Frequency (Hz)
Time Division
9
XT
/2
LCD Clock (f
LCD
)
f
(64 Hz)
4163264128
Preliminary Product Information U14411EJ1V0PM00
8
XT
/2
f
(128 Hz)
7
XT
/2
f
(256 Hz)
(512 Hz)
6
XT
/2
f
53
µµµµ
PD78F9328
(3) Port function register 8 (PF8)
This register is used to select whether S17/P85 to S22/P80 are used as LCD segment signal outputs or
general-purpose ports.
PF8 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 5-28. Format of Port Function Register 8
Symbol76543210AddressAfter resetR/W
PF800PF85PF84PF83PF82PF81PF80FF58H00HR/W
PF8nPort function of P8n (n = 0 to 5)
0Operates as a general-purpose port
1Operates as an LCD segment signal output
54
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
6. INTERRUPT FUNCTION
6.1 Interrupt Types
Two types of interrupts are supported.
(1) Non-maskable interrupts
Non-maskable interrupt requests are acknowledged unconditionally, i.e. even when interrupts are disabled.
These interrupts take precedence over all other interrupts and are not subject to interrupt priority control.
A non-maskable interrupt causes the generation of the standby release signal
An interrupt from the watchdog timer is the only non-maskable interrupt source supported in the µPD78F9328.
(2) Maskable interrupts
Maskable interrupts are subject to mask control. If two or more maskable interrupts occur simultaneously, the
default priority listed in Table 6-1 applies.
A maskable interrupt causes the generation of the standby release signal.
Maskable interrupts from 2 external and 6 internal sources are supported in the µPD78F9328.
6.2 Interrupt Sources and Configuration
The µPD78F9328 supports a total of 9 maskable and non-maskable interrupt sources (see
Table 6-1
).
Preliminary Product Information U14411EJ1V0PM00
55
Table 6-1. Interrupt Sources
µµµµ
PD78F9328
Non-maskable
Maskable
Notes 1.
Default priority is the priority order when more than one maskable interrupt request is generated at the
Basic configuration types (A), (B), and (C) correspond to (A), (B), and (C) in
2.
Note 1
Priority
−
0INTWDTWatchdog timer overflow (with
1INTP0Pin input edge detectionExternal0006H(C)
2INTCSI10End of serial interface 10 3-wire
3INTWTWatch timer interrupt000AH
4INTTM30Generation of 8-bit timer 30
5INTTM40Generation of 8-bit timer 40
6INTKR00Key return signal detectionExternal0010H(C)
7INTWTIWatch timer interval timer
NameTrigger
INTWDTWatchdog timer overflow (with
Interrupt SourceInterrupt TypeDefault
watchdog timer mode 1 selected)
interval timer mode selected)
SIO transfer reception
matching signal
matching signal
interrupt
Internal/
External
Internal0004H
Internal
Internal0012H(B)
Vector Table
Address
0008H
000CH
000EH
same time. 0 is the highest priority and 7 is the lowest.
Figure 6-1
Basic
Configuration
Type
.
Note 2
(A)
(B)
(B)
Remark
Only one of the two watchdog timer interrupt sources, non-maskable or maskable (internal), can be
selected.
56
Preliminary Product Information U14411EJ1V0PM00
Figure 6-1. Basic Configuration of Interrupt Function
(A) Internal non-maskable interrupt
Internal bus
µµµµ
PD78F9328
Interrupt request
(B) Internal maskable interrupt
Interrupt request
IF
(C) External maskable interrupt
MK
Internal bus
IE
Internal bus
Vector table
address generator
Standby release signal
Vector table
address generator
Standby release signal
INTM0, KRM00
Edge
Interrupt request
detection
circuit
INTM0: External interrupt mode register 0
KRM00: Key return mode register 00
IF: Interrupt request flag
IE: Interrupt enable flag
MK: Interrupt mask flag
Preliminary Product Information U14411EJ1V0PM00
MK
IF
IE
Vector table
address generator
Standby release signal
57
6.3 Interrupt Function Control Registers
Interrupts are controlled by the following five registers.
Interrupt request flag register 0 (IF0)
•
Interrupt mask flag register 0 (MK0)
•
External interrupt mode register 0 (INTM0)
•
Program status word (PSW)
•
Key return mode register 00 (KRM00)
•
Table 6-2 lists the interrupt requests and the corresponding interrupt request and interrupt mask flags.
Table 6-2. Interrupt Request Signals and Corresponding Flags
Interrupt Request SignalInterrupt Request FlagInterrupt Mask Flag
An interrupt request flag is set (1) when the corresponding interrupt request is generated, or when an
instruction is executed. It is cleared (0) when the interrupt request is acknowledged, when the RESET signal
is input, or when an instruction is executed.
IF0 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 6-2. Format of Interrupt Request Flag Register 0
Symbol<7><6><5><4><3><2><1><0>AddressAfter res etR/W
0No interrupt request signal generated
1An interrupt request signal is generated and an interrupt request made
Cautions 1. The WDTIF flag can be read/written only when the watchdog timer is being used as an
interval timer. It must be cleared to 0 if the watchdog timer is used in watchdog timer
mode 1 or 2.
2. Because P61 functions alternately as an external interrupt, when the output level
changes after the output mode of the port function is specified, the interrupt request flag
will be inadvertently set. Therefore, be sure to preset the interrupt mask flag (PMK0)
before using the port in output mode.
Preliminary Product Information U14411EJ1V0PM00
59
µµµµ
PD78F9328
(2) Interrupt mask flag register 0 (MK0)
Interrupt mask flags are used to enable and disable the corresponding maskable interrupts.
MK0 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to FFH.
Figure 6-3. Format of Interrupt Mask Flag Register 0
Symbol<7><6><5><4><3><2><1><0>AddressAfter res etR/W
Cautions 1. When the watchdog timer is being used in watchdog timer mode 1 or 2, any attempt to
read the WDTMK flag results in an undefined value being detected.
2. Because P61 functions alternately as an external interrupt, when the output level
changes after the output mode of the port function is specified, the interrupt request flag
will be inadvertently set. Therefore, be sure to preset the interrupt mask flag (PMK0)
before using the port in output mode.
60
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
(3) External interrupt mode register 0 (INTM0)
This register is used to specify the valid edge for INTP0.
INTM0 is set using an 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
Figure 6-4. Format of External Interrupt Mode Register 0
Symbol76543210AddressAfter resetR/W
INTM00000ES01ES0000FFECH00HR/W
ES01ES 00INTP0 valid edge selection
00Falling edge
01Rising edge
10Setting prohibit ed
11Both rising and falling edges
Cautions 1. Always set bits 0, 1, and 4 to 7 to 0.
2. Before setting INTM0, set (1) the interrupt mask flag (PMK0) to disable interrupts.
To enable interrupts, clear (0) the interrupt request flag (PIF0), then clear (0) the interrupt
mask flag (PMK0).
Preliminary Product Information U14411EJ1V0PM00
61
µµµµ
PD78F9328
(4) Program status word (PSW)
The program status word is used to hold the instruction execution results and the current status of the
interrupt requests. The IE flag, used to enable and disable maskable interrupts, is mapped to the PSW.
The PSW can be read and written in 8-bit units, as well as in 1-bit units by using bit manipulation instructions
and dedicated instructions (EI and DI). When a vector interrupt is acknowledged, the PSW is automatically
saved to the stack, and the IE flag is reset (0).
RESET input sets the PSW to 02H.
Figure 6-5. Program Status Word Configuration
SymbolAfter reset
76543210
IEZ0AC001CYPSW
IE
0
1
Disabled
Enabled
Interrupt acknowledgement enable/disable
02H
Used in the execution of ordinary instructions
62
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
(5) Key return mode register 00 (KRM00)
This register is used to set the pin that is to detect the key return signal (rising edge of port 4).
KRM00 is set using a 1-bit or 8-bit memory manipulation instruction.
RESET input sets this register to 00H.
0Key return signal not detected
1Key return signal detected (port 4 falling edge detection)
Cautions 1. Always set bits 1 to 7 to 0.
2. Before setting KRM00, set (1) bit 6 (KRMK00) of MK0 to disable interrupts. To enable
interrupts, clear (0) KRMK00 after clearing (0) bit 6 (KRIF00) of IF0.
3. On-chip pull-up resistors are automatically connected in input mode to the pins specified
for key return signal detection (P40 to P43). Although these resistors are disconnected
when the mode changes to output, key return signal detection continues unchanged.
P40/KR00
P41/KR01
P42/KR02
P43/KR03
Note
Figure 6-7. Block Diagram of Falling Edge Detection Circuit
Key return mode register 00
(KRM00)
Note
Falling edge
detection circuit
Selector
KRMK00
For selecting the pin to be used as falling edge input.
KRIF00 setting signal
Standby release signal
Preliminary Product Information U14411EJ1V0PM00
63
µµµµ
PD78F9328
7. STANDBY FUNCTION
7.1 Standby Function
A standby function is incorporated to minimize the system’s power consumption. There are two standby modes:
HALT and STOP.
The HALT and STOP modes are selected using the HALT and STOP instructions.
(1) HALT mode
In this mode, the CPU operating clock is stopped. The average current consumption can be reduced by
intermittent operation combining this mode with the normal operation mode.
(2) STOP mode
In this mode, main system clock oscillation is stopped. All operations performed with the main system clock
are suspended, thus minimizing power consumption.
Caution When shifting to STOP mode, execute the STOP instruction after first stopping the operation
of the hardware.
64
Preliminary Product Information U14411EJ1V0PM00
Table 7-1. Operation Statuses in HALT Mode
µµµµ
PD78F9328
Item
HALT Mode Operation Status During M ai n
System Clock Operat i on
Subsystem Clock
Operating
Subsystem Clock
Stopped
HALT Mode Operation Status During S ub system
Clock Operation
Main System Clock
Operating
Main System Clock
Stopped
Main system clockCan be oscillatedOscillation stopped
CPUOperation stopped
Ports (output latches )Status before HALT mode setti ng retained
8-bit timer 30, 40OperableOperation stopped
Watch timerOperable
Operable
Note 1
Operable
Operable
Note 2
Watchdog timerOperableOperation stopped
Power-on-clear circuitOperable
Key return circuitOperabl e
Serial interface 10Operable
LCD controller/driver
External interrupts
Notes 1.
Operation is enabled when the main system clock is selected
Operation is enabled when the subsystem clock is selected
2.
Operation is enabled only when an external clock is selected
3.
The HALT instruction can be set after display instruction execution
4.
Operation is enabled only for a maskable interrupt that is not masked
5.
Operable
Operable
Note 4
Note 5
Operable
Notes 1, 4
Operable
Note 4
Operable
Operable
Note 3
Notes 2, 4
Table 7-2. Operation Statuses in STOP Mode
STOP Mode Operation Status Duri ng M ai n System Clock OperationItem
Subsystem Clock OperatingSubsystem Clock Stopped
Main system clockOscillation stopped
CPUOperation stopped
Ports (output latches )Status before STOP mode set t i ng retained
8-bit timer 30, 40Operati on stopped
Watch timer
Operable
Watchdog timerOperation stopped
Power-on-clear circuitOperable
Key return circuitOperabl e
Serial interface 10
LCD controller/driver
External interrupts
Notes 1.
Operation is enabled when the subsystem clock is selected.
Operation is enabled only when an external clock is selected.
2.
Operation is enabled only for a maskable interrupt that is not masked
3.
Operable
Operable
Operable
Note 1
Note 2
Note 1
Note 3
Operation stopped
Operation stopped
Preliminary Product Information U14411EJ1V0PM00
65
µµµµ
PD78F9328
7.2 Standby Function Control Register
The oscillation stabilization time selection register (OSTS) is used to control the wait time from the time STOP
mode is released by an interrupt request until oscillation stabilizes.
OSTS is set using an 8-bit memory manipulation instruction.
RESET input sets this register to 04H. Note that the time required for oscillation to stabilize after RESET input will
be 215/fX, rather than 217/fX.
Figure 7-1. Format of Oscillation Stabilization Time Selection Register
Symbol76543210AddressAfter resetR/W
OSTS00000OSTS2OSTS1OSTS0FFFAH04HR/W
OSTS2OSTS1OSTS0Oscillation stabilization time selection
12
/fX(819 µs)
000
010
100
Other than aboveSetting prohibited
2
15
/fX(6.55 ms)
2
17
/fX(26.2 ms)
2
Caution The wait time required after releasing STOP mode does not include the time (“a” in the following
figure) required for the clock oscillation to restart after STOP mode is released, regardless of
whether STOP mode is released by RESET input or interrupt.
STOP mode release
X1 pin voltage
waveform
a
Remarks 1.
SS
V
X
: Main system clock oscillation frequency
f
The parenthesized values apply to operation at fX = 5.0 MHz.
2.
66
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
8. RESET FUNCTION
8.1 Reset Function
The µPD78F9328 can be reset using the following three signals.
(1) External reset signal input via RESET pin
(2) Internal reset by watchdog timer runaway time detection
(3) Internal reset using power-on-clear circuit (POC)
The external and internal reset signals are functionally equivalent. When RESET is input, program execution
begins from the addresses written at addresses 0000H and 0001H.
If a low-level signal is applied to the RESET pin, or if the watchdog timer overflows, a reset occurs, causing each
item of the hardware to enter the states listed in Table 8-1. While a reset is being applied, or while the oscillation
frequency is stabilizing immediately after the end of a reset sequence, each pin remains in the high-impedance state.
If a high-level signal is applied to the RESET pin, the reset sequence is terminated, and program execution begins
once the oscillation stabilization time (215/fX) has elapsed. A reset sequence caused by a watchdog timer overflow is
terminated automatically and again program execution begins upon the elapse of the oscillation stabilization time
(215/fX).
Cautions 1. To use an external reset sequence, input a low-level signal to the RESET pin for at least 10
s.
µµµµ
2. When a reset is used to release STOP mode, the data of when STOP mode was entered is
retained during the reset sequence, except for the port pins, which are in the high-impedance
state.
Figure 8-1. Reset Function Block Diagram
RESET
Count clock
Power-on-clear circuit
Reset control circuit
Watchdog timer
Stop
Overflow
V
DD
Reset signal
Interrupt function
Preliminary Product Information U14411EJ1V0PM00
67
µµµµ
Table 8-1. Status of Hardware After Reset
HardwareStatus After Reset
Program counter (PC)
Stack pointer (SP)Undefined
Program status word (PSW)02H
RAM
Ports (P0 to P2, P4, P6, P8) (output latches)00H
Port mode registers (PM0 to PM2, PM4, PM6, PM 8)FFH
Port function regist er 8 (P F8)00H
Pull-up resistor option registers (PU0, PUB2)00H
Processor clock control register (PCC)02H
Subclock oscillation mode register (SCKM)00H
Subclock control register (CSS)00H
Oscillation stabilization time selection register (OSTS)04H
8-bit timer 30, 40
Watch timerMode control register (WTM)00H
Watchdog timerMode regist er (WDTM )00H
Timer counters (TM30, TM40)00H
Compare registers (CR30, CR40, CRH40)Undefined
Mode control registers (TMC30, TM C40)00H
Carrier generator output control register00H
Serial operation mode register 10 (CSIM10)00HSerial interface 10
Transmission/recept i on s hi ft register 10 (SIO10)Undefined
Display mode register 0 (LCDM 0)00HLCD controller/driver
Clock control register 0 (LCDC0)00H
Request flag register 0 (IF0)00H
Mask flag register 0 (MK0)FFH
External interrupt mode regis ter 0 (INTM0)00H
Key return mode register 00 (KRM00)00H
Contents of reset
vector table (0000H,
0001H) set
Undefined
Undefined
00H
Note 3
PD78F9328
Note 2
Note 2
Notes 1.
68
While a reset signal is being input, and during the oscillation stabilization period, only the contents of
the PC will be undefined; the remainder of the hardware will be the same state as after reset.
In standby mode, RAM enters the hold state after reset.
2.
The value is 04H only after a power-on-clear reset.
3.
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
8.2 Power Failure Detection Function
When a reset is generated via the power-on-clear circuit, bit 2 (POCOF1) of the power-on-clear register (POCF1)
is set (1). This bit is then cleared (0) by an instruction written to POCF1. After a power-on-clear reset (i.e. after
program execution has started from address 0000H), a power failure can be detected by detecting POCOF1.
Figure 8-2. Format of Power-on-Clear Register 1
Symbol76543210AddressAfter resetR/W
Note
POCF100000POCOF100FFDDH
POCOF1Power-on-clear generation status detection
0Power-on-clear not generated, or cleared by write operat i on
1Power-on-clear reset generated
The value is 04H only after a power-on-clear reset.
Note
00H
R/W
Preliminary Product Information U14411EJ1V0PM00
69
µµµµ
PD78F9328
9. FLASH MEMORY PROGRAMMING
The program memory incorporated in the µPD78F9328 is flash memory.
Writing to flash memory can be performed with the device mounted in the target system (on-board programming).
Writing is performed with a dedicated flash memory programmer (Flashpro III (part number: FL-PR3 and PG-FP3))
connected to the host machine and the target system.
Remark
FL-PR3 is a product of Naito Densei Machida Mfg. Co., Ltd.
9.1 Selection of Communication Mode
Writing to flash memory is performed via serial communication using Flashpro III. Select one of the
communication modes from those in Table 9-1. The selection of the communication mode is made by using the
format shown in Figure 9-1. The communication mode is selected by the number of VPP pulses shown in Table 9-1.
Table 9-1. Communication Modes
Communication ModePi n UsedNumber of VPP Pulses
3-wire serial I/OSCK10/P20
SO10/P21
SI10/P22
Caution Always select the communication mode using the number of pulses shown in Table 9-1.
Figure 9-1. Communication Mode Selection Format
10 V
V
V
PP
DD
V
SS
12n
0
70
RESET
V
DD
V
SS
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
9.2 Flash Memory Programming Functions
Operations such as writing to flash memory are performed by various command/data transmission and reception
operations according to the selected communication mode. Table 9-2 shows the major functions of flash memory
programming.
Table 9-2. Major Functions of Flash Memory Programming
FunctionDescription
Batch eraseDeletes the entire memory contents.
Batch blank checkChecks the deletion status of the entire memory.
Data writeWrites to flash memory based on the write s t art address and the number of data to
be written (number of bytes).
Batch verifyChecks the entire memory contents and the input data.
9.3 Flashpro III Connection Example
An example of the connection between the µPD78F9328 and Flashpro III is shown in Figure 9-2.
Note
n = 1, 2
Figure 9-2. Connection of Flashpro III Using 3-Wire Serial I/O Mode
Flashpro III PD78F9328
Note
VPPn
V
DD
RESET
CLKX1
SCK
SO
SI
GND
µ
V
PP
V
DD
RESET
SCK10
SI10
SO10
SS
V
Preliminary Product Information U14411EJ1V0PM00
71
9.4 Setting Example Using Flashpro III (PG-FP3)
When using Flashpro III (PG-FP3) to write to flash memory, set as follows.
<1> Download the parameter file
<2> Select the serial mode and serial clock with the type command
<3> A setting example using the PG-FP3 is shown below
Table 9-3. Setting Example Using PG-FP3
µµµµ
PD78F9328
Communication ModeSetting Example Usi ng P G -FP 3Number of V
Pulses
3-wire serial I/O mode
The number of V
Note
COMM PORTSIO-ch0
On Target BoardCPU CLK
In Flashpro
On Target Board4.1943 MHz
SIO CLK1.0 MHz
In Flashpro4.0 MHz
SIO CLK1.0 MHz
PP
pulses supplied from Flashpro III during the initialization of serial communication. The
0
pins to be used in communication are determined by this number.
Remark
COMM PORT: Selection of the serial port
SIO CLK: Selection of the serial clock frequency
CPU CLK: Selection of the input CPU clock source
Note
PP
72
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
10. INSTRUCTION SET OVERVIEW
The instruction set for the µPD78F9328 is listed in this section.
10.1 Conventions
10.1.1 Operand formats and descriptions
The description made in the operand field of each instruction conforms to the operand format for the instructions
listed below (the details conform to the assembly specification). If more than one operand format is listed for an
instruction, one is selected. Uppercase letters, #, !, $, and brackets [ ] are used to specify keywords, which must be
written exactly as they appear. The meanings of these special characters are as follows:
#: Immediate data specification
•
$: Relative address specification
•
!: Absolute address specification
•
[ ]: Indirect address specification
•
Immediate data should be described using appropriate values or labels. The specification of values and labels
must be accompanied by #, !, $, or [ ].
Operand registers, expressed as r or rp in the formats, can be described using both functional names (X, A, C,
etc.) and absolute names (R0, R1, R2, and other names listed in Table 5-1 below).
Table 10-1. Operand Formats and Descriptions
FormatDescription
r
rp
sfr
saddr
saddrp
addr16
addr5
word
byte
bit
Remark
For details concerning special function register symbols, refer to
Registers
X (R0), A (R1), C (R2), B (R3), E (R4), D (R5), L (R6), H (R7)
AX (RP0), BC (RP1), DE (RP 2), HL (RP3)
Special function regis ter symbol
FE20H to FF1FH Immediate data or l abel
FE20H to FF1FH Immediate data or l abel (even addresses only)
0000H to FFFFHImmediate data or label
(only even addresses for 16-bit data transfer instructions )
0040H to 007FHImmediate data or label (even addres ses only)
16-bit immediate data or label
8-bit immediate data or label
3-bit immediate data or label
.
Table 4-1 Special Function
Preliminary Product Information U14411EJ1V0PM00
73
10.1.2 Operation field definitions
A: A register (8-bit accumulator)
X: X register
B: B register
C: C register
D: D register
E: E register
H: H register
L: L register
AX: AX register pair (16-bit accumulator)
BC: BC register pair
DE: DE register pair
HL: HL register pair
PC: Program counter
SP: Stack pointer
PSW: Program status word
CY: Carry flag
AC: Auxiliary carry flag
Z: Zero flag
IE: Interrupt request enable flag
NMIS: Flag to indicate that a non-maskable interrupt is being processed
(): Contents of a memory location indicated by a parenthesized address or register name
H
, XL: Higher and lower 8 bits of a 16-bit register
X
: Logical product (AND)
∧
: Logical sum (OR)
∨
: Exclusive OR
∀
: Inverted data
addr16: 16-bit immediate data or label
jdisp8: Signed 8-bit data (displacement value)
µµµµ
PD78F9328
10.1.3 Flag operation field definitions
(Blank): No change
0: Clear to 0
1: Set to 1
: Set or clear according to the result
×
R: Restore to the previous value
74
Preliminary Product Information U14411EJ1V0PM00
10.2 Operations
MOV
XCH
MOVW
XCHWAX, rp
r, #byte36r ← byte
saddr , #byte36(saddr) ← byte
sfr, #byte36sfr ← byte
A, r
r, A
A, saddr24A ← (saddr)
saddr, A24(saddr) ← A
A, sfr24A ← sfr
sfr, A24sfr ← A
A, !addr1638A ← (addr16)
!addr16, A38(addr16) ← A
PSW, #byte36PSW ← byte
A, PSW24A ← PSW
PSW, A24PSW ← A
A, [DE]16A ← (DE)
[DE], A16(DE) ← A
A, [HL]16A ← (HL)
[HL], A16(HL) ← A
A, [HL + byte]26A ← (HL + byte)
[HL + byte], A26(HL + byte) ← A
A, X14A ↔ X
A, r
A, saddr26A ↔ (saddr)
A, sfr26A ↔ (sfr)
A, [DE]18A ↔ (DE)
A, [HL]18A ↔ (HL)
A, [HL + byte]28A ↔ (HL + byte)
rp, #word36rp ← word
AX, saddrp26AX ← (saddrp)
saddrp, AX28(saddrp) ← AX
AX, rp
rp, AX
Note 1
Note 1
Note 2
Note 3
Note 3
Note 3
24A
24r
26A
14AX ← rp
14rp
18AX ↔ rp
r
←
A
←
r
↔
AX
←
µµµµ
PD78F9328
FlagMnemonicOperandByteClockOperation
ZACCY
×××
×××
Notes 1.
Remark
Except when r = A.
Except when r = A or X.
2.
Only when rp = BC, DE, or HL.
3.
The instruction clock cycle is based on the CPU clock (f
register (PCC).
Preliminary Product Information U14411EJ1V0PM00
CPU
) specified by the processor clock control
75
ADD
ADDC
SUB
SUBC
AND
A, #byte24A, CY ← A + byte
saddr, #byte36(saddr), CY ← (saddr) + byte
A, r24A, CY ← A + r
A, saddr24A, CY ← A + (saddr)
A, !addr1638A, CY ← A + (addr16)
A, [HL]16A, CY ← A + (HL)
A, [HL + byte]26A, CY ← A + (HL + byte)
A, #byte24A, CY ← A + byte + CY
saddr, #byte36(saddr), CY ← (saddr) + byte + CY
A, r24A, CY ← A + r + CY
A, saddr24A, CY ← A + (saddr) + CY
A, !addr1638A, CY ← A + (addr16) + CY
A, [HL]16A, CY ← A + (HL) + CY
A, [HL + byte]26A, CY ← A + (HL + byte) + CY
A, #byte24A, CY ← A − byte
saddr, #byte36(saddr), CY ← (saddr) − byte
A, r24A, CY ← A − r
A, saddr24A, CY ← A − (saddr)
A, !addr1638A, CY ← A − (addr16)
A, [HL]16A, CY ← A − (HL)
A, [HL + byte]26A, CY ← A − (HL + byte)
A, #byte24A, CY ← A − byte − CY
saddr, #byte36(saddr), CY ← (saddr) − byte − CY
A, r24A, CY ← A − r − CY
A, saddr24A, CY ← A − (saddr) − CY
A, !addr1638A, CY ← A − (addr16) − CY
A, [HL]16A, CY ← A − (HL) − CY
A, [HL + byte]26A, CY ← A − (HL + byte) − CY
A, #byte24A ← A
saddr, #byte36(saddr) ← (saddr)
A, r24A ← A ∧ r
A, saddr24A ← A
A, !addr1638A ← A
A, [HL]16A ← A
A, [HL + byte]26A ← A
The instruction clock cycle is based on the CPU clock (f
register (PCC).
Preliminary Product Information U14411EJ1V0PM00
CPU
) specified by the processor clock control
OR
XOR
CMP
ADDWAX, #word36AX, CY ← AX + word
SUBWAX, #word36AX, CY ← AX − word
CMPWAX, #word36AX − word
INC
DEC
INCWrp14rp ← rp + 1
DECWrp14rp ← rp − 1
RORA, 112(CY, A7 ← A0, A
ROLA, 112(CY, A0 ← A7, A
RORCA, 112(CY ← A0, A7 ← CY, A
ROLCA, 112(CY ← A7, A0 ← CY, A
A, #byte24A ← A
saddr, #byte36(saddr) ← (saddr)
A, r24A ← A
A, saddr24A ← A
A, !addr1638A ← A
A, [HL]16A ← A
A, [HL + byte]26A ← A
A, #byte24A ← A
saddr, #byte36(saddr) ← (saddr) ∀ byte
A, r24A ← A
A, saddr24A ← A ∀ (saddr)
A, !addr1638A ← A ∀ (addr16)
A, [HL]16A ← A ∀ (HL)
A, [HL + byte]26A ← A ∀ (HL + byte)
A, #byte24A − byte
saddr, #byte36(saddr) − byte
A, r24A − r
A, saddr24A − (saddr)
A, !addr1638A − (addr16)
A, [HL]16A − (HL)
A, [HL + byte]26A − (HL + byte)
The instruction clock cycle is based on the CPU clock (f
register (PCC).
Preliminary Product Information U14411EJ1V0PM00
CPU
) specified by the processor clock control
BC$addr1626PC ← PC + 2 + jdisp8 if CY = 1
BNC$addr1626PC ← PC + 2 + jdisp8 if CY = 0
BZ$addr1626PC ← PC + 2 + jdisp8 if Z = 1
BNZ$addr1626PC ← PC + 2 + jdisp8 if Z = 0
BT
BF
DBNZ
NOP12No Operati on
EI36IE ← 1 (Enable Interrupt)
DI36IE ← 0 (Disable Interrupt)
HALT12Set HA LT Mode
STOP12Set STOP Mode
saddr.bit, $addr16410PC ← PC + 4 + jdisp8
if (saddr.bit) = 1
sfr.bit, $addr16410PC ← PC + 4 + jdisp8 if sfr.bit = 1
A.bit, $addr1638PC ← PC + 3 + jdisp8 if A.bit = 1
PSW.bit, $addr16410PC ← PC + 4 + jdisp8 if PSW.bit = 1
saddr.bit, $addr16410PC ← PC + 4 + jdisp8
if (saddr.bit) = 0
sfr.bit, $addr16410PC ← PC + 4 + jdisp8 if sfr.bit = 0
A.bit, $addr1638PC ← PC + 3 + jdisp8 if A.bit = 0
PSW.bit, $addr16410PC ← PC + 4 + disp8 if PSW.bit = 0
B, $addr1626B ← B − 1, then
PC ← PC + 2 + jdisp8 if B ≠ 0
C, $addr1626C ← C − 1, then
PC ← PC + 2 + jdisp8 if C ≠ 0
saddr, $addr1638(saddr) ← (saddr) − 1, then
PC ← PC + 3 + jdisp8 if (saddr) ≠ 0
µµµµ
PD78F9328
FlagMnemonicOperandByteClockOperation
ZACCY
Remark
The instruction clock cycle is based on the CPU clock (f
register (PCC).
P80/S22 to P85/S17
Pin P60/TO40
Per pin (except P60/TO40)
Total for all pins (except P60/TO40)
Per pin30mAOutput current, lowI
Total for all pins80mA
+ 0.3
Note
DD
+ 0.3
Note
LC0
+ 0.3
30mA
−
10mA
−
30mA
−
40 to +85
−
65 to +150
−
PD78F9328
V
VOutput voltage
V
C
°
C
°
6.5 V or lower
Note
Caution Product quality may suffer if the absolute maximum rating is exceeded even momentarily for
any parameter. That is, the absolute maximum ratings are rated values at which the product is
on the verge of suffering physical damage, and therefore the product must be used under
conditions that ensure that the absolute maximum ratings are not exceeded.
Remark
Unless specified otherwise, the characteristics of alternate-function pins are the same as those of port
pins.
Indicates only oscillator characteristics. Refer to AC Characteristics for instruction execution time.
Time required to stabilize oscillation after reset or STOP mode release.
2.
(TA =
40 to +85°C, VDD = 1.8 to 5.5 V)
−−−−
After VDD has reached the MIN.
Note 2
oscillation voltage range
Note 2
, tXL)
1.05.0MHzCeramic
4ms
1.05.0MHzCrystal
30ms
1.05.0MHzExternal
85500ns
Cautions 1. When using the main system clock oscillator, wire as follows in the area enclosed by the
broken lines in the above figures to avoid an adverse effect from wiring capacitance.
Keep the wiring length as short as possible.
••••
Do not cross the wiring with other signal lines.
••••
Do not route the wiring near a signal line through which a high fluctuating current flows.
••••
Always make the ground point of the oscillator capacitor the same potential as VSS.
••••
Do not ground the capacitor to a ground pattern through which a high current flows.
••••
Do not fetch signals from the oscillator.
••••
2. When the main system clock is stopped and the device is operating on the subsystem clock,
wait until the oscillation stabilization time has been secured by the program before switching
back to the main system clock.
Indicates only oscillator characteristics. Refer to AC Characteristics for instruction execution time.
The time required for oscillation to stabilize after V
2.
Oscillation frequency
Note 1
XT
(f
)
Oscillation
stabilization time
XT1 input frequency
Note 1
XT
(f
)
XT1 input high-/lowlevel width (t
XTH
, t
Note 2
XTL
)
40 to +85°C, VDD = 1.8 to 5.5 V)
−−−−
3232.76835kHz
VDD = 4.5 to 5.5 V1.22
3235kHzExternal
14.315.6
DD
reaches the MIN. oscillation voltage range. Use a
10
resonator to stabilize oscillation during the oscillation wait time.
Cautions 1. When using the subsystem clock oscillator, wire as follows in the area enclosed by the
broken lines in the above figures to avoid an adverse effect from wiring capacitance.
Keep the wiring length as short as possible.
••••
Do not cross the wiring with the other signal lines.
••••
Do not route the wiring near a signal line through which a high fluctuating current flows.
••••
Always make the ground point of the oscillator capacitor the same potential as V
••••
Do not ground the capacitor to a ground pattern through which a high current flows.
••••
Do not fetch signals from the oscillator.
••••
SS
.
s
s
µ
2. The subsystem clock oscillator is designed as a low-amplitude circuit for reducing current
consumption, and is more prone to malfunction due to noise than the main system clock
oscillator. Particular care is therefore required with the wiring method when the subsystem
clock is used.
82
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
DC Characteristics (TA =
20 to +60°C, VDD = 1.8 to 5.5 V) (1/2)
−−−−
ParameterSymbolConditionsMIN.TYP.MAX.Unit
OL
Per pin10mAOutput current, lowI
Total for all pins80mA
OH
Output current, highI
Per pin (except P60/TO40)
P60/TO40VDD = 3.0 V, VOH = 1.0 V
7
−
15
−
Total for all pins (except P60/TO40)
Input voltage, high
Input voltage, low
Output voltage, high
Output voltage, low
V
V
V
V
V
V
V
V
V
V
V
V
V
V
OH11
OH12
OH21
OH22
OH31
OH32
IH1
P00 to P03, P10, P11,
VDD = 2.7 to 5.5 V0.7 V
P21, P22, P60
IH2
RESET, P20, P40 to P43,
VDD = 2.7 to 5.5 V0.8 V
P61
IH3
X1, X2VDD − 0.1V
IH4
XT1, XT2VDD − 0.1V
IL1
P00 to P03, P10, P11,
VDD = 2.7 to 5.5 V00.3 V
P21, P22, P60
IL2
RESET, P20, P40 to P43,
VDD = 2.7 to 5.5 V00.2 V
P61
IL3
X1, X200.1V
IL4
XT1, XT200.1V
P00 to P03, P10, P11,
P20 to P22, P40 to P43,
P61
P60/TO40
P80/S22 to P85/S17
OL11
P00 to P03, P10, P11,
P20 to P22, P40 to P43,
P60, P61
OL12
OL21
P80/S22 to P85/S17
OL22
1.8 ≤ VDD ≤ 5.5 V,
OH
I
= −100 µA
DD
1.8 ≤ V
OH
I
≤ 5.5 V,
= −500 µA
1.8 ≤ VDD ≤ 5.5 V,
OH
I
= −400 µA
DD
1.8 ≤ V
OH
I
≤ 5.5 V,
= −2 mA
1.8 ≤ VDD ≤ 5.5 V,
OH
I
= −100 µA
DD
1.8 ≤ V
OH
I
≤ 5.5 V,
= −500 µA
1.8 ≤ VDD ≤ 5.5 V,
OL
I
= 400 µA
DD
1.8 ≤ V
OL
I
1.8 ≤ V
OL
I
1.8 ≤ V
OL
I
≤ 5.5 V,
= 2 mA
LC0
≤ 5.5 V,
= 400 µA
LC0
≤ 5.5 V,
= 2 mA
DD
DD
0.9 V
DD
DD
0.9 V
00.1 V
00.1 V
DD
− 0.5V
V
DD
− 0.7V
V
DD
− 0.5V
V
DD
− 0.7V
V
LC0
− 0.5V
V
LC0
− 0.7V
V
1mA
−
24mA
−
15mA
−
DD
V
DD
V
DD
V
DD
V
DD
DD
VV
V
VV
V
V
V
DD
VV
DD
V
DD
VV
DD
V
0.5V
0.7V
0.5V
0.7V
Remark
Unless specified otherwise, the characteristics of alternate-function pins are the same as those of port
pins.
Preliminary Product Information U14411EJ1V0PM00
83
DC Characteristics (TA = –40 to +85°C, VDD = 1.8 to 5.5 V) (2/2)
ParameterSymbolConditionsMIN.TYP.MAX.Unit
high
low
Output leakage current,
high
Output leakage current,
low
Software pull-up
resistors
Supply current
Note 1
Ceramic/crystal
oscillation
LIH1
I
LIH2
I
I
I
I
I
R
I
LIL1
LIL2
LOH
LOL
1
DD1
DD2
DD4
DD5
VIN = V
DD
P00 to P03, P10,
P11, P20 to P22,
P40 to P43, P60,
P61, RESET
X1, X2, XT1, XT220
VIN = 0 V
P00 to P03, P10,
P11, P20 to P22,
P40 to P43, P60,
P61, RESET
X1, X2, XT1, XT2
OUT
OUT
= V
= 0 V
DD
V
V
VIN = 0 VP00 to P03, P10,
P11, P20 to P22,
P40 to P43
5.0-MHz crystal oscillation
operating mode
5.0-MHz crystal oscillation
HALT mode
32.768-kHz crystal
oscillation HALT mode
Note 4
STOP mode
VDD = 5.5 V
DD
V
VDD = 5.5 V1.23.6mAI
DD
V
VDD = 5.5 V2555
VDD = 3.3 V525
VDD = 5.5 V230
DD
V
Note 2
Note 3
= 3.3 V
= 3.3 V0.51.5mA
= 3.3 V110
50100200k
5.015.0mAI
2.05.0mA
µµµµ
PD78F9328
3
3
−
20
−
3
3
−
AInput l eakage current,
µ
A
µ
AInput l eakage current,
µ
A
µ
A
µ
A
µ
Ω
AI
µ
A
µ
A
µ
A
µ
Notes 1.
Remark
84
Current flowing through ports (including current flowing through on-chip pull-up resistors) is not
included.
High-speed operation (when the processor clock control register (PCC) is set to 00H).
2.
Low-speed operation (when PCC is set to 02H)
3.
When the main system clock is stopped.
4.
Unless specified otherwise, the characteristics of alternate-function pins are the same as those of port
pins.
Preliminary Product Information U14411EJ1V0PM00
AC Characteristics
µµµµ
PD78F9328
(1) Basic operation (TA =
ParameterSymbolConditionsMIN.TYP.MAX.Unit
(Min. instruction ex ecution time)
Interrupt input
high-/low-level width
Key return pin
low-level width
RESET low-level widtht
40 to +85°C, VDD = 1.8 to 5.5 V)
−−−−
T
INTH
t
INTL
t
KRIL
t
µ
[ s]
CY
CY
VDD = 2.7 to 5.5 V0.48. 0
,
INT10
KR00 to KR0310
RSL
TCY vs. VDD (Main System Clock)
60
20
10
Guaranteed
operation
2.0
range
1.68.0
10
sCycle time
µ
s
µ
s
µ
s
µ
s
µ
1.0
Cycle time T
0.5
0.4
0.1
123456
Supply voltage VDD (V)
Preliminary Product Information U14411EJ1V0PM00
85
(2) Serial interface 10 (TA = –40 to +85°C, VDD = 1.8 to 5.5 V)
(a) 3-wire serial I/O mode (Internal clock output)
ParameterSymbolConditionsMIN.TYP.MAX.Unit
KCY1
VDD = 2.7 to 5.5 V800nsSCK10 cycle timet
KH1
VDD = 2.7 to 5.5 Vt
,
KL1
t
SIK1
VDD = 2.7 to 5.5 V150nsSI10 setup time
t
KSI1
VDD = 2.7 to 5.5 V400nsSI10 hold time
t
R = 1 kΩ, C = 100 pF
KSO1
Note
VDD = 2.7 to 5.5 V0250nsSO10 output delay tim e
width
(to SCK10 ↑)
(from SCK10 ↑)
from SCK10
Note
↓
R and C are the load resistance and load capacitance of the SO10 output line.
t
t
µµµµ
3,200ns
KCY1
/2 − 50nsSCK10 high-/low-level
KCY1
t
/2 − 150ns
500ns
800ns
2501,000ns
PD78F9328
(b) 3-wire serial I/O mode (External clock input)
ParameterSymbolConditionsMIN.TYP.MAX.Unit
KCY2
VDD = 2.7 to 5.5 V900nsSCK10 cycle timet
3,500ns
KH2
VDD = 2.7 to 5.5 V400nsSCK10 high-/low-lev el
,
KL2
t
SIK2
VDD = 2.7 to 5.5 V100nsSI10 setup ti m e
t
KSI2
VDD = 2.7 to 5.5 V400nsSI10 hold time
t
R = 1 kΩ, C = 100 pF
KSO2
Note
1,600ns
150ns
600ns
VDD = 2.7 to 5.5 V0300nsSO10 output delay tim e
2501,000ns
width
(to SCK10 ↑)
(from SCK10 ↑)
from SCK10
Note
↓
R and C are the load resistance and load capacitance of the SO10 output line.
t
t
86
Preliminary Product Information U14411EJ1V0PM00
AC Timing Measurement Point (excluding X1, XT1 input)
0.8 V
0.2 V
DD
DD
Test points
Clock Timing
1/f
t
XL
X1 input
1/f
t
XTL
µµµµ
PD78F9328
0.8 V
DD
0.2 V
DD
X
t
XH
IH3
(MIN.)
V
IL3
(MAX.)
V
XT
t
XTH
XT1 input
Interrupt Input Timing
INT
Key Return Input Timing
KR00 to KR03
RESET Input Timing
t
INTL
t
KRIL
t
INTH
V
IH4
(MIN.)
V
IL4
(MAX.)
RESET
t
RSL
Preliminary Product Information U14411EJ1V0PM00
87
Serial Transfer Timing
3-wire serial I/O mode:
SCK10
µµµµ
PD78F9328
t
KCYn
t
KLn
t
SIKn
t
KSIn
t
KHn
Remark
n = 1, 2
SI10
SO10
t
KSOn
Input data
Output data
88
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
LCD Characteristics (TA =
40 to +85°C, VDD = 1.8 to 5.5 V)
−−−−
ParameterSymbolConditionsMIN.TYP.MAX.Unit
LCD drive voltageV
LCD1
LCD division resist ance
LCD output voltage different i al
Note 3
R
LCD2
R
LC0
Note 2
Note 2
ODCIO
V
VAON0
VAON0
High resistance50100200k
Low resistance51020k
= ±5 µA1/3 bias0
Note 1
= 1
= 0
1.85. 5V
2.75. 5V
Note 1
(common)
LCD output voltage different i al
Note 3
ODSIO
V
= ±1 µA1/3 bias0
(segment)
Notes 1.
Bit 6 of LCD display mode register 0 (LCDM0)
One or the other can be selected when designing
2.
The voltage differential is the difference between the output voltage and the ideal value of the segment
3.
and common signal outputs.
Data Memory STOP Mode Low Supply Voltage Data Retention Characteristics
A
(T
=
40 to +85°C, VDD = 1.8 to 5.5 V)
−−−−
ParameterSymbolConditionsMIN.TYP.MAX.Unit
Data retention supply voltageV
Low voltage detection (POC) v ol t ageV
Power supply rise tim et
Release signal set tim et
Oscillation stabilization wait time
Note 2
DDDR
SREL
WAIT
t
1.83.6V
Response time: 2 ms
POC
Pth
VDD: 0 V → 1.8 V0.01100ms
Note 1
1.81.92.0V
STOP cancelled by RESET10
Cancelled by RESET
Cancelled by interrupt request
15
/f
2
Note 3
X
0.2V
±
0.2V
±
Ω
Ω
s
µ
s
s
Notes 1.
Remark
The response time is the time until the output is inverted following detection of voltage by POC, or the
time until operation stabilizes after the shift from the operation stopped state to the operating state.
The oscillation stabilization time is the amount of time the CPU operation is stopped in order to avoid
2.
unstable operation at the start of oscillation. Program operation does not start until both the oscillation
stabilization time and the time until oscillation starts have elapsed.
12
Selection of 2
3.
stabilization time select register (OSTS) (refer to
/fX, 215/fX, and 217/fX is possible with bits 0 to 2 (OSTS0 to OSTS2) of the oscillation
7.2 Standby Function Control Register
).
fX: Main system clock oscillation frequency
Preliminary Product Information U14411EJ1V0PM00
89
Data Retention Timing
V
DD
STOP instruction execution
RESET
STOP mode
Data retention mode
DDDR
V
STOP mode
Internal reset operation
HALT mode
t
SREL
t
WAIT
HALT mode
µµµµ
PD78F9328
Operating mode
Operating mode
V
DD
STOP instruction execution
Standby release signal
(interrupt request)
Data retention mode
V
DDDR
t
SREL
t
WAIT
90
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
APPENDIX A. DIFFERENCES BETWEEN
PD78F9328 AND MASK ROM VERSIONS
µµµµ
The µPD78F9328 is a product provided with flash memory in place of the internal ROM of the mask ROM
versions. Table A-1 shows the differences between the flash memory (µPD78F9328) and the mask ROM versions.
Table A-1. Differences Between
Flash Memory VersionMask ROM VersionItem
PD78F9328
µ
Internal
memory
IC0 pinNot providedP rov i ded
VPP pinProvidedNot provided
Electrical speci ficationsThere may be differences between mask ROM and flash memory versions.
Caution There are differences in the amount of noise tolerance and noise radiation between flash
memory versions and mask ROM versions. When considering changing from a flash memory
version to a mask ROM version during the process from experimental manufacturing to mass
production, make sure to sufficiently evaluate commercial samples (CS) (not engineering
samples (ES)) of the mask ROM versions.
Preliminary Product Information U14411EJ1V0PM00
91
APPENDIX B. DEVELOPMENT TOOLS
The following development tools are available for system development using the µPD78F9328.
Language Processing Software
RA78K0S
CC78K0S
DF789328
CC78K/0S–L
Flash Memory Writing Tools
Notes 1, 2, 3
Notes 1, 2 ,3
Notes 1, 2, 3, 5
Notes 1, 2, 3
Assembler package com m on to 78K/0S Series
C compiler package common t o 78K/0S Series
Device file for µPD789328 Subseries
C compiler library sourc e f ile common to 78K/0S Se ri es
µµµµ
PD78F9328
Flashpro III
(Part number: FL-PR3
FA-52GB
Notes 4, 5
Debugging Tools
IE-78K0S-NS
In-circuit emulator
IE-70000-MC-PS-B
AC adapter
IE-70000-98-IF-C
Interface adapter
IE-70000-CD-IF-A
PC card interface
IE-70000-PC-IF-C
Interface adapter
IE-70000-PCI-IF
Interface adapter
IE-789328-NS-EM1
Emulation board
NP-52GB
SM78K0S
ID78K0S-NS
DF789328
Notes 4, 5
Notes 1, 2
Notes 1, 2
Notes 1, 2, 5
Note 5
Note 4
Dedicated flash memory program m er
, PG-FP3)
Adapter for writing to flas h memory designed for 52-pin plastic LQFP (GB-8ET type)
In-circuit emulator t o debug hardware or software when application systems using the
78K/0S Series are developed. The IE-78K0S-NS supports an integrat ed debugger
(ID78K0S-NS). The IE-78K0S -NS i s used in combination with an interface adapter for
connection to an AC adapter, emul ation probe, or host machine.
AC adapter to supply power from a 100- to 240-V AC outlet.
Interface adapter required when using a P C-9800 S eri es computer (except notebook type)
as the host machine for t he IE-78K0S-NS (C bus supported).
PC card and interface cable required when a not ebook PC is used as the host machine for
the IE-78K0S-NS (PCMCIA socket supported).
Interface adapter required when using an I B M PC/AT™ or compatible as the host machine
for the IE-78K0S-NS (IS A bus supported).
Interface adapter required when using a P C incorporating a PCI bus as the host m achine
for the IE-78K0S-NS.
Emulation board to emulate the peri pheral hardware specific to the devic e. The IE-
789328-NS-EM1 is used in combi nat i on wi th the in-circuit emulator.
Board to connect an in-circ ui t emulator to the target system. This board is dedicated for a
52-pin plastic LQFP (GB-8ET ty pe).
System simulat or common to 78K/0S Series
Integrated debugger common to 78K/ 0S Series
Device file for µPD789328 Subseries
Notes 1.
Remark
92
Based on the PC-9800 series (MS-DOS™ + Windows™)
Based on IBM PC/AT or compatibles (Japanese/English Windows)
2.
Based on the HP9000 series 700™ (HP-UX™), SPARCstation™ (SunOS™, Solaris™), and NEWS™
Machida Mfg. Co, Ltd. regarding the purchase of these products.
Under development
5.
The RA78K0S, CC78K0S, and SM78K0S are used in combination with the DF789328 device file.
Preliminary Product Information U14411EJ1V0PM00
Real-Time OS
MX78K0S
Notes 1, 2
OS for 78K/0S Series
µµµµ
PD78F9328
Notes 1.
Based on the PC-9800 series (MS-DOS + Windows)
Based on IBM PC/AT or compatibles (Japanese/English Windows)
2.
Preliminary Product Information U14411EJ1V0PM00
93
µµµµ
PD78F9328
APPENDIX C. RELATED DOCUMENTS
Documents Related to Devices
Document No.Document Name
JapaneseEnglish
PD789322, 789324, 789326, 789327 Preliminary Product InformationTo be preparedTo be prepared
µ
PD78F9328 Preliminary Product InformationTo be preparedThis document
µ
PD789328, 789468 Subseries User’s ManualTo be preparedTo be prepared
µ
78K/0S Series User’s Manual InstructionsU11047JU11047E
Documents Related to Development Tools (User’s Manual)
Document No.Document Name
JapaneseEnglish
RA78K0S Assembler Package
SM78K0S System Simulator Windows BasedReferenceU11489JU11489E
SM78K Series System SimulatorExternal Part User Open
ID78K0S-NS Integrated Debugger Windows BasedReferenceU12901JU12901E
IE-78K0S-NS In-circ ui t EmulatorU13549JU13549E
IE-789328-NS-EM1 Emulation BoardTo be preparedTo be prepared
OperationU11622JU11622E
Assembly LanguageU11599JU11599E
Structured Assembl y LanguageU11623JU11623E
OperationU11816JU11816ECC78K0S C Compiler
LanguageU11817JU11817E
U10092JU10092E
Interface Specifi c ations
Documents Related to Embedded Software (User’s Manual)
Document No.Document Name
JapaneseEnglish
78K/0S Series OS MX78K 0SFundamentalU12938JU12938E
Other Documents
Document No.Document Name
EnglishJapanese
SEMICONDUCTORS SELECTI ON GUIDE Products & Packages (CD-ROM)X13769X
Semiconductor Device Mounting Technology ManualC10535JC10535E
Quality Grades on NEC Semic onductor DevicesC11531JC11531E
NEC Semiconductor Device Reliability /Quality Control SystemC10983JC10983E
Guide to Prevent Damage for Semi conductor Devices by Elec trostatic Discharge (ES D)C11892JC11892E
Guide to Microcontroller-Relat ed Products by Third PartiesU11416J
−
Caution The related documents listed above are subject to change without notice. Be sure to use the
latest version of each document for designing.
94
Preliminary Product Information U14411EJ1V0PM00
[MEMO]
µµµµ
PD78F9328
Preliminary Product Information U14411EJ1V0PM00
95
NOTES FOR CMOS DEVICES
1PRECAUTION AGAINST ESD FOR SEMICONDUCTORS
Note:
Strong electric field, when exposed to a MOS device, can cause destruction of the gate oxide and
ultimately degrade the device operation. Steps must be taken to stop generation of static electricity
as much as possible, and quickly dissipate it once, when it has occurred. Environmental control
must be adequate. When it is dry, humidifier should be used. It is recommended to avoid using
insulators that easily build static electricity. Semiconductor devices must be stored and transported
in an anti-static container, static shielding bag or conductive material. All test and measurement
tools including work bench and floor should be grounded. The operator should be grounded using
wrist strap. Semiconductor devices must not be touched with bare hands. Similar precautions need
to be taken for PW boards with semiconductor devices on it.
2HANDLING OF UNUSED INPUT PINS FOR CMOS
Note:
No connection for CMOS device inputs can be cause of malfunction. If no connection is provided
to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence
causing malfunction. CMOS devices behave differently than Bipolar or NMOS devices. Input levels
of CMOS devices must be fixed high or low by using a pull-up or pull-down circuitry. Each unused
DD
pin should be connected to V
being an output pin. All handling related to the unused pins must be judged device by device and
related specifications governing the devices.
or GND with a resistor, if it is considered to have a possibility of
µµµµ
PD78F9328
3STATUS BEFORE INITIALIZATION OF MOS DEVICES
Note:
Power-on does not necessarily define initial status of MOS device. Production process of MOS
does not define the initial operation status of the device. Immediately after the power source is
turned ON, the devices with reset function have not yet been initialized. Hence, power-on does
not guarantee out-pin levels, I/O settings or contents of registers. Device is not initialized until the
reset signal is received. Reset operation must be executed immediately after power-on for devices
having reset function.
EEPROM is a trademark of NEC Corporation.
MS-DOS and Windows are either registered trademarks or trademarks of Microsoft Corporation in the United
States and/or other countries.
PC/AT is a trademark of International Business Machines Corporation.
HP9000 series 700 and HP-UX are trademarks of Hewlett-Packard Company.
SPARCstation is a trademark of SPARC International, Inc.
Solaris and SunOS are trademarks of Sun Microsystems, Inc.
NEWS and NEWS-OS are trademarks of Sony Corporation.
96
Preliminary Product Information U14411EJ1V0PM00
µµµµ
PD78F9328
Regional Information
Some information contained in this document may vary from country to country. Before using any NEC
product in your application, pIease contact the NEC office in your country to obtain a list of authorized
representatives and distributors. They will verify:
•
Device availability
•
Ordering information
•
Product release schedule
•
Availability of related technical literature
•
Development environment specifications (for example, specifications for third-party tools and
components, host computers, power plugs, AC supply voltages, and so forth)
•
Network requirements
In addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary
from country to country.
NEC Electronics Inc. (U.S.)
Santa Clara, California
Tel: 408-588-6000
800-366-9782
Fax: 408-588-6130
800-729-9288
Electron Devices Division
Rodovia Presidente Dutra, Km 214
07210-902-Guarulhos-SP Brasil
Tel: 55-11-6465-6810
Fax: 55-11-6465-6829
J99.1
Preliminary Product Information U14411EJ1V0PM00
97
µµµµ
PD78F9328
• The information contained in this document is being issued in advance of the production cycle for the
device. The parameters for the device may change before final production or NEC Corporation, at its own
discretion, may withdraw the device prior to its production.
• No part of this document may be copied or reproduced in any form or by any means without the prior written
consent of NEC Corporation. NEC Corporation assumes no responsibility for any errors which may appear in
this document.
• NEC Corporation does not assume any liability for infringement of patents, copyrights or other intellectual property
rights of third parties by or arising from use of a device described herein or any other liability arising from use
of such device. No license, either express, implied or otherwise, is granted under any patents, copyrights or other
intellectual property rights of NEC Corporation or others.
• Descriptions of circuits, software, and other related information in this document are provided for illustrative
purposes in semiconductor product operation and application examples. The incorporation of these circuits,
software, and information in the design of the customer's equipment shall be done under the full responsibility
of the customer. NEC Corporation assumes no responsibility for any losses incurred by the customer or third
parties arising from the use of these circuits, software, and information.
• While NEC Corporation has been making continuous effort to enhance the reliability of its semiconductor devices,
the possibility of defects cannot be eliminated entirely. To minimize risks of damage or injury to persons or
property arising from a defect in an NEC semiconductor device, customers must incorporate sufficient safety
measures in its design, such as redundancy, fire-containment, and anti-failure features.
• NEC devices are classified into the following three quality grades:
"Standard", "Special", and "Specific". The Specific quality grade applies only to devices developed based on a
customer designated "quality assurance program" for a specific application. The recommended applications of
a device depend on its quality grade, as indicated below. Customers must check the quality grade of each device
before using it in a particular application.
Standard: Computers, office equipment, communications equipment, test and measurement equipment,
a udio and visual equipment, home electronic appliances, machine tools, personal electronic
equipment and industrial robots
Special: Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster
systems, anti-crime systems, safety equipment and medical equipment (not specifically designed
for life support)
Specific: Aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life
support systems or medical equipment for life support, etc.
The quality grade of NEC devices is "Standard" unless otherwise specified in NEC's Data Sheets or Data Books.
If customers intend to use NEC devices for applications other than those specified for Standard quality grade,
they should contact an NEC sales representative in advance.
M5 98. 8
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.