EN
NEC logo
Official user manual

NEC PD78F9489

388 pages·3.6 MB·Computer Hardware·PDF·ENDEFRITNLJA
NEC PD78F9489
Table of Contents 223 sections COVER · INTRODUCTION · CHAPTER 1 GENERAL · 1.1 Features · … ShowHide
COVERp.1INTRODUCTIONp.8CHAPTER 1 GENERALp.261.1 Featuresp.261.2 Applicationsp.261.3 Ordering Informationp.271.4 Pin Configuration (Top View)p.281.5 78K/0S Series Lineupp.311.6 Block Diagramp.341.7 Overview of Functionsp.35CHAPTER 2 PIN FUNCTIONSp.372.1 List of Pin Functionsp.372.2 Description of Pin Functionsp.402.2.1 P00 to P07 (Port 0)p.402.2.2 P10, P11 (Port 1)p.402.2.3 P20 to P25 (Port 2)p.402.2.4 P30 to P34 (Port 3)p.412.2.5 P50 to P53 (Port 5)p.412.2.6 P60 to P67 (Port 6)p.422.2.7 P70 to P73 (Port 7)p.422.2.8 P80 to P87 (Port 8)p.422.2.9 S0 to S27p.422.2.10 COM0 to COM3p.422.2.11 VLC0 to VLC2p.422.2.12 CAPH, CAPLp.422.2.13 RESET#p.432.2.14 X1, X2p.432.2.15 XT1, XT2p.432.2.16 AVDDp.432.2.17 AVSSp.432.2.18 VDDp.432.2.19 VSSp.432.2.20 VPP (flash memory version only)p.432.2.21 IC0 (mask ROM version only)p.442.3 Pin I/O Circuits and Recommended Connection of Unused Pinsp.45CHAPTER 3 CPU ARCHITECTUREp.483.1 Memory Spacep.483.1.1 Internal program memory spacep.523.1.2 Internal data memory spacep.533.1.3 Special function register (SFR) areap.533.1.4 Data memory addressingp.543.2 Processor Registersp.583.2.1 Control registersp.583.2.2 General-purpose registersp.613.2.3 Special function registers (SFRs)p.623.3 Instruction Address Addressingp.663.3.1 Relative addressingp.663.3.2 Immediate addressingp.673.3.3 Table indirect addressingp.683.3.4 Register addressingp.683.4 Operand Address Addressingp.693.4.1 Direct addressingp.693.4.2 Short direct addressingp.703.4.3 Special function register (SFR) addressingp.713.4.4 Register addressingp.723.4.5 Register indirect addressingp.733.4.6 Based addressingp.743.4.7 Stack addressingp.74CHAPTER 4 PORT FUNCTIONSp.754.1 Port Functionsp.754.2 Port Configurationp.764.2.1 Port 0p.774.2.2 Port 1p.784.2.3 Port 2p.794.2.4 Port 3p.844.2.5 Port 5p.864.2.6 Port 6p.874.2.7 Port 7p.894.2.8 Port 8p.904.3 Registers Controlling Port Functionp.914.4 Port Function Operationp.944.4.1 Writing to I/O portp.944.4.2 Reading from I/O portp.944.4.3 Arithmetic operation of I/O portp.94CHAPTER 5 CLOCK GENERATORp.955.1 Clock Generator Functionsp.955.2 Clock Generator Configurationp.955.3 Registers Controlling Clock Generatorp.985.4 System Clock Oscillatorsp.1015.4.1 Main system clock oscillatorp.1015.4.2 Subsystem clock oscillatorp.1025.4.3 Example of incorrect resonator connectionp.1035.4.4 Divider circuitp.1045.4.5 When subsystem clock is not usedp.1045.4.6 Subsystem clock (4 multiplication circuitp.1045.5 Clock Generator Operationp.1055.6 Changing Setting of System Clock and CPU Clockp.1065.6.1 Time required for switching between system clock and CPU clockp.1065.6.2 Switching between system clock and CPU clockp.107CHAPTER 6 16-BIT TIMER 20p.1086.1 16-Bit Timer 20 Functionsp.1086.2 16-Bit Timer 20 Configurationp.1086.3 Registers Controlling 16-Bit Timer 20p.1106.4 16-Bit Timer 20 Operationp.1136.4.1 Operation as timer interruptp.1136.4.2 Operation as timer outputp.1156.4.3 Capture operationp.1166.4.4 16-bit timer counter 20 readoutp.1176.5 Cautions on Using 16-Bit Timer 20p.1186.5.1 Restrictions when rewriting 16-bit compare register 20p.118CHAPTER 7 8-BIT TIMERS 50, 60, AND 61p.1207.1 Functions of 8-Bit Timers 50, 60, and 61p.1207.2 Configuration of 8-Bit Timers 50, 60, and 61p.1227.3 Control Registers for 8-Bit Timers 50, 60, and 61p.1287.4 Operation of 8-Bit Timers 50, 60, and 61p.1347.4.1 Operation as 8-bit timer counterp.1347.4.2 Operation as 16-bit timer counterp.1437.4.3 Operation as carrier generatorp.1507.4.4 PWM output mode operation (timer 50)p.1547.4.5 PPG output mode operation (timer 60 and timer 61)p.1587.5 Cautions on Using 8-Bit Timers 50, 60, and 61p.160CHAPTER 8 WATCH TIMERp.1618.1 Watch Timer Functionsp.1618.2 Configuration of Watch Timerp.1628.3 Control Registers for Watch Timerp.1638.4 Watch Timer Operationp.1658.4.1 Operation as watch timerp.1658.4.2 Operation as interval timerp.165CHAPTER 9 WATCHDOG TIMERp.1679.1 Watchdog Timer Functionsp.1679.2 Watchdog Timer Configurationp.1689.3 Watchdog Timer Control Registersp.1699.4 Watchdog Timer Operationp.1719.4.1 Operation as watchdog timerp.1719.4.2 Operation as interval timerp.172CHAPTER 10 10-BIT A/D CONVERTERp.17310.1 10-Bit A/D Converter Functionsp.17310.2 10-Bit A/D Converter Configurationp.17310.3 10-Bit A/D Converter Control Registersp.17610.4 10-Bit A/D Converter Operationp.17810.4.1 Basic operation of 10-bit A/D converterp.17810.4.2 Input voltage and conversion resultp.17910.4.3 Operation mode of 10-bit A/D converterp.18110.5 Cautions Related to 10-Bit A/D Converterp.182CHAPTER 11 SERIAL INTERFACE 20p.18611.1 Serial Interface 20 Functionsp.18611.2 Serial Interface 20 Configurationp.18611.3 Serial Interface 20 Control Registersp.19011.4 Serial Interface 20 Operationp.19711.4.1 Operation stop modep.19711.4.2 Asynchronous serial interface (UART) modep.19911.4.3 3-wire serial I/O modep.211CHAPTER 12 SERIAL INTERFACE 1A0p.21612.1 Function of Serial Interface 1A0p.21612.2 Configuration of Serial Interface 1A0p.21712.3 Control Registers for Serial Interface 1A0p.21912.4 Serial Interface 1A0 Operationp.22412.4.1 Operation stop modep.22412.4.2 3-wire serial I/O modep.22512.4.3 3-wire serial I/O mode with automatic transmit/receive functionp.230CHAPTER 13 LCD CONTROLLER/DRIVERp.25013.1 LCD Controller/Driver Functionsp.25013.2 LCD Controller/Driver Configurationp.25013.3 Registers Controlling LCD Controller/Driverp.25313.4 Setting LCD Controller/Driverp.25713.5 LCD Display Data Memoryp.25713.6 Common and Segment Signalsp.25813.7 Display Modesp.26013.7.1 Three-time-slice display examplep.26013.7.2 Four-time-slice display examplep.26313.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2p.266CHAPTER 14 MULTIPLIERp.26714.1 Multiplier Functionp.26714.2 Multiplier Configurationp.26714.3 Multiplier Control Registerp.26914.4 Multiplier Operationp.270CHAPTER 15 REMOTE CONTROLLER RECEIVER (uPD789489, 78F9489 ONLY)p.27115.1 Remote Controller Receiver Functionsp.27115.2 Remote Controller Receiver Configurationp.27115.3 Registers to Control Remote Controller Receiverp.27715.4 Operation of Remote Controller Receiverp.27915.4.1 Format of type A reception modep.27915.4.2 Operation flow of type A reception modep.27915.4.3 Timingp.28115.4.4 Compare register settingp.28315.4.5 Error interrupt generation timingp.28515.4.6 Noise eliminationp.287CHAPTER 16 INTERRUPT FUNCTIONSp.29016.1 Interrupt Function Typesp.29016.2 Interrupt Sources and Configurationp.29016.3 Registers Controlling Interrupt Functionp.29416.4 Interrupt Servicing Operationp.30116.4.1 Non-maskable interrupt request acknowledgment operationp.30116.4.2 Maskable interrupt request acknowledgment operationp.30316.4.3 Multiple interrupt servicingp.30416.4.4 Putting interrupt requests on holdp.306CHAPTER 17 STANDBY FUNCTIONp.30717.1 Standby Function and Configurationp.30717.1.1 Standby functionp.30717.1.2 Register controlling standby functionp.30817.2 Standby Function Operationp.30917.2.1 HALT modep.30917.2.2 STOP modep.312CHAPTER 18 RESET FUNCTIONp.315CHAPTER 19 FLASH MEMORY VERSIONp.31919.1 Flash Memory Characteristicsp.32019.1.1 Programming environmentp.32019.1.2 Communication modep.32119.1.3 On-board pin processingp.32419.1.4 Connection of adapter for flash writingp.32719.2 Cautions on uPD78F9488 and 78F9489p.330CHAPTER 20 MASK OPTIONSp.331CHAPTER 21 INSTRUCTION SETp.33221.1 Operationp.33221.1.1 Operand identifiers and description methodsp.33221.1.2 Description of “Operation” columnp.33321.1.3 Description of “Flag” columnp.33321.2 Operation Listp.33421.3 Instructions Listed by Addressing Typep.339CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)p.342CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)p.362CHAPTER 24 PACKAGE DRAWINGSp.364CHAPTER 25 RECOMMENDED SOLDERING CONDITIONSp.366APPENDIX A DEVELOPMENT TOOLSp.369A.1 Software Packagep.371A.2 Language Processing Softwarep.371A.3 Control Softwarep.372A.4 Flash Memory Writing Toolsp.372A.5 Debugging Tools (Hardware)p.373A.6 Debugging Tools (Software)p.374APPENDIX B NOTES ON TARGET SYSTEM DESIGNp.375APPENDIX C REGISTER INDEXp.379APPENDIX D REVISION HISTORYp.385
Page 1 of the NEC PD78F9489 user manual — User’s Manual
Page 1 · click to enlarge
Page 1

User’s Manual

µ PD789489 Subseries

8-Bit Single-Chip Microcontrollers

µ PD789488 µ PD789489 µ PD78F9488 µ PD78F9489

Document No. U15331EJ4V1UD00 (4th edition) Date Published July 2005 NS CP(K)

© · Printed in Japan

Page 2 of the NEC PD78F9489 user manual — [MEMO]
Page 2 · click to enlarge
Page 2

[MEMO]

Page 3 of the NEC PD78F9489 user manual — INPUT OF SIGNAL DURING POWER OFF STATE
Page 3 · click to enlarge
Page 3

NOTES FOR CMOS DEVICES

VOLTAGE APPLICATION WAVEFORM AT INPUT PIN

Waveform distortion due to input noise or a reflected wave may cause malfunction. If the input of the

CMOS device stays in the area between VIL (MAX) and VIH (MIN) due to noise, etc., the device may

malfunction. Take care to prevent chattering noise from entering the device when the input level is fixed,

and also in the transition period when the input level passes through the area between VIL (MAX) and

VIH (MIN).

HANDLING OF UNUSED INPUT PINS

Unconnected CMOS device inputs can be cause of malfunction. If an input pin is unconnected, it is

possible that an internal input level may be generated due to noise, etc., causing malfunction. CMOS

devices behave differently than Bipolar or NMOS devices. Input levels of CMOS devices must be fixed

high or low by using pull-up or pull-down circuitry. Each unused pin should be connected to VDD or GND

via a resistor if there is a possibility that it will be an output pin. All handling related to unused pins must

be judged separately for each device and according to related specifications governing the device.

PRECAUTION AGAINST ESD

A 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 when it has occurred. Environmental control must be

adequate. When it is dry, a humidifier should be used. It is recommended to avoid using insulators that

easily build up 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

benches and floors should be grounded. The operator should be grounded using a wrist strap.

Semiconductor devices must not be touched with bare hands. Similar precautions need to be taken for

PW boards with mounted semiconductor devices.

STATUS BEFORE INITIALIZATION

Power-on does not necessarily define the initial status of a MOS device. Immediately after the power

source is turned ON, devices with reset functions have not yet been initialized. Hence, power-on does

not guarantee output pin levels, I/O settings or contents of registers. A device is not initialized until the

reset signal is received. A reset operation must be executed immediately after power-on for devices

with reset functions.

POWER ON/OFF SEQUENCE

In the case of a device that uses different power supplies for the internal operation and external

interface, as a rule, switch on the external power supply after switching on the internal power supply.

When switching the power supply off, as a rule, switch off the external power supply and then the

internal power supply. Use of the reverse power on/off sequences may result in the application of an

overvoltage to the internal elements of the device, causing malfunction and degradation of internal

elements due to the passage of an abnormal current.

The correct power on/off sequence must be judged separately for each device and according to related

specifications governing the device.

INPUT OF SIGNAL DURING POWER OFF STATE

Do not input signals or an I/O pull-up power supply while the device is not powered. The current

injection that results from input of such a signal or I/O pull-up power supply may cause malfunction and

the abnormal current that passes in the device at this time may cause degradation of internal elements.

Input of signals during the power off state must be judged separately for each device and according to

related specifications governing the device.

Page 4 of the NEC PD78F9489 user manual — COVER
Page 4 · click to enlarge
Page 4

EEPROM and FIP are trademarks of NEC Electronics Corporation.

Windows and Windows NT 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.

These commodities, technology or software, must be exported in accordance with the export administration regulations of the exporting country. Diversion contrary to the law of that country is prohibited.

Page 5 of the NEC PD78F9489 user manual — M8E 02. 11-1
Page 5 · click to enlarge
Page 5

The information in this document is current as of July, 2005. The information is subject to change without notice. For actual design-in, refer to the latest publications of NEC Electronics data sheets or data books, etc., for the most up-to-date specifications of NEC Electronics products. Not all products and/or types are available in every country. Please check with an NEC Electronics sales representative for availability and additional information. No part of this document may be copied or reproduced in any form or by any means without the prior written consent of NEC Electronics. NEC Electronics assumes no responsibility for any errors that may appear in this document. NEC Electronics does not assume any liability for infringement of patents, copyrights or other intellectual property rights of third parties by or arising from the use of NEC Electronics products listed in this document or any other liability arising from the use of such products. No license, express, implied or otherwise, is granted under any patents, copyrights or other intellectual property rights of NEC Electronics 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 a customer's equipment shall be done under the full responsibility of the customer. NEC Electronics assumes no responsibility for any losses incurred by customers or third parties arising from the use of these circuits, software and information. While NEC Electronics endeavors to enhance the quality, reliability and safety of NEC Electronics products, customers agree and acknowledge that the possibility of defects thereof cannot be eliminated entirely. To minimize risks of damage to property or injury (including death) to persons arising from defects in NEC Electronics products, customers must incorporate sufficient safety measures in their design, such as redundancy, fire-containment and anti-failure features. NEC Electronics products are classified into the following three quality grades: "Standard", "Special" and "Specific". The "Specific" quality grade applies only to NEC Electronics products developed based on a customer- designated "quality assurance program" for a specific application. The recommended applications of an NEC Electronics product depend on its quality grade, as indicated below. Customers must check the quality grade of each NEC Electronics product before using it in a particular application.

Computers, office equipment, communications equipment, test and measurement equipment, audio and visual equipment, home electronic appliances, machine tools, personal electronic equipment and industrial robots. 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). Aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems and medical equipment for life support, etc.

"Standard":

"Special":

"Specific":

The quality grade of NEC Electronics products is "Standard" unless otherwise expressly specified in NEC Electronics data sheets or data books, etc. If customers wish to use NEC Electronics products in applications not intended by NEC Electronics, they must contact an NEC Electronics sales representative in advance to determine NEC Electronics' willingness to support a given application.

"NEC Electronics" as used in this statement means NEC Electronics Corporation and also includes its majority-owned subsidiaries. "NEC Electronics products" means any product developed or manufactured by or for NEC Electronics (as defined above).

M8E 02. 11-1

Show 9 more labels / short text on this page
• · • · • · • · • · • · (Note) · (1) · (2)
Page 6 of the NEC PD78F9489 user manual — J05.6
Page 6 · click to enlarge
Page 6

Regional Information

Some information contained in this document may vary from country to country. Before using any NEC Electronics product in your application, pIease contact the NEC Electronics 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.

[GLOBAL SUPPORT] http://www.necel.com/en/support/support.html

NEC Electronics America, Inc. (U.S.) Santa Clara, California Tel: 408-588-6000 800-366-9782

NEC Electronics (Europe) GmbH Duesseldorf, Germany Tel: 0211-65030

NEC Electronics Hong Kong Ltd. Hong Kong Tel: 2886-9318

  • Sucursal en España Madrid, Spain Tel: 091-504 27 87

NEC Electronics Hong Kong Ltd. Seoul Branch Seoul, Korea Tel: 02-558-3737

  • Succursale Française
Vélizy-Villacoublay, France Tel01-30-67 58 00

NEC Electronics Shanghai Ltd. Shanghai, P.R. China Tel: 021-5888-5400

  • Filiale Italiana Milano, Italy Tel: 02-66 75 41

NEC Electronics Taiwan Ltd. Taipei, Taiwan Tel: 02-2719-2377

  • Branch The Netherlands Eindhoven, The Netherlands Tel: 040-265 40 10

NEC Electronics Singapore Pte. Ltd. Novena Square, Singapore Tel: 6253-8311

  • Tyskland Filial Taeby, Sweden Tel: 08-63 87 200
  • United Kingdom Branch Milton Keynes, UK Tel: 01908-691-133

J05.6

Page 7 of the NEC PD78F9489 user manual — Major Revisions in This Edition
Page 7 · click to enlarge
Page 7

Major Revisions in This Edition

PageDescription ThroughoutChange of descriptions of µPD789489, 78F9489 • Change of status from under development to development completed • Change of the subseries name to “µPD789489 subseries” pp.31 to 33Update of 1.5 78K/0S Series Lineup to latest version p.123Modification of Figure 7-2 Block Diagram of Timer 50 p.124Modification of Figure 7-3 Block Diagram of Timer 60 p.126Modification of Figure 7-5 Block Diagram of Output control circuit (Timer 60) Addition of descriptions in 7.2 (2) 8-bit compare register 60 p.127Addition of descriptions in 7.2 (4) 8-bit H width compare registers 60 and 61 p.136Modification of Figure 7-11 8-bit Timing of Interval Timer Operation with 8-Bit Resolution (Basic Operation) p.137Modification of Figure 7-13. Timing of Interval Timer Operation with 8-Bit Resolution (When CRnm Is Set to FFH) p.140Modification of Figure 7-17. Timing of Operation of External Event Counter with 8-Bit Resolution p.150Addition of descriptions of setting sequence in 7.4.3 Operation as carrier generator p.151Modification of Figure 7-22. Timing of Carrier Generator Operation (When CR60 = N, CRH60 = M (M > N)) p.152Modification of Figure 7-23. Timing of Carrier Generator Operation (When CR60 = N, CRH60 = M (M < N)) p.153Modification of Figure 7-24. Timing of Carrier Generator Operation (When CR60 = CRH60 = N) pp.154 to 157Modification of the mode name in 7.4.4 PWM output mode operation (timer 50) pp.158, 159Modification of the mode name in 7.4.5 PPG output mode operation (timer 60 and 61) p.160Modification of (1) Error on starting timer in 7.5 Cautions on Using 8-Bit Timers 50, 60, and 61 p.174Modification of Figure 10-1. Block Diagram of 10-bit A/D converter p.182Modification of (1) Current consumption in standby mode in 10.5 Cautions Related to 10-Bit A/D Converter p.187Modification of Figure 11-1. Block Diagram of Serial Interface 20 p.190Addition of Caution in Figure 11-3 Format of Serial Operation Mode Register 20 p.194Modification of Cautions in Figure 11-6 Format of Baud Rate Generator Control Register 20 pp.195, 203Modification of Caution in Table 11-3 and 11-5. Example of Relationship Between System Clock and Baud Rate p.222Modification of descriptions in Figure 12-4. Format of Automatic Data Transmit/Receive Interval Specification Register 0 pp.342 to 361Addition of formal specifications of µPD789489 and 78F9489 in CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489) pp.366, 367Addition of recommended conditions for µPD789489 and 78F9489 in CHAPTER 25 RECOMMENDED SOLDERING CONDITIONS Major Revisions in Modified Edition (U15331EJ4V1UD00) ThroughoutAddition of the lead-free products pp.254, 257Modification of descriptions of the voltage boost wait time in CHAPTER 13 LCD CONTROLLER/DRIVER pp.328Modification of Figure 19-9. Wiring Example for Flash Writing Adapter with 3-Wire Serial I/O with Handshake

The mark shows major revised points.

Page 8 of the NEC PD78F9489 user manual — 78F9488, 789489, 78F9489)
Page 8 · click to enlarge
Page 8

INTRODUCTION

Target Readers This manual is intended for user engineers who wish to understand the functions of

the µPD789489 Subseries and design and develop application systems and programs

for these devices.

Target products:

  • µ PD789489 Subseries: µ PD789488, 789489, 78F9488, 78F9489

Purpose This manual is intended to give users an understanding of the functions described in

the Organization below.

Organization Two manuals are available for the µPD789489 Subseries:

This manual and the instruction manual (common to the 78K/0S Series).

  • Pin functions
  • CPU function
  • Internal block functions
  • Instruction set
  • Interrupts
  • Instruction description
  • Other on-chip peripheral functions
  • Electrical specifications

How to Use This Manual It is assumed that the readers of this manual have general knowledge of electrical

engineering, logic circuits, and microcontrollers.

  • To understand the overall functions of the µ PD789489 Subseries

→ Read this manual in the order of the CONTENTS.

  • How to read register formats

→ The name of a bit whose number is enclosed with is reserved in the

assembler and is defined as an sfr variable by the #pragma sfr directive for the

C compiler.

  • To learn the detailed functions of a register whose register name is known

→ See APPENDIX C REGISTER INDEX.

  • To learn the details of the instruction functions of the 78K/0S series

→ Refer to 78K/0S Series Instructions User’s Manual (U11047E) separately

available.

  • To learn about the electrical specifications of the µ PD789489 Subseries

→ Refer to CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488,

78F9488, 789489, 78F9489)

Show 5 more labels / short text on this page
78K/0S Series · µPD789489 Subseries · User’s Manual · User’s Manual · Instructions
Page 9 of the NEC PD78F9489 user manual — Documents Related to Development Tools (Hardware) (User’s Manuals)
Page 9 · click to enlarge
Page 9
Conventions Data significanceHigher digits on the left and lower digits on the right
Active low representationxxx (overscore over pin or signal name)
RemarkSupplementary information
Numerical representationBinary ... xxxx or xxxxB

Decimal ... xxxx

Hexadecimal ... xxxxH

Related Documents The related documents indicated in this publication may include preliminary versions.

However, preliminary versions are not marked as such.

Documents Related to Devices

Document NameDocument No. µPD789489 Subseries User’s ManualThis manual 78K/0S Series Instructions User’s ManualU11047E
NEC PD78F9489 — Documents Related to Devices diagram (page 9)
Fig. 1 · Documents Related to Devices

Documents Related to Development Software Tools (User’s Manuals)

Document NameDocument No. RA78K0S Assembler PackageOperationU17391E LanguageU17390E Structured Assembly LanguageU17389E CC78K0S C CompilerOperationU16654E LanguageU16655E SM+ System SimulatorOperationU17246E User Open InterfaceU17247E SM78K Series Ver. 2.52 System SimulatorOperationU16768E External Part User Open Interface SpecificationU15802E ID78K0S-NS Ver. 2.52 Integrated DebuggerOperationU16584E PM plus Ver.5.20U16934E
NEC PD78F9489 — Documents Related to Devices diagram (page 9)
Fig. 2 · Documents Related to Devices

Documents Related to Development Tools (Hardware) (User’s Manuals)

NEC PD78F9489 — Documents Related to Development Tools (Hardware) (User’s Manuals) diagram (page 9)
Fig. 3 · Documents Related to Development Tools (Hardware) (U…
Document NameDocument No. IE-78K0S-NS In-Circuit EmulatorU13549E IE-78K0S-NS-A In-Circuit EmulatorU15207E IE-789488-NS-EM1 Emulation BoardU16492E

version of each document for designing.

Page 10 of the NEC PD78F9489 user manual — Other Related Documents
Page 10 · click to enlarge
Page 10

Documents Related to Flash Memory Writing

Document NameDocument No. PG-FP3 Flash Memory Programmer User’s ManualU13502E PG-FP4 Flash Memory Programmer User’s ManualU15260E

Other Related Documents

Document NameDocument No. SEMICONDUCTOR SELECTION GUIDE - Products and Packages -X13769X Semiconductor Device Mount ManualNote Quality Grades on NEC Semiconductor DevicesC11531E NEC Semiconductor Device Reliability/Quality Control SystemC10983E Guide to Prevent Damage for Semiconductor Devices by Electrostatic Discharge (ESD)C11892E

latest version of each document for designing.

Page 11 of the NEC PD78F9489 user manual — Table of contents
Page 11 · click to enlarge
Page 11

Table of contents

COVERp.1INTRODUCTIONp.8CHAPTER 1 GENERALp.261.1 Featuresp.261.2 Applicationsp.261.3 Ordering Informationp.271.4 Pin Configuration (Top View)p.281.5 78K/0S Series Lineupp.311.6 Block Diagramp.341.7 Overview of Functionsp.35CHAPTER 2 PIN FUNCTIONSp.372.1 List of Pin Functionsp.372.2 Description of Pin Functionsp.402.2.1 P00 to P07 (Port 0)p.402.2.2 P10, P11 (Port 1)p.402.2.3 P20 to P25 (Port 2)p.402.2.4 P30 to P34 (Port 3)p.412.2.5 P50 to P53 (Port 5)p.412.2.6 P60 to P67 (Port 6)p.422.2.7 P70 to P73 (Port 7)p.422.2.8 P80 to P87 (Port 8)p.422.2.9 S0 to S27p.422.2.10 COM0 to COM3p.422.2.11 VLC0 to VLC2p.422.2.12 CAPH, CAPLp.422.2.13 RESET#p.432.2.14 X1, X2p.432.2.15 XT1, XT2p.432.2.16 AVDDp.432.2.17 AVSSp.432.2.18 VDDp.432.2.19 VSSp.432.2.20 VPP (flash memory version only)p.432.2.21 IC0 (mask ROM version only)p.442.3 Pin I/O Circuits and Recommended Connection of Unused Pinsp.45CHAPTER 3 CPU ARCHITECTUREp.483.1 Memory Spacep.483.1.1 Internal program memory spacep.523.1.2 Internal data memory spacep.533.1.3 Special function register (SFR) areap.533.1.4 Data memory addressingp.543.2 Processor Registersp.583.2.1 Control registersp.583.2.2 General-purpose registersp.613.2.3 Special function registers (SFRs)p.623.3 Instruction Address Addressingp.663.3.1 Relative addressingp.663.3.2 Immediate addressingp.673.3.3 Table indirect addressingp.683.3.4 Register addressingp.683.4 Operand Address Addressingp.693.4.1 Direct addressingp.693.4.2 Short direct addressingp.703.4.3 Special function register (SFR) addressingp.713.4.4 Register addressingp.723.4.5 Register indirect addressingp.733.4.6 Based addressingp.743.4.7 Stack addressingp.74CHAPTER 4 PORT FUNCTIONSp.754.1 Port Functionsp.754.2 Port Configurationp.764.2.1 Port 0p.774.2.2 Port 1p.784.2.3 Port 2p.794.2.4 Port 3p.844.2.5 Port 5p.864.2.6 Port 6p.874.2.7 Port 7p.894.2.8 Port 8p.904.3 Registers Controlling Port Functionp.914.4 Port Function Operationp.944.4.1 Writing to I/O portp.944.4.2 Reading from I/O portp.944.4.3 Arithmetic operation of I/O portp.94CHAPTER 5 CLOCK GENERATORp.955.1 Clock Generator Functionsp.955.2 Clock Generator Configurationp.955.3 Registers Controlling Clock Generatorp.985.4 System Clock Oscillatorsp.1015.4.1 Main system clock oscillatorp.1015.4.2 Subsystem clock oscillatorp.1025.4.3 Example of incorrect resonator connectionp.1035.4.4 Divider circuitp.1045.4.5 When subsystem clock is not usedp.1045.4.6 Subsystem clock (4 multiplication circuitp.1045.5 Clock Generator Operationp.1055.6 Changing Setting of System Clock and CPU Clockp.1065.6.1 Time required for switching between system clock and CPU clockp.1065.6.2 Switching between system clock and CPU clockp.107CHAPTER 6 16-BIT TIMER 20p.1086.1 16-Bit Timer 20 Functionsp.1086.2 16-Bit Timer 20 Configurationp.1086.3 Registers Controlling 16-Bit Timer 20p.1106.4 16-Bit Timer 20 Operationp.1136.4.1 Operation as timer interruptp.1136.4.2 Operation as timer outputp.1156.4.3 Capture operationp.1166.4.4 16-bit timer counter 20 readoutp.1176.5 Cautions on Using 16-Bit Timer 20p.1186.5.1 Restrictions when rewriting 16-bit compare register 20p.118CHAPTER 7 8-BIT TIMERS 50, 60, AND 61p.1207.1 Functions of 8-Bit Timers 50, 60, and 61p.1207.2 Configuration of 8-Bit Timers 50, 60, and 61p.1227.3 Control Registers for 8-Bit Timers 50, 60, and 61p.1287.4 Operation of 8-Bit Timers 50, 60, and 61p.1347.4.1 Operation as 8-bit timer counterp.1347.4.2 Operation as 16-bit timer counterp.1437.4.3 Operation as carrier generatorp.1507.4.4 PWM output mode operation (timer 50)p.1547.4.5 PPG output mode operation (timer 60 and timer 61)p.1587.5 Cautions on Using 8-Bit Timers 50, 60, and 61p.160CHAPTER 8 WATCH TIMERp.1618.1 Watch Timer Functionsp.1618.2 Configuration of Watch Timerp.1628.3 Control Registers for Watch Timerp.1638.4 Watch Timer Operationp.1658.4.1 Operation as watch timerp.1658.4.2 Operation as interval timerp.165CHAPTER 9 WATCHDOG TIMERp.1679.1 Watchdog Timer Functionsp.1679.2 Watchdog Timer Configurationp.1689.3 Watchdog Timer Control Registersp.1699.4 Watchdog Timer Operationp.1719.4.1 Operation as watchdog timerp.1719.4.2 Operation as interval timerp.172CHAPTER 10 10-BIT A/D CONVERTERp.17310.1 10-Bit A/D Converter Functionsp.17310.2 10-Bit A/D Converter Configurationp.17310.3 10-Bit A/D Converter Control Registersp.17610.4 10-Bit A/D Converter Operationp.17810.4.1 Basic operation of 10-bit A/D converterp.17810.4.2 Input voltage and conversion resultp.17910.4.3 Operation mode of 10-bit A/D converterp.18110.5 Cautions Related to 10-Bit A/D Converterp.182CHAPTER 11 SERIAL INTERFACE 20p.18611.1 Serial Interface 20 Functionsp.18611.2 Serial Interface 20 Configurationp.18611.3 Serial Interface 20 Control Registersp.19011.4 Serial Interface 20 Operationp.19711.4.1 Operation stop modep.19711.4.2 Asynchronous serial interface (UART) modep.19911.4.3 3-wire serial I/O modep.211CHAPTER 12 SERIAL INTERFACE 1A0p.21612.1 Function of Serial Interface 1A0p.21612.2 Configuration of Serial Interface 1A0p.21712.3 Control Registers for Serial Interface 1A0p.21912.4 Serial Interface 1A0 Operationp.22412.4.1 Operation stop modep.22412.4.2 3-wire serial I/O modep.22512.4.3 3-wire serial I/O mode with automatic transmit/receive functionp.230CHAPTER 13 LCD CONTROLLER/DRIVERp.25013.1 LCD Controller/Driver Functionsp.25013.2 LCD Controller/Driver Configurationp.25013.3 Registers Controlling LCD Controller/Driverp.25313.4 Setting LCD Controller/Driverp.25713.5 LCD Display Data Memoryp.25713.6 Common and Segment Signalsp.25813.7 Display Modesp.26013.7.1 Three-time-slice display examplep.26013.7.2 Four-time-slice display examplep.26313.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2p.266CHAPTER 14 MULTIPLIERp.26714.1 Multiplier Functionp.26714.2 Multiplier Configurationp.26714.3 Multiplier Control Registerp.26914.4 Multiplier Operationp.270CHAPTER 15 REMOTE CONTROLLER RECEIVER (uPD789489, 78F9489 ONLY)p.27115.1 Remote Controller Receiver Functionsp.27115.2 Remote Controller Receiver Configurationp.27115.3 Registers to Control Remote Controller Receiverp.27715.4 Operation of Remote Controller Receiverp.27915.4.1 Format of type A reception modep.27915.4.2 Operation flow of type A reception modep.27915.4.3 Timingp.28115.4.4 Compare register settingp.28315.4.5 Error interrupt generation timingp.28515.4.6 Noise eliminationp.287CHAPTER 16 INTERRUPT FUNCTIONSp.29016.1 Interrupt Function Typesp.29016.2 Interrupt Sources and Configurationp.29016.3 Registers Controlling Interrupt Functionp.29416.4 Interrupt Servicing Operationp.30116.4.1 Non-maskable interrupt request acknowledgment operationp.30116.4.2 Maskable interrupt request acknowledgment operationp.30316.4.3 Multiple interrupt servicingp.30416.4.4 Putting interrupt requests on holdp.306CHAPTER 17 STANDBY FUNCTIONp.30717.1 Standby Function and Configurationp.30717.1.1 Standby functionp.30717.1.2 Register controlling standby functionp.30817.2 Standby Function Operationp.30917.2.1 HALT modep.30917.2.2 STOP modep.312CHAPTER 18 RESET FUNCTIONp.315CHAPTER 19 FLASH MEMORY VERSIONp.31919.1 Flash Memory Characteristicsp.32019.1.1 Programming environmentp.32019.1.2 Communication modep.32119.1.3 On-board pin processingp.32419.1.4 Connection of adapter for flash writingp.32719.2 Cautions on uPD78F9488 and 78F9489p.330CHAPTER 20 MASK OPTIONSp.331CHAPTER 21 INSTRUCTION SETp.33221.1 Operationp.33221.1.1 Operand identifiers and description methodsp.33221.1.2 Description of “Operation” columnp.33321.1.3 Description of “Flag” columnp.33321.2 Operation Listp.33421.3 Instructions Listed by Addressing Typep.339CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)p.342CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)p.362CHAPTER 24 PACKAGE DRAWINGSp.364CHAPTER 25 RECOMMENDED SOLDERING CONDITIONSp.366APPENDIX A DEVELOPMENT TOOLSp.369A.1 Software Packagep.371A.2 Language Processing Softwarep.371A.3 Control Softwarep.372A.4 Flash Memory Writing Toolsp.372A.5 Debugging Tools (Hardware)p.373A.6 Debugging Tools (Software)p.374APPENDIX B NOTES ON TARGET SYSTEM DESIGNp.375APPENDIX C REGISTER INDEXp.379APPENDIX D REVISION HISTORYp.385
Page 12 of the NEC PD78F9489 user manual — Table of contents
Page 12 · click to enlarge
Page 12

Table of contents

COVERp.1INTRODUCTIONp.8CHAPTER 1 GENERALp.261.1 Featuresp.261.2 Applicationsp.261.3 Ordering Informationp.271.4 Pin Configuration (Top View)p.281.5 78K/0S Series Lineupp.311.6 Block Diagramp.341.7 Overview of Functionsp.35CHAPTER 2 PIN FUNCTIONSp.372.1 List of Pin Functionsp.372.2 Description of Pin Functionsp.402.2.1 P00 to P07 (Port 0)p.402.2.2 P10, P11 (Port 1)p.402.2.3 P20 to P25 (Port 2)p.402.2.4 P30 to P34 (Port 3)p.412.2.5 P50 to P53 (Port 5)p.412.2.6 P60 to P67 (Port 6)p.422.2.7 P70 to P73 (Port 7)p.422.2.8 P80 to P87 (Port 8)p.422.2.9 S0 to S27p.422.2.10 COM0 to COM3p.422.2.11 VLC0 to VLC2p.422.2.12 CAPH, CAPLp.422.2.13 RESET#p.432.2.14 X1, X2p.432.2.15 XT1, XT2p.432.2.16 AVDDp.432.2.17 AVSSp.432.2.18 VDDp.432.2.19 VSSp.432.2.20 VPP (flash memory version only)p.432.2.21 IC0 (mask ROM version only)p.442.3 Pin I/O Circuits and Recommended Connection of Unused Pinsp.45CHAPTER 3 CPU ARCHITECTUREp.483.1 Memory Spacep.483.1.1 Internal program memory spacep.523.1.2 Internal data memory spacep.533.1.3 Special function register (SFR) areap.533.1.4 Data memory addressingp.543.2 Processor Registersp.583.2.1 Control registersp.583.2.2 General-purpose registersp.613.2.3 Special function registers (SFRs)p.623.3 Instruction Address Addressingp.663.3.1 Relative addressingp.663.3.2 Immediate addressingp.673.3.3 Table indirect addressingp.683.3.4 Register addressingp.683.4 Operand Address Addressingp.693.4.1 Direct addressingp.693.4.2 Short direct addressingp.703.4.3 Special function register (SFR) addressingp.713.4.4 Register addressingp.723.4.5 Register indirect addressingp.733.4.6 Based addressingp.743.4.7 Stack addressingp.74CHAPTER 4 PORT FUNCTIONSp.754.1 Port Functionsp.754.2 Port Configurationp.764.2.1 Port 0p.774.2.2 Port 1p.784.2.3 Port 2p.794.2.4 Port 3p.844.2.5 Port 5p.864.2.6 Port 6p.874.2.7 Port 7p.894.2.8 Port 8p.904.3 Registers Controlling Port Functionp.914.4 Port Function Operationp.944.4.1 Writing to I/O portp.944.4.2 Reading from I/O portp.944.4.3 Arithmetic operation of I/O portp.94CHAPTER 5 CLOCK GENERATORp.955.1 Clock Generator Functionsp.955.2 Clock Generator Configurationp.955.3 Registers Controlling Clock Generatorp.985.4 System Clock Oscillatorsp.1015.4.1 Main system clock oscillatorp.1015.4.2 Subsystem clock oscillatorp.1025.4.3 Example of incorrect resonator connectionp.1035.4.4 Divider circuitp.1045.4.5 When subsystem clock is not usedp.1045.4.6 Subsystem clock (4 multiplication circuitp.1045.5 Clock Generator Operationp.1055.6 Changing Setting of System Clock and CPU Clockp.1065.6.1 Time required for switching between system clock and CPU clockp.1065.6.2 Switching between system clock and CPU clockp.107CHAPTER 6 16-BIT TIMER 20p.1086.1 16-Bit Timer 20 Functionsp.1086.2 16-Bit Timer 20 Configurationp.1086.3 Registers Controlling 16-Bit Timer 20p.1106.4 16-Bit Timer 20 Operationp.1136.4.1 Operation as timer interruptp.1136.4.2 Operation as timer outputp.1156.4.3 Capture operationp.1166.4.4 16-bit timer counter 20 readoutp.1176.5 Cautions on Using 16-Bit Timer 20p.1186.5.1 Restrictions when rewriting 16-bit compare register 20p.118CHAPTER 7 8-BIT TIMERS 50, 60, AND 61p.1207.1 Functions of 8-Bit Timers 50, 60, and 61p.1207.2 Configuration of 8-Bit Timers 50, 60, and 61p.1227.3 Control Registers for 8-Bit Timers 50, 60, and 61p.1287.4 Operation of 8-Bit Timers 50, 60, and 61p.1347.4.1 Operation as 8-bit timer counterp.1347.4.2 Operation as 16-bit timer counterp.1437.4.3 Operation as carrier generatorp.1507.4.4 PWM output mode operation (timer 50)p.1547.4.5 PPG output mode operation (timer 60 and timer 61)p.1587.5 Cautions on Using 8-Bit Timers 50, 60, and 61p.160CHAPTER 8 WATCH TIMERp.1618.1 Watch Timer Functionsp.1618.2 Configuration of Watch Timerp.1628.3 Control Registers for Watch Timerp.1638.4 Watch Timer Operationp.1658.4.1 Operation as watch timerp.1658.4.2 Operation as interval timerp.165CHAPTER 9 WATCHDOG TIMERp.1679.1 Watchdog Timer Functionsp.1679.2 Watchdog Timer Configurationp.1689.3 Watchdog Timer Control Registersp.1699.4 Watchdog Timer Operationp.1719.4.1 Operation as watchdog timerp.1719.4.2 Operation as interval timerp.172CHAPTER 10 10-BIT A/D CONVERTERp.17310.1 10-Bit A/D Converter Functionsp.17310.2 10-Bit A/D Converter Configurationp.17310.3 10-Bit A/D Converter Control Registersp.17610.4 10-Bit A/D Converter Operationp.17810.4.1 Basic operation of 10-bit A/D converterp.17810.4.2 Input voltage and conversion resultp.17910.4.3 Operation mode of 10-bit A/D converterp.18110.5 Cautions Related to 10-Bit A/D Converterp.182CHAPTER 11 SERIAL INTERFACE 20p.18611.1 Serial Interface 20 Functionsp.18611.2 Serial Interface 20 Configurationp.18611.3 Serial Interface 20 Control Registersp.19011.4 Serial Interface 20 Operationp.19711.4.1 Operation stop modep.19711.4.2 Asynchronous serial interface (UART) modep.19911.4.3 3-wire serial I/O modep.211CHAPTER 12 SERIAL INTERFACE 1A0p.21612.1 Function of Serial Interface 1A0p.21612.2 Configuration of Serial Interface 1A0p.21712.3 Control Registers for Serial Interface 1A0p.21912.4 Serial Interface 1A0 Operationp.22412.4.1 Operation stop modep.22412.4.2 3-wire serial I/O modep.22512.4.3 3-wire serial I/O mode with automatic transmit/receive functionp.230CHAPTER 13 LCD CONTROLLER/DRIVERp.25013.1 LCD Controller/Driver Functionsp.25013.2 LCD Controller/Driver Configurationp.25013.3 Registers Controlling LCD Controller/Driverp.25313.4 Setting LCD Controller/Driverp.25713.5 LCD Display Data Memoryp.25713.6 Common and Segment Signalsp.25813.7 Display Modesp.26013.7.1 Three-time-slice display examplep.26013.7.2 Four-time-slice display examplep.26313.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2p.266CHAPTER 14 MULTIPLIERp.26714.1 Multiplier Functionp.26714.2 Multiplier Configurationp.26714.3 Multiplier Control Registerp.26914.4 Multiplier Operationp.270CHAPTER 15 REMOTE CONTROLLER RECEIVER (uPD789489, 78F9489 ONLY)p.27115.1 Remote Controller Receiver Functionsp.27115.2 Remote Controller Receiver Configurationp.27115.3 Registers to Control Remote Controller Receiverp.27715.4 Operation of Remote Controller Receiverp.27915.4.1 Format of type A reception modep.27915.4.2 Operation flow of type A reception modep.27915.4.3 Timingp.28115.4.4 Compare register settingp.28315.4.5 Error interrupt generation timingp.28515.4.6 Noise eliminationp.287CHAPTER 16 INTERRUPT FUNCTIONSp.29016.1 Interrupt Function Typesp.29016.2 Interrupt Sources and Configurationp.29016.3 Registers Controlling Interrupt Functionp.29416.4 Interrupt Servicing Operationp.30116.4.1 Non-maskable interrupt request acknowledgment operationp.30116.4.2 Maskable interrupt request acknowledgment operationp.30316.4.3 Multiple interrupt servicingp.30416.4.4 Putting interrupt requests on holdp.306CHAPTER 17 STANDBY FUNCTIONp.30717.1 Standby Function and Configurationp.30717.1.1 Standby functionp.30717.1.2 Register controlling standby functionp.30817.2 Standby Function Operationp.30917.2.1 HALT modep.30917.2.2 STOP modep.312CHAPTER 18 RESET FUNCTIONp.315CHAPTER 19 FLASH MEMORY VERSIONp.31919.1 Flash Memory Characteristicsp.32019.1.1 Programming environmentp.32019.1.2 Communication modep.32119.1.3 On-board pin processingp.32419.1.4 Connection of adapter for flash writingp.32719.2 Cautions on uPD78F9488 and 78F9489p.330CHAPTER 20 MASK OPTIONSp.331CHAPTER 21 INSTRUCTION SETp.33221.1 Operationp.33221.1.1 Operand identifiers and description methodsp.33221.1.2 Description of “Operation” columnp.33321.1.3 Description of “Flag” columnp.33321.2 Operation Listp.33421.3 Instructions Listed by Addressing Typep.339CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)p.342CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)p.362CHAPTER 24 PACKAGE DRAWINGSp.364CHAPTER 25 RECOMMENDED SOLDERING CONDITIONSp.366APPENDIX A DEVELOPMENT TOOLSp.369A.1 Software Packagep.371A.2 Language Processing Softwarep.371A.3 Control Softwarep.372A.4 Flash Memory Writing Toolsp.372A.5 Debugging Tools (Hardware)p.373A.6 Debugging Tools (Software)p.374APPENDIX B NOTES ON TARGET SYSTEM DESIGNp.375APPENDIX C REGISTER INDEXp.379APPENDIX D REVISION HISTORYp.385
Page 13 of the NEC PD78F9489 user manual — Table of contents
Page 13 · click to enlarge
Page 13

Table of contents

COVERp.1INTRODUCTIONp.8CHAPTER 1 GENERALp.261.1 Featuresp.261.2 Applicationsp.261.3 Ordering Informationp.271.4 Pin Configuration (Top View)p.281.5 78K/0S Series Lineupp.311.6 Block Diagramp.341.7 Overview of Functionsp.35CHAPTER 2 PIN FUNCTIONSp.372.1 List of Pin Functionsp.372.2 Description of Pin Functionsp.402.2.1 P00 to P07 (Port 0)p.402.2.2 P10, P11 (Port 1)p.402.2.3 P20 to P25 (Port 2)p.402.2.4 P30 to P34 (Port 3)p.412.2.5 P50 to P53 (Port 5)p.412.2.6 P60 to P67 (Port 6)p.422.2.7 P70 to P73 (Port 7)p.422.2.8 P80 to P87 (Port 8)p.422.2.9 S0 to S27p.422.2.10 COM0 to COM3p.422.2.11 VLC0 to VLC2p.422.2.12 CAPH, CAPLp.422.2.13 RESET#p.432.2.14 X1, X2p.432.2.15 XT1, XT2p.432.2.16 AVDDp.432.2.17 AVSSp.432.2.18 VDDp.432.2.19 VSSp.432.2.20 VPP (flash memory version only)p.432.2.21 IC0 (mask ROM version only)p.442.3 Pin I/O Circuits and Recommended Connection of Unused Pinsp.45CHAPTER 3 CPU ARCHITECTUREp.483.1 Memory Spacep.483.1.1 Internal program memory spacep.523.1.2 Internal data memory spacep.533.1.3 Special function register (SFR) areap.533.1.4 Data memory addressingp.543.2 Processor Registersp.583.2.1 Control registersp.583.2.2 General-purpose registersp.613.2.3 Special function registers (SFRs)p.623.3 Instruction Address Addressingp.663.3.1 Relative addressingp.663.3.2 Immediate addressingp.673.3.3 Table indirect addressingp.683.3.4 Register addressingp.683.4 Operand Address Addressingp.693.4.1 Direct addressingp.693.4.2 Short direct addressingp.703.4.3 Special function register (SFR) addressingp.713.4.4 Register addressingp.723.4.5 Register indirect addressingp.733.4.6 Based addressingp.743.4.7 Stack addressingp.74CHAPTER 4 PORT FUNCTIONSp.754.1 Port Functionsp.754.2 Port Configurationp.764.2.1 Port 0p.774.2.2 Port 1p.784.2.3 Port 2p.794.2.4 Port 3p.844.2.5 Port 5p.864.2.6 Port 6p.874.2.7 Port 7p.894.2.8 Port 8p.904.3 Registers Controlling Port Functionp.914.4 Port Function Operationp.944.4.1 Writing to I/O portp.944.4.2 Reading from I/O portp.944.4.3 Arithmetic operation of I/O portp.94CHAPTER 5 CLOCK GENERATORp.955.1 Clock Generator Functionsp.955.2 Clock Generator Configurationp.955.3 Registers Controlling Clock Generatorp.985.4 System Clock Oscillatorsp.1015.4.1 Main system clock oscillatorp.1015.4.2 Subsystem clock oscillatorp.1025.4.3 Example of incorrect resonator connectionp.1035.4.4 Divider circuitp.1045.4.5 When subsystem clock is not usedp.1045.4.6 Subsystem clock (4 multiplication circuitp.1045.5 Clock Generator Operationp.1055.6 Changing Setting of System Clock and CPU Clockp.1065.6.1 Time required for switching between system clock and CPU clockp.1065.6.2 Switching between system clock and CPU clockp.107CHAPTER 6 16-BIT TIMER 20p.1086.1 16-Bit Timer 20 Functionsp.1086.2 16-Bit Timer 20 Configurationp.1086.3 Registers Controlling 16-Bit Timer 20p.1106.4 16-Bit Timer 20 Operationp.1136.4.1 Operation as timer interruptp.1136.4.2 Operation as timer outputp.1156.4.3 Capture operationp.1166.4.4 16-bit timer counter 20 readoutp.1176.5 Cautions on Using 16-Bit Timer 20p.1186.5.1 Restrictions when rewriting 16-bit compare register 20p.118CHAPTER 7 8-BIT TIMERS 50, 60, AND 61p.1207.1 Functions of 8-Bit Timers 50, 60, and 61p.1207.2 Configuration of 8-Bit Timers 50, 60, and 61p.1227.3 Control Registers for 8-Bit Timers 50, 60, and 61p.1287.4 Operation of 8-Bit Timers 50, 60, and 61p.1347.4.1 Operation as 8-bit timer counterp.1347.4.2 Operation as 16-bit timer counterp.1437.4.3 Operation as carrier generatorp.1507.4.4 PWM output mode operation (timer 50)p.1547.4.5 PPG output mode operation (timer 60 and timer 61)p.1587.5 Cautions on Using 8-Bit Timers 50, 60, and 61p.160CHAPTER 8 WATCH TIMERp.1618.1 Watch Timer Functionsp.1618.2 Configuration of Watch Timerp.1628.3 Control Registers for Watch Timerp.1638.4 Watch Timer Operationp.1658.4.1 Operation as watch timerp.1658.4.2 Operation as interval timerp.165CHAPTER 9 WATCHDOG TIMERp.1679.1 Watchdog Timer Functionsp.1679.2 Watchdog Timer Configurationp.1689.3 Watchdog Timer Control Registersp.1699.4 Watchdog Timer Operationp.1719.4.1 Operation as watchdog timerp.1719.4.2 Operation as interval timerp.172CHAPTER 10 10-BIT A/D CONVERTERp.17310.1 10-Bit A/D Converter Functionsp.17310.2 10-Bit A/D Converter Configurationp.17310.3 10-Bit A/D Converter Control Registersp.17610.4 10-Bit A/D Converter Operationp.17810.4.1 Basic operation of 10-bit A/D converterp.17810.4.2 Input voltage and conversion resultp.17910.4.3 Operation mode of 10-bit A/D converterp.18110.5 Cautions Related to 10-Bit A/D Converterp.182CHAPTER 11 SERIAL INTERFACE 20p.18611.1 Serial Interface 20 Functionsp.18611.2 Serial Interface 20 Configurationp.18611.3 Serial Interface 20 Control Registersp.19011.4 Serial Interface 20 Operationp.19711.4.1 Operation stop modep.19711.4.2 Asynchronous serial interface (UART) modep.19911.4.3 3-wire serial I/O modep.211CHAPTER 12 SERIAL INTERFACE 1A0p.21612.1 Function of Serial Interface 1A0p.21612.2 Configuration of Serial Interface 1A0p.21712.3 Control Registers for Serial Interface 1A0p.21912.4 Serial Interface 1A0 Operationp.22412.4.1 Operation stop modep.22412.4.2 3-wire serial I/O modep.22512.4.3 3-wire serial I/O mode with automatic transmit/receive functionp.230CHAPTER 13 LCD CONTROLLER/DRIVERp.25013.1 LCD Controller/Driver Functionsp.25013.2 LCD Controller/Driver Configurationp.25013.3 Registers Controlling LCD Controller/Driverp.25313.4 Setting LCD Controller/Driverp.25713.5 LCD Display Data Memoryp.25713.6 Common and Segment Signalsp.25813.7 Display Modesp.26013.7.1 Three-time-slice display examplep.26013.7.2 Four-time-slice display examplep.26313.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2p.266CHAPTER 14 MULTIPLIERp.26714.1 Multiplier Functionp.26714.2 Multiplier Configurationp.26714.3 Multiplier Control Registerp.26914.4 Multiplier Operationp.270CHAPTER 15 REMOTE CONTROLLER RECEIVER (uPD789489, 78F9489 ONLY)p.27115.1 Remote Controller Receiver Functionsp.27115.2 Remote Controller Receiver Configurationp.27115.3 Registers to Control Remote Controller Receiverp.27715.4 Operation of Remote Controller Receiverp.27915.4.1 Format of type A reception modep.27915.4.2 Operation flow of type A reception modep.27915.4.3 Timingp.28115.4.4 Compare register settingp.28315.4.5 Error interrupt generation timingp.28515.4.6 Noise eliminationp.287CHAPTER 16 INTERRUPT FUNCTIONSp.29016.1 Interrupt Function Typesp.29016.2 Interrupt Sources and Configurationp.29016.3 Registers Controlling Interrupt Functionp.29416.4 Interrupt Servicing Operationp.30116.4.1 Non-maskable interrupt request acknowledgment operationp.30116.4.2 Maskable interrupt request acknowledgment operationp.30316.4.3 Multiple interrupt servicingp.30416.4.4 Putting interrupt requests on holdp.306CHAPTER 17 STANDBY FUNCTIONp.30717.1 Standby Function and Configurationp.30717.1.1 Standby functionp.30717.1.2 Register controlling standby functionp.30817.2 Standby Function Operationp.30917.2.1 HALT modep.30917.2.2 STOP modep.312CHAPTER 18 RESET FUNCTIONp.315CHAPTER 19 FLASH MEMORY VERSIONp.31919.1 Flash Memory Characteristicsp.32019.1.1 Programming environmentp.32019.1.2 Communication modep.32119.1.3 On-board pin processingp.32419.1.4 Connection of adapter for flash writingp.32719.2 Cautions on uPD78F9488 and 78F9489p.330CHAPTER 20 MASK OPTIONSp.331CHAPTER 21 INSTRUCTION SETp.33221.1 Operationp.33221.1.1 Operand identifiers and description methodsp.33221.1.2 Description of “Operation” columnp.33321.1.3 Description of “Flag” columnp.33321.2 Operation Listp.33421.3 Instructions Listed by Addressing Typep.339CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)p.342CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)p.362CHAPTER 24 PACKAGE DRAWINGSp.364CHAPTER 25 RECOMMENDED SOLDERING CONDITIONSp.366APPENDIX A DEVELOPMENT TOOLSp.369A.1 Software Packagep.371A.2 Language Processing Softwarep.371A.3 Control Softwarep.372A.4 Flash Memory Writing Toolsp.372A.5 Debugging Tools (Hardware)p.373A.6 Debugging Tools (Software)p.374APPENDIX B NOTES ON TARGET SYSTEM DESIGNp.375APPENDIX C REGISTER INDEXp.379APPENDIX D REVISION HISTORYp.385
Page 14 of the NEC PD78F9489 user manual — Table of contents
Page 14 · click to enlarge
Page 14

Table of contents

COVERp.1INTRODUCTIONp.8CHAPTER 1 GENERALp.261.1 Featuresp.261.2 Applicationsp.261.3 Ordering Informationp.271.4 Pin Configuration (Top View)p.281.5 78K/0S Series Lineupp.311.6 Block Diagramp.341.7 Overview of Functionsp.35CHAPTER 2 PIN FUNCTIONSp.372.1 List of Pin Functionsp.372.2 Description of Pin Functionsp.402.2.1 P00 to P07 (Port 0)p.402.2.2 P10, P11 (Port 1)p.402.2.3 P20 to P25 (Port 2)p.402.2.4 P30 to P34 (Port 3)p.412.2.5 P50 to P53 (Port 5)p.412.2.6 P60 to P67 (Port 6)p.422.2.7 P70 to P73 (Port 7)p.422.2.8 P80 to P87 (Port 8)p.422.2.9 S0 to S27p.422.2.10 COM0 to COM3p.422.2.11 VLC0 to VLC2p.422.2.12 CAPH, CAPLp.422.2.13 RESET#p.432.2.14 X1, X2p.432.2.15 XT1, XT2p.432.2.16 AVDDp.432.2.17 AVSSp.432.2.18 VDDp.432.2.19 VSSp.432.2.20 VPP (flash memory version only)p.432.2.21 IC0 (mask ROM version only)p.442.3 Pin I/O Circuits and Recommended Connection of Unused Pinsp.45CHAPTER 3 CPU ARCHITECTUREp.483.1 Memory Spacep.483.1.1 Internal program memory spacep.523.1.2 Internal data memory spacep.533.1.3 Special function register (SFR) areap.533.1.4 Data memory addressingp.543.2 Processor Registersp.583.2.1 Control registersp.583.2.2 General-purpose registersp.613.2.3 Special function registers (SFRs)p.623.3 Instruction Address Addressingp.663.3.1 Relative addressingp.663.3.2 Immediate addressingp.673.3.3 Table indirect addressingp.683.3.4 Register addressingp.683.4 Operand Address Addressingp.693.4.1 Direct addressingp.693.4.2 Short direct addressingp.703.4.3 Special function register (SFR) addressingp.713.4.4 Register addressingp.723.4.5 Register indirect addressingp.733.4.6 Based addressingp.743.4.7 Stack addressingp.74CHAPTER 4 PORT FUNCTIONSp.754.1 Port Functionsp.754.2 Port Configurationp.764.2.1 Port 0p.774.2.2 Port 1p.784.2.3 Port 2p.794.2.4 Port 3p.844.2.5 Port 5p.864.2.6 Port 6p.874.2.7 Port 7p.894.2.8 Port 8p.904.3 Registers Controlling Port Functionp.914.4 Port Function Operationp.944.4.1 Writing to I/O portp.944.4.2 Reading from I/O portp.944.4.3 Arithmetic operation of I/O portp.94CHAPTER 5 CLOCK GENERATORp.955.1 Clock Generator Functionsp.955.2 Clock Generator Configurationp.955.3 Registers Controlling Clock Generatorp.985.4 System Clock Oscillatorsp.1015.4.1 Main system clock oscillatorp.1015.4.2 Subsystem clock oscillatorp.1025.4.3 Example of incorrect resonator connectionp.1035.4.4 Divider circuitp.1045.4.5 When subsystem clock is not usedp.1045.4.6 Subsystem clock (4 multiplication circuitp.1045.5 Clock Generator Operationp.1055.6 Changing Setting of System Clock and CPU Clockp.1065.6.1 Time required for switching between system clock and CPU clockp.1065.6.2 Switching between system clock and CPU clockp.107CHAPTER 6 16-BIT TIMER 20p.1086.1 16-Bit Timer 20 Functionsp.1086.2 16-Bit Timer 20 Configurationp.1086.3 Registers Controlling 16-Bit Timer 20p.1106.4 16-Bit Timer 20 Operationp.1136.4.1 Operation as timer interruptp.1136.4.2 Operation as timer outputp.1156.4.3 Capture operationp.1166.4.4 16-bit timer counter 20 readoutp.1176.5 Cautions on Using 16-Bit Timer 20p.1186.5.1 Restrictions when rewriting 16-bit compare register 20p.118CHAPTER 7 8-BIT TIMERS 50, 60, AND 61p.1207.1 Functions of 8-Bit Timers 50, 60, and 61p.1207.2 Configuration of 8-Bit Timers 50, 60, and 61p.1227.3 Control Registers for 8-Bit Timers 50, 60, and 61p.1287.4 Operation of 8-Bit Timers 50, 60, and 61p.1347.4.1 Operation as 8-bit timer counterp.1347.4.2 Operation as 16-bit timer counterp.1437.4.3 Operation as carrier generatorp.1507.4.4 PWM output mode operation (timer 50)p.1547.4.5 PPG output mode operation (timer 60 and timer 61)p.1587.5 Cautions on Using 8-Bit Timers 50, 60, and 61p.160CHAPTER 8 WATCH TIMERp.1618.1 Watch Timer Functionsp.1618.2 Configuration of Watch Timerp.1628.3 Control Registers for Watch Timerp.1638.4 Watch Timer Operationp.1658.4.1 Operation as watch timerp.1658.4.2 Operation as interval timerp.165CHAPTER 9 WATCHDOG TIMERp.1679.1 Watchdog Timer Functionsp.1679.2 Watchdog Timer Configurationp.1689.3 Watchdog Timer Control Registersp.1699.4 Watchdog Timer Operationp.1719.4.1 Operation as watchdog timerp.1719.4.2 Operation as interval timerp.172CHAPTER 10 10-BIT A/D CONVERTERp.17310.1 10-Bit A/D Converter Functionsp.17310.2 10-Bit A/D Converter Configurationp.17310.3 10-Bit A/D Converter Control Registersp.17610.4 10-Bit A/D Converter Operationp.17810.4.1 Basic operation of 10-bit A/D converterp.17810.4.2 Input voltage and conversion resultp.17910.4.3 Operation mode of 10-bit A/D converterp.18110.5 Cautions Related to 10-Bit A/D Converterp.182CHAPTER 11 SERIAL INTERFACE 20p.18611.1 Serial Interface 20 Functionsp.18611.2 Serial Interface 20 Configurationp.18611.3 Serial Interface 20 Control Registersp.19011.4 Serial Interface 20 Operationp.19711.4.1 Operation stop modep.19711.4.2 Asynchronous serial interface (UART) modep.19911.4.3 3-wire serial I/O modep.211CHAPTER 12 SERIAL INTERFACE 1A0p.21612.1 Function of Serial Interface 1A0p.21612.2 Configuration of Serial Interface 1A0p.21712.3 Control Registers for Serial Interface 1A0p.21912.4 Serial Interface 1A0 Operationp.22412.4.1 Operation stop modep.22412.4.2 3-wire serial I/O modep.22512.4.3 3-wire serial I/O mode with automatic transmit/receive functionp.230CHAPTER 13 LCD CONTROLLER/DRIVERp.25013.1 LCD Controller/Driver Functionsp.25013.2 LCD Controller/Driver Configurationp.25013.3 Registers Controlling LCD Controller/Driverp.25313.4 Setting LCD Controller/Driverp.25713.5 LCD Display Data Memoryp.25713.6 Common and Segment Signalsp.25813.7 Display Modesp.26013.7.1 Three-time-slice display examplep.26013.7.2 Four-time-slice display examplep.26313.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2p.266CHAPTER 14 MULTIPLIERp.26714.1 Multiplier Functionp.26714.2 Multiplier Configurationp.26714.3 Multiplier Control Registerp.26914.4 Multiplier Operationp.270CHAPTER 15 REMOTE CONTROLLER RECEIVER (uPD789489, 78F9489 ONLY)p.27115.1 Remote Controller Receiver Functionsp.27115.2 Remote Controller Receiver Configurationp.27115.3 Registers to Control Remote Controller Receiverp.27715.4 Operation of Remote Controller Receiverp.27915.4.1 Format of type A reception modep.27915.4.2 Operation flow of type A reception modep.27915.4.3 Timingp.28115.4.4 Compare register settingp.28315.4.5 Error interrupt generation timingp.28515.4.6 Noise eliminationp.287CHAPTER 16 INTERRUPT FUNCTIONSp.29016.1 Interrupt Function Typesp.29016.2 Interrupt Sources and Configurationp.29016.3 Registers Controlling Interrupt Functionp.29416.4 Interrupt Servicing Operationp.30116.4.1 Non-maskable interrupt request acknowledgment operationp.30116.4.2 Maskable interrupt request acknowledgment operationp.30316.4.3 Multiple interrupt servicingp.30416.4.4 Putting interrupt requests on holdp.306CHAPTER 17 STANDBY FUNCTIONp.30717.1 Standby Function and Configurationp.30717.1.1 Standby functionp.30717.1.2 Register controlling standby functionp.30817.2 Standby Function Operationp.30917.2.1 HALT modep.30917.2.2 STOP modep.312CHAPTER 18 RESET FUNCTIONp.315CHAPTER 19 FLASH MEMORY VERSIONp.31919.1 Flash Memory Characteristicsp.32019.1.1 Programming environmentp.32019.1.2 Communication modep.32119.1.3 On-board pin processingp.32419.1.4 Connection of adapter for flash writingp.32719.2 Cautions on uPD78F9488 and 78F9489p.330CHAPTER 20 MASK OPTIONSp.331CHAPTER 21 INSTRUCTION SETp.33221.1 Operationp.33221.1.1 Operand identifiers and description methodsp.33221.1.2 Description of “Operation” columnp.33321.1.3 Description of “Flag” columnp.33321.2 Operation Listp.33421.3 Instructions Listed by Addressing Typep.339CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)p.342CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)p.362CHAPTER 24 PACKAGE DRAWINGSp.364CHAPTER 25 RECOMMENDED SOLDERING CONDITIONSp.366APPENDIX A DEVELOPMENT TOOLSp.369A.1 Software Packagep.371A.2 Language Processing Softwarep.371A.3 Control Softwarep.372A.4 Flash Memory Writing Toolsp.372A.5 Debugging Tools (Hardware)p.373A.6 Debugging Tools (Software)p.374APPENDIX B NOTES ON TARGET SYSTEM DESIGNp.375APPENDIX C REGISTER INDEXp.379APPENDIX D REVISION HISTORYp.385
Page 15 of the NEC PD78F9489 user manual — Table of contents
Page 15 · click to enlarge
Page 15

Table of contents

COVERp.1INTRODUCTIONp.8CHAPTER 1 GENERALp.261.1 Featuresp.261.2 Applicationsp.261.3 Ordering Informationp.271.4 Pin Configuration (Top View)p.281.5 78K/0S Series Lineupp.311.6 Block Diagramp.341.7 Overview of Functionsp.35CHAPTER 2 PIN FUNCTIONSp.372.1 List of Pin Functionsp.372.2 Description of Pin Functionsp.402.2.1 P00 to P07 (Port 0)p.402.2.2 P10, P11 (Port 1)p.402.2.3 P20 to P25 (Port 2)p.402.2.4 P30 to P34 (Port 3)p.412.2.5 P50 to P53 (Port 5)p.412.2.6 P60 to P67 (Port 6)p.422.2.7 P70 to P73 (Port 7)p.422.2.8 P80 to P87 (Port 8)p.422.2.9 S0 to S27p.422.2.10 COM0 to COM3p.422.2.11 VLC0 to VLC2p.422.2.12 CAPH, CAPLp.422.2.13 RESET#p.432.2.14 X1, X2p.432.2.15 XT1, XT2p.432.2.16 AVDDp.432.2.17 AVSSp.432.2.18 VDDp.432.2.19 VSSp.432.2.20 VPP (flash memory version only)p.432.2.21 IC0 (mask ROM version only)p.442.3 Pin I/O Circuits and Recommended Connection of Unused Pinsp.45CHAPTER 3 CPU ARCHITECTUREp.483.1 Memory Spacep.483.1.1 Internal program memory spacep.523.1.2 Internal data memory spacep.533.1.3 Special function register (SFR) areap.533.1.4 Data memory addressingp.543.2 Processor Registersp.583.2.1 Control registersp.583.2.2 General-purpose registersp.613.2.3 Special function registers (SFRs)p.623.3 Instruction Address Addressingp.663.3.1 Relative addressingp.663.3.2 Immediate addressingp.673.3.3 Table indirect addressingp.683.3.4 Register addressingp.683.4 Operand Address Addressingp.693.4.1 Direct addressingp.693.4.2 Short direct addressingp.703.4.3 Special function register (SFR) addressingp.713.4.4 Register addressingp.723.4.5 Register indirect addressingp.733.4.6 Based addressingp.743.4.7 Stack addressingp.74CHAPTER 4 PORT FUNCTIONSp.754.1 Port Functionsp.754.2 Port Configurationp.764.2.1 Port 0p.774.2.2 Port 1p.784.2.3 Port 2p.794.2.4 Port 3p.844.2.5 Port 5p.864.2.6 Port 6p.874.2.7 Port 7p.894.2.8 Port 8p.904.3 Registers Controlling Port Functionp.914.4 Port Function Operationp.944.4.1 Writing to I/O portp.944.4.2 Reading from I/O portp.944.4.3 Arithmetic operation of I/O portp.94CHAPTER 5 CLOCK GENERATORp.955.1 Clock Generator Functionsp.955.2 Clock Generator Configurationp.955.3 Registers Controlling Clock Generatorp.985.4 System Clock Oscillatorsp.1015.4.1 Main system clock oscillatorp.1015.4.2 Subsystem clock oscillatorp.1025.4.3 Example of incorrect resonator connectionp.1035.4.4 Divider circuitp.1045.4.5 When subsystem clock is not usedp.1045.4.6 Subsystem clock (4 multiplication circuitp.1045.5 Clock Generator Operationp.1055.6 Changing Setting of System Clock and CPU Clockp.1065.6.1 Time required for switching between system clock and CPU clockp.1065.6.2 Switching between system clock and CPU clockp.107CHAPTER 6 16-BIT TIMER 20p.1086.1 16-Bit Timer 20 Functionsp.1086.2 16-Bit Timer 20 Configurationp.1086.3 Registers Controlling 16-Bit Timer 20p.1106.4 16-Bit Timer 20 Operationp.1136.4.1 Operation as timer interruptp.1136.4.2 Operation as timer outputp.1156.4.3 Capture operationp.1166.4.4 16-bit timer counter 20 readoutp.1176.5 Cautions on Using 16-Bit Timer 20p.1186.5.1 Restrictions when rewriting 16-bit compare register 20p.118CHAPTER 7 8-BIT TIMERS 50, 60, AND 61p.1207.1 Functions of 8-Bit Timers 50, 60, and 61p.1207.2 Configuration of 8-Bit Timers 50, 60, and 61p.1227.3 Control Registers for 8-Bit Timers 50, 60, and 61p.1287.4 Operation of 8-Bit Timers 50, 60, and 61p.1347.4.1 Operation as 8-bit timer counterp.1347.4.2 Operation as 16-bit timer counterp.1437.4.3 Operation as carrier generatorp.1507.4.4 PWM output mode operation (timer 50)p.1547.4.5 PPG output mode operation (timer 60 and timer 61)p.1587.5 Cautions on Using 8-Bit Timers 50, 60, and 61p.160CHAPTER 8 WATCH TIMERp.1618.1 Watch Timer Functionsp.1618.2 Configuration of Watch Timerp.1628.3 Control Registers for Watch Timerp.1638.4 Watch Timer Operationp.1658.4.1 Operation as watch timerp.1658.4.2 Operation as interval timerp.165CHAPTER 9 WATCHDOG TIMERp.1679.1 Watchdog Timer Functionsp.1679.2 Watchdog Timer Configurationp.1689.3 Watchdog Timer Control Registersp.1699.4 Watchdog Timer Operationp.1719.4.1 Operation as watchdog timerp.1719.4.2 Operation as interval timerp.172CHAPTER 10 10-BIT A/D CONVERTERp.17310.1 10-Bit A/D Converter Functionsp.17310.2 10-Bit A/D Converter Configurationp.17310.3 10-Bit A/D Converter Control Registersp.17610.4 10-Bit A/D Converter Operationp.17810.4.1 Basic operation of 10-bit A/D converterp.17810.4.2 Input voltage and conversion resultp.17910.4.3 Operation mode of 10-bit A/D converterp.18110.5 Cautions Related to 10-Bit A/D Converterp.182CHAPTER 11 SERIAL INTERFACE 20p.18611.1 Serial Interface 20 Functionsp.18611.2 Serial Interface 20 Configurationp.18611.3 Serial Interface 20 Control Registersp.19011.4 Serial Interface 20 Operationp.19711.4.1 Operation stop modep.19711.4.2 Asynchronous serial interface (UART) modep.19911.4.3 3-wire serial I/O modep.211CHAPTER 12 SERIAL INTERFACE 1A0p.21612.1 Function of Serial Interface 1A0p.21612.2 Configuration of Serial Interface 1A0p.21712.3 Control Registers for Serial Interface 1A0p.21912.4 Serial Interface 1A0 Operationp.22412.4.1 Operation stop modep.22412.4.2 3-wire serial I/O modep.22512.4.3 3-wire serial I/O mode with automatic transmit/receive functionp.230CHAPTER 13 LCD CONTROLLER/DRIVERp.25013.1 LCD Controller/Driver Functionsp.25013.2 LCD Controller/Driver Configurationp.25013.3 Registers Controlling LCD Controller/Driverp.25313.4 Setting LCD Controller/Driverp.25713.5 LCD Display Data Memoryp.25713.6 Common and Segment Signalsp.25813.7 Display Modesp.26013.7.1 Three-time-slice display examplep.26013.7.2 Four-time-slice display examplep.26313.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2p.266CHAPTER 14 MULTIPLIERp.26714.1 Multiplier Functionp.26714.2 Multiplier Configurationp.26714.3 Multiplier Control Registerp.26914.4 Multiplier Operationp.270CHAPTER 15 REMOTE CONTROLLER RECEIVER (uPD789489, 78F9489 ONLY)p.27115.1 Remote Controller Receiver Functionsp.27115.2 Remote Controller Receiver Configurationp.27115.3 Registers to Control Remote Controller Receiverp.27715.4 Operation of Remote Controller Receiverp.27915.4.1 Format of type A reception modep.27915.4.2 Operation flow of type A reception modep.27915.4.3 Timingp.28115.4.4 Compare register settingp.28315.4.5 Error interrupt generation timingp.28515.4.6 Noise eliminationp.287CHAPTER 16 INTERRUPT FUNCTIONSp.29016.1 Interrupt Function Typesp.29016.2 Interrupt Sources and Configurationp.29016.3 Registers Controlling Interrupt Functionp.29416.4 Interrupt Servicing Operationp.30116.4.1 Non-maskable interrupt request acknowledgment operationp.30116.4.2 Maskable interrupt request acknowledgment operationp.30316.4.3 Multiple interrupt servicingp.30416.4.4 Putting interrupt requests on holdp.306CHAPTER 17 STANDBY FUNCTIONp.30717.1 Standby Function and Configurationp.30717.1.1 Standby functionp.30717.1.2 Register controlling standby functionp.30817.2 Standby Function Operationp.30917.2.1 HALT modep.30917.2.2 STOP modep.312CHAPTER 18 RESET FUNCTIONp.315CHAPTER 19 FLASH MEMORY VERSIONp.31919.1 Flash Memory Characteristicsp.32019.1.1 Programming environmentp.32019.1.2 Communication modep.32119.1.3 On-board pin processingp.32419.1.4 Connection of adapter for flash writingp.32719.2 Cautions on uPD78F9488 and 78F9489p.330CHAPTER 20 MASK OPTIONSp.331CHAPTER 21 INSTRUCTION SETp.33221.1 Operationp.33221.1.1 Operand identifiers and description methodsp.33221.1.2 Description of “Operation” columnp.33321.1.3 Description of “Flag” columnp.33321.2 Operation Listp.33421.3 Instructions Listed by Addressing Typep.339CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)p.342CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)p.362CHAPTER 24 PACKAGE DRAWINGSp.364CHAPTER 25 RECOMMENDED SOLDERING CONDITIONSp.366APPENDIX A DEVELOPMENT TOOLSp.369A.1 Software Packagep.371A.2 Language Processing Softwarep.371A.3 Control Softwarep.372A.4 Flash Memory Writing Toolsp.372A.5 Debugging Tools (Hardware)p.373A.6 Debugging Tools (Software)p.374APPENDIX B NOTES ON TARGET SYSTEM DESIGNp.375APPENDIX C REGISTER INDEXp.379APPENDIX D REVISION HISTORYp.385
Page 16 of the NEC PD78F9489 user manual — Table of contents
Page 16 · click to enlarge
Page 16

Table of contents

COVERp.1INTRODUCTIONp.8CHAPTER 1 GENERALp.261.1 Featuresp.261.2 Applicationsp.261.3 Ordering Informationp.271.4 Pin Configuration (Top View)p.281.5 78K/0S Series Lineupp.311.6 Block Diagramp.341.7 Overview of Functionsp.35CHAPTER 2 PIN FUNCTIONSp.372.1 List of Pin Functionsp.372.2 Description of Pin Functionsp.402.2.1 P00 to P07 (Port 0)p.402.2.2 P10, P11 (Port 1)p.402.2.3 P20 to P25 (Port 2)p.402.2.4 P30 to P34 (Port 3)p.412.2.5 P50 to P53 (Port 5)p.412.2.6 P60 to P67 (Port 6)p.422.2.7 P70 to P73 (Port 7)p.422.2.8 P80 to P87 (Port 8)p.422.2.9 S0 to S27p.422.2.10 COM0 to COM3p.422.2.11 VLC0 to VLC2p.422.2.12 CAPH, CAPLp.422.2.13 RESET#p.432.2.14 X1, X2p.432.2.15 XT1, XT2p.432.2.16 AVDDp.432.2.17 AVSSp.432.2.18 VDDp.432.2.19 VSSp.432.2.20 VPP (flash memory version only)p.432.2.21 IC0 (mask ROM version only)p.442.3 Pin I/O Circuits and Recommended Connection of Unused Pinsp.45CHAPTER 3 CPU ARCHITECTUREp.483.1 Memory Spacep.483.1.1 Internal program memory spacep.523.1.2 Internal data memory spacep.533.1.3 Special function register (SFR) areap.533.1.4 Data memory addressingp.543.2 Processor Registersp.583.2.1 Control registersp.583.2.2 General-purpose registersp.613.2.3 Special function registers (SFRs)p.623.3 Instruction Address Addressingp.663.3.1 Relative addressingp.663.3.2 Immediate addressingp.673.3.3 Table indirect addressingp.683.3.4 Register addressingp.683.4 Operand Address Addressingp.693.4.1 Direct addressingp.693.4.2 Short direct addressingp.703.4.3 Special function register (SFR) addressingp.713.4.4 Register addressingp.723.4.5 Register indirect addressingp.733.4.6 Based addressingp.743.4.7 Stack addressingp.74CHAPTER 4 PORT FUNCTIONSp.754.1 Port Functionsp.754.2 Port Configurationp.764.2.1 Port 0p.774.2.2 Port 1p.784.2.3 Port 2p.794.2.4 Port 3p.844.2.5 Port 5p.864.2.6 Port 6p.874.2.7 Port 7p.894.2.8 Port 8p.904.3 Registers Controlling Port Functionp.914.4 Port Function Operationp.944.4.1 Writing to I/O portp.944.4.2 Reading from I/O portp.944.4.3 Arithmetic operation of I/O portp.94CHAPTER 5 CLOCK GENERATORp.955.1 Clock Generator Functionsp.955.2 Clock Generator Configurationp.955.3 Registers Controlling Clock Generatorp.985.4 System Clock Oscillatorsp.1015.4.1 Main system clock oscillatorp.1015.4.2 Subsystem clock oscillatorp.1025.4.3 Example of incorrect resonator connectionp.1035.4.4 Divider circuitp.1045.4.5 When subsystem clock is not usedp.1045.4.6 Subsystem clock (4 multiplication circuitp.1045.5 Clock Generator Operationp.1055.6 Changing Setting of System Clock and CPU Clockp.1065.6.1 Time required for switching between system clock and CPU clockp.1065.6.2 Switching between system clock and CPU clockp.107CHAPTER 6 16-BIT TIMER 20p.1086.1 16-Bit Timer 20 Functionsp.1086.2 16-Bit Timer 20 Configurationp.1086.3 Registers Controlling 16-Bit Timer 20p.1106.4 16-Bit Timer 20 Operationp.1136.4.1 Operation as timer interruptp.1136.4.2 Operation as timer outputp.1156.4.3 Capture operationp.1166.4.4 16-bit timer counter 20 readoutp.1176.5 Cautions on Using 16-Bit Timer 20p.1186.5.1 Restrictions when rewriting 16-bit compare register 20p.118CHAPTER 7 8-BIT TIMERS 50, 60, AND 61p.1207.1 Functions of 8-Bit Timers 50, 60, and 61p.1207.2 Configuration of 8-Bit Timers 50, 60, and 61p.1227.3 Control Registers for 8-Bit Timers 50, 60, and 61p.1287.4 Operation of 8-Bit Timers 50, 60, and 61p.1347.4.1 Operation as 8-bit timer counterp.1347.4.2 Operation as 16-bit timer counterp.1437.4.3 Operation as carrier generatorp.1507.4.4 PWM output mode operation (timer 50)p.1547.4.5 PPG output mode operation (timer 60 and timer 61)p.1587.5 Cautions on Using 8-Bit Timers 50, 60, and 61p.160CHAPTER 8 WATCH TIMERp.1618.1 Watch Timer Functionsp.1618.2 Configuration of Watch Timerp.1628.3 Control Registers for Watch Timerp.1638.4 Watch Timer Operationp.1658.4.1 Operation as watch timerp.1658.4.2 Operation as interval timerp.165CHAPTER 9 WATCHDOG TIMERp.1679.1 Watchdog Timer Functionsp.1679.2 Watchdog Timer Configurationp.1689.3 Watchdog Timer Control Registersp.1699.4 Watchdog Timer Operationp.1719.4.1 Operation as watchdog timerp.1719.4.2 Operation as interval timerp.172CHAPTER 10 10-BIT A/D CONVERTERp.17310.1 10-Bit A/D Converter Functionsp.17310.2 10-Bit A/D Converter Configurationp.17310.3 10-Bit A/D Converter Control Registersp.17610.4 10-Bit A/D Converter Operationp.17810.4.1 Basic operation of 10-bit A/D converterp.17810.4.2 Input voltage and conversion resultp.17910.4.3 Operation mode of 10-bit A/D converterp.18110.5 Cautions Related to 10-Bit A/D Converterp.182CHAPTER 11 SERIAL INTERFACE 20p.18611.1 Serial Interface 20 Functionsp.18611.2 Serial Interface 20 Configurationp.18611.3 Serial Interface 20 Control Registersp.19011.4 Serial Interface 20 Operationp.19711.4.1 Operation stop modep.19711.4.2 Asynchronous serial interface (UART) modep.19911.4.3 3-wire serial I/O modep.211CHAPTER 12 SERIAL INTERFACE 1A0p.21612.1 Function of Serial Interface 1A0p.21612.2 Configuration of Serial Interface 1A0p.21712.3 Control Registers for Serial Interface 1A0p.21912.4 Serial Interface 1A0 Operationp.22412.4.1 Operation stop modep.22412.4.2 3-wire serial I/O modep.22512.4.3 3-wire serial I/O mode with automatic transmit/receive functionp.230CHAPTER 13 LCD CONTROLLER/DRIVERp.25013.1 LCD Controller/Driver Functionsp.25013.2 LCD Controller/Driver Configurationp.25013.3 Registers Controlling LCD Controller/Driverp.25313.4 Setting LCD Controller/Driverp.25713.5 LCD Display Data Memoryp.25713.6 Common and Segment Signalsp.25813.7 Display Modesp.26013.7.1 Three-time-slice display examplep.26013.7.2 Four-time-slice display examplep.26313.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2p.266CHAPTER 14 MULTIPLIERp.26714.1 Multiplier Functionp.26714.2 Multiplier Configurationp.26714.3 Multiplier Control Registerp.26914.4 Multiplier Operationp.270CHAPTER 15 REMOTE CONTROLLER RECEIVER (uPD789489, 78F9489 ONLY)p.27115.1 Remote Controller Receiver Functionsp.27115.2 Remote Controller Receiver Configurationp.27115.3 Registers to Control Remote Controller Receiverp.27715.4 Operation of Remote Controller Receiverp.27915.4.1 Format of type A reception modep.27915.4.2 Operation flow of type A reception modep.27915.4.3 Timingp.28115.4.4 Compare register settingp.28315.4.5 Error interrupt generation timingp.28515.4.6 Noise eliminationp.287CHAPTER 16 INTERRUPT FUNCTIONSp.29016.1 Interrupt Function Typesp.29016.2 Interrupt Sources and Configurationp.29016.3 Registers Controlling Interrupt Functionp.29416.4 Interrupt Servicing Operationp.30116.4.1 Non-maskable interrupt request acknowledgment operationp.30116.4.2 Maskable interrupt request acknowledgment operationp.30316.4.3 Multiple interrupt servicingp.30416.4.4 Putting interrupt requests on holdp.306CHAPTER 17 STANDBY FUNCTIONp.30717.1 Standby Function and Configurationp.30717.1.1 Standby functionp.30717.1.2 Register controlling standby functionp.30817.2 Standby Function Operationp.30917.2.1 HALT modep.30917.2.2 STOP modep.312CHAPTER 18 RESET FUNCTIONp.315CHAPTER 19 FLASH MEMORY VERSIONp.31919.1 Flash Memory Characteristicsp.32019.1.1 Programming environmentp.32019.1.2 Communication modep.32119.1.3 On-board pin processingp.32419.1.4 Connection of adapter for flash writingp.32719.2 Cautions on uPD78F9488 and 78F9489p.330CHAPTER 20 MASK OPTIONSp.331CHAPTER 21 INSTRUCTION SETp.33221.1 Operationp.33221.1.1 Operand identifiers and description methodsp.33221.1.2 Description of “Operation” columnp.33321.1.3 Description of “Flag” columnp.33321.2 Operation Listp.33421.3 Instructions Listed by Addressing Typep.339CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)p.342CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)p.362CHAPTER 24 PACKAGE DRAWINGSp.364CHAPTER 25 RECOMMENDED SOLDERING CONDITIONSp.366APPENDIX A DEVELOPMENT TOOLSp.369A.1 Software Packagep.371A.2 Language Processing Softwarep.371A.3 Control Softwarep.372A.4 Flash Memory Writing Toolsp.372A.5 Debugging Tools (Hardware)p.373A.6 Debugging Tools (Software)p.374APPENDIX B NOTES ON TARGET SYSTEM DESIGNp.375APPENDIX C REGISTER INDEXp.379APPENDIX D REVISION HISTORYp.385
Page 17 of the NEC PD78F9489 user manual — LIST OF FIGURES (1/6)
Page 17 · click to enlarge
Page 17

LIST OF FIGURES (1/6)

Figure No. Title Page

2-1 I/O Circuit Types 46

3-1 Memory Map (µPD789488) 48

3-2 Memory Map (µPD78F9488) 49

3-3 Memory Map (µPD789489) 50

3-4 Memory Map (µPD78F9489) 51

3-5 Data Memory Addressing (µPD789488) 54

3-6 Data Memory Addressing (µPD78F9488) 55

3-7 Data Memory Addressing (µPD789489) 56

3-8 Data Memory Addressing (µPD78F9489) 57

3-9 Program Counter Configuration 58

3-10 Program Status Word Configuration 58

3-11 Stack Pointer Configuration 60

3-12 Data to Be Saved to Stack Memory 60

3-13 Data to Be Restored from Stack Memory 60

3-14 General-Purpose Register Configuration 61

4-1 Port Types 75

4-2 Block Diagram of P00 to P07 77

4-3 Block Diagram of P10 and P11 78

4-4 Block Diagram of P20 79

4-5 Block Diagram of P21 80

4-6 Block Diagram of P22 and P25 81

4-7 Block Diagram of P23 82

4-8 Block Diagram of P24 83

4-9 Block Diagram of P30 to P33 84

4-10 Block Diagram of P34 85

4-11 Block Diagram of P50 to P53 86

4-12 Block Diagram of P60 to P67 87

4-13 Block Diagram of P70 to P73 89

4-14 Block Diagram of P80 to P87 90

4-15 Port Mode Register Format 91

4-16 Format of Pull-Up Resistor Option Registers 93

4-17 Port Function Register Format 93

5-1 Clock Generator Block Diagram (µPD789488, 789489) 96

5-2 Clock Generator Block Diagram (µPD78F9488, 78F9489) 97

5-3 Format of Processor Clock Control Register 98

5-4 Format of Subclock Oscillation Mode Register 99

Page 18 of the NEC PD78F9489 user manual — LIST OF FIGURES (2/6)
Page 18 · click to enlarge
Page 18

LIST OF FIGURES (2/6)

Figure No. Title Page

5-5 Format of Subclock Control Register 99

5-6 Subclock Selection Register Format 100

5-7 External Circuit of Main System Clock Oscillator 101

5-8 External Circuit of Subsystem Clock Oscillator 102

5-9 Examples of Incorrect Resonator Connection 103

5-10 Switching Between System Clock and CPU Clock 107

6-1 Block Diagram of 16-Bit Timer 20 109

6-2 Format of 16-Bit Timer Mode Control Register 20 111

6-3 Format of Port Mode Register 3 112

6-4 Settings of 16-Bit Timer Mode Control Register 20 for Timer Interrupt Operation 113

6-5 Timing of Timer Interrupt Operation 114

6-6 Settings of 16-Bit Timer Mode Control Register 20 for Timer Output Operation 115

6-7 Timer Output Timing 115

6-8 Settings of 16-Bit Timer Mode Control Register 20 for Capture Operation 116

6-9 Capture Operation Timing (with Both Edges of CPT20 Pin Specified) 116

6-10 16-Bit Timer Counter 20 Readout Timing 117

7-1 Block Diagram of 24-Bit Event Counter 121

7-2 Block Diagram of Timer 50 123

7-3 Block Diagram of Timer 60 124

7-4 Block Diagram of Timer 61 125

7-5 Block Diagram of Output Controller (Timer 60) 126

7-6 Format of 8-Bit Timer Mode Control Register 50 128

7-7 Format of 8-Bit Timer Mode Control Register 60 130

7-8 Format of Carrier Generator Output Control Register 60 131

7-9 Format of 8-Bit Timer Mode Control Register 61 132

7-10 Format of Port Mode Register 3 133

7-11 Timing of Interval Timer Operation with 8-Bit Resolution (Basic Operation) 136

7-12 Timing of Interval Timer Operation with 8-Bit Resolution (When CRnm Is Set to 00H) 136

7-13 Timing of Interval Timer Operation with 8-Bit Resolution (When CRnm Is Set to FFH) 137

7-14 Timing of Interval Timer Operation with 8-Bit Resolution (When CRnm Changes from N to M (N < M)) 137

7-15 Timing of Interval Timer Operation with 8-Bit Resolution (When CRnm Changes from N to M (N > M)) 138

7-16 Timing of Interval Timer Operation with 8-Bit Resolution (When Timer 60 Match Signal Is Selected

for Timer 50 Count Clock) 139

7-17 Timing of Operation of External Event Counter with 8-Bit Resolution 140

7-18 Timing of Square-Wave Output with 8-Bit Resolution 142

7-19 Timing of Interval Timer Operation with 16-Bit Resolution 145

7-20 Timing of External Event Counter Operation with 16-Bit Resolution 147

Page 19 of the NEC PD78F9489 user manual — LIST OF FIGURES (3/6)
Page 19 · click to enlarge
Page 19

LIST OF FIGURES (3/6)

Figure No. Title Page

7-21 Timing of Square-Wave Output with 16-Bit Resolution 149

7-22 Timing of Carrier Generator Operation (When CR60 = N, CRH60 = M (M > N)) 151

7-23 Timing of Carrier Generator Operation (When CR60 = N, CRH60 = M (M < N)) 152

7-24 Timing of Carrier Generator Operation (When CR60 = CRH60 = N) 153

7-25 Operation Timing in PWM Output Mode (When Rising Edge Is Selected) 154

7-26 Operation Timing When Overwriting CR50 (When Rising Edge Is Selected) 155

7-27 Operation Timing in PWM Output Mode (When Both Edges Are Selected) 156

7-28 Operation Timing in PWM Output Mode (When Both Edges Are Selected)

(When CR50 Is Overwritten) 157

7-29 PPG Output Mode Timing (Basic Operation) 159

7-30 PPG Output Mode Timing (When CR6m and CRH6m Are Overwritten) 159

7-31 Case in Which Error of 1.5 Clocks (Max.) Occurs 160

7-32 Timing of Operation as External Event Counter (8-Bit Resolution) 160

8-1 Block Diagram of Watch Timer 161

8-2 Format of Watch Timer Mode Control Register 163

8-3 Format of Watch Timer Interrupt Time Selection Register 164

8-4 Watch Timer/Interval Timer Operation Timing 166

9-1 Block Diagram of Watchdog Timer 168

9-2 Format of Watchdog Timer Clock Selection Register 169

9-3 Format of Watchdog Timer Mode Register 170

10-1 Block Diagram of 10-Bit A/D Converter 174

10-2 Format of A/D Converter Mode Register 0 176

10-3 Format of Analog Input Channel Specification Register 0 177

10-4 Basic Operation of 10-Bit A/D Converter 179

10-5 Relationship Between Analog Input Voltage and A/D Conversion Result 180

10-6 Software-Started A/D Conversion 181

10-7 How to Reduce Current Consumption in Standby Mode 182

10-8 Conversion Result Read Timing (if Conversion Result Is Undefined) 183

10-9 Conversion Result Read Timing (if Conversion Result Is Normal) 183

10-10 Analog Input Pin Handling 184

10-11 A/D Conversion End Interrupt Request Generation Timing 185

10-12 AVDD Pin Handling 185

11-1 Block Diagram of Serial Interface 20 187

11-2 Bock Diagram of Baud Rate Generator 20 188

11-3 Format of Serial Operation Mode Register 20 190

Page 20 of the NEC PD78F9489 user manual — LIST OF FIGURES (4/6)
Page 20 · click to enlarge
Page 20

LIST OF FIGURES (4/6)

Figure No. Title Page

11-4 Format of Asynchronous Serial Interface Mode Register 20 191

11-5 Format of Asynchronous Serial Interface Status Register 20 193

11-6 Format of Baud Rate Generator Control Register 20 194

11-7 Format of Asynchronous Serial Interface Transmit/Receive Data 204

11-8 Asynchronous Serial Interface Transmission Completion Interrupt Timing 206

11-9 Asynchronous Serial Interface Reception Completion Interrupt Timing 207

11-10 Receive Error Timing 208

11-11 3-Wire Serial I/O Mode Timing 214

12-1 Block Diagram of Serial Interface 1A0 217

12-2 Format of Serial Operation Mode Register 1A0 220

12-3 Format of Automatic Data Transmit/Receive Control Register 0 221

12-4 Format of Automatic Data Transmit/Receive Interval Specification Register 0 222

12-5 3-Wire Serial I/O Mode Timing 227

12-6 Circuit of Switching in Transfer Bit Order 229

12-7 Basic Transmit/Receive Mode Operation Timing 236

12-8 Basic Transmit/Receive Mode Flowchart 237

12-9 Buffer RAM Operation in 6-Byte Transmission/Reception (in Basic Transmit/Receive Mode) 238

12-10 Basic Transmit Mode Operation Timing 240

12-11 Basic Transmit Mode Flowchart 241

12-12 Buffer RAM Operation in 6-Byte Transmission (in Basic Transmit Mode) 242

12-13 Repeat Transmit Mode Operation Timing 244

12-14 Repeat Transmit Mode Flowchart 245

12-15 Buffer RAM Operation in 6-Byte Transmission (in Repeat Transmit Mode) 246

12-16 Automatic Transmission/Reception Suspension and Restart 248

12-17 Interval Time of Automatic Transmission/Reception 249

13-1 Correspondence with LCD Display RAM 251

13-2 LCD Controller/Driver Block Diagram 252

13-3 Format of LCD Display Mode Register 0 254

13-4 Format of LCD Clock Control Register 0 255

13-5 Format of LCD Voltage Boost Control Register 0 256

13-6 Relationship Between LCD Display Data Memory Contents and Segment/Common Outputs

(When Using S16 to S27) 257

13-7 Common Signal Waveforms 259

13-8 Voltages and Phases of Common and Segment Signals 259

13-9 Three-Time-Slice LCD Display Pattern and Electrode Connections 260

13-10 Example of Connecting Three-Time-Slice LCD Panel 261

13-11 Three-Time-Slice LCD Drive Waveform Examples (1/3 Bias Method) 262

Page 21 of the NEC PD78F9489 user manual — LIST OF FIGURES (5/6)
Page 21 · click to enlarge
Page 21

LIST OF FIGURES (5/6)

Figure No. Title Page

13-12 Four-Time-Slice LCD Display Pattern and Electrode Connections 263

13-13 Example of Connecting Four-Time-Slice LCD Panel 264

13-14 Four-Time-Slice LCD Drive Waveform Examples (1/3 Bias Method) 265

13-15 Example of Connecting Pins for LCD Driver 266

14-1 Block Diagram of Multiplier 268

14-2 Format of Multiplier Control Register 0 269

14-3 Multiplier Operation Timing (Example of AAH × D3H) 270

15-1 Block Diagram of Remote Controller Receiver 272

15-2 Operation Examples of RMSR, RMSCR, and RMDR Registers When Receiving

1010101011111111B (16 Bits) 273

15-3 Format of Remote Controller Receive Control Register 277

15-4 Example of Type A Data Format 279

15-5 Operation Flow of Type A Reception Mode 280

15-6 Setting Example (Where n1 = 1, n2 = 2) 284

15-7 Generation Timing of INTRERR Signal 286

15-8 Noise Elimination Operation Example 288

16-1 Basic Configuration of Interrupt Function 293

16-2 Format of Interrupt Request Flag Registers 295

16-3 Format of Interrupt Mask Flag Registers 296

16-4 Format of External Interrupt Mode Registers 297

16-5 Program Status Word Configuration 298

16-6 Format of Key Return Mode Register 00 299

16-7 Block Diagram of Falling Edge Detector 299

16-8 Format of Key Return Mode Register 01 300

16-9 Block Diagram of Falling Edge Detector 300

16-10 Flow from Generation of Non-Maskable Interrupt Request to Acknowledgment 302

16-11 Timing of Non-Maskable Interrupt Request Acknowledgment 302

16-12 Non-Maskable Interrupt Request Acknowledgment 302

16-13 Interrupt Request Acknowledgment Program Algorithm 303

16-14 Interrupt Request Acknowledgment Timing (Example: MOV A, r) 304

16-15 Interrupt Request Acknowledgment Timing (When Interrupt Request Flag Is Generated in Final

Clock Under Execution) 304

16-16 Example of Multiple Interrupt Servicing 305

17-1 Format of Oscillation Stabilization Time Selection Register 308

17-2 Releasing HALT Mode by Interrupt 310

Page 22 of the NEC PD78F9489 user manual — LIST OF FIGURES (6/6)
Page 22 · click to enlarge
Page 22

LIST OF FIGURES (6/6)

Figure No. Title Page

17-3 Releasing HALT Mode by RESET Input 311

17-4 Releasing STOP Mode by Interrupt 313

17-5 Releasing STOP Mode by RESET Input 314

18-1 Block Diagram of Reset Function 315

18-2 Reset Timing by RESET Input 316

18-3 Reset Timing by Overflow in Watchdog Timer 316

18-4 Reset Timing by RESET Input in STOP Mode 316

19-1 Environment for Writing Program to Flash Memory 320

19-2 Communication Mode Selection Format 321

19-3 Example of Connection with Dedicated Flash Programmer 322

19-4 VPP Pin Connection Example 324

19-5 Signal Conflict (Input Pin of Serial Interface) 325

19-6 Abnormal Operation of Other Device 325

19-7 Signal Conflict (RESET Pin) 326

19-8 Wiring Example for Flash Writing Adapter with 3-Wire Serial I/O 327

19-9 Wiring Example for Flash Writing Adapter with 3-Wire Serial I/O with Handshake 328

19-10 Wiring Example for Flash Writing Adapter with UART 329

A-1 Development Tools 370

B-1 Distance Between In-Circuit Emulator and Conversion Socket (80GC) 375

B-2 Connection Conditions of Target System (When NP-80GC-TQ Is Used) 376

B-3 Connection Conditions of Target System (When NP-H80GC-TQ Is Used) 376

B-4 Distance Between In-Circuit Emulator and Conversion Adapter (80GK) 377

B-5 Connection Conditions of Target System (When NP-80GK Is Used) 378

B-6 Connection Conditions of Target System (When NP-H80GK-TQ Is Used) 378

Page 23 of the NEC PD78F9489 user manual — LIST OF TABLES (1/3)
Page 23 · click to enlarge
Page 23

LIST OF TABLES (1/3)

Table No. Title Page

2-1 Types of Pin I/O Circuits 45

3-1 Internal ROM Capacity 52

3-2 Vector Table 52

3-3 Internal High-Speed RAM, Internal Low-Speed RAM Capacity 53

3-4 Special Function Registers 63

4-1 Port Functions 76

4-2 Configuration of Port 76

4-3 Port Mode Registers and Output Latch Settings When Using Alternate Functions 92

5-1 Configuration of Clock Generator 95

5-2 Maximum Time Required for Switching CPU Clock 106

6-1 16-Bit Timer 20 Configuration 108

6-2 Interval Time of 16-Bit Timer 20 113

6-3 Settings of Capture Edge 116

7-1 Operation Modes 120

7-2 Configuration of 8-Bit Timers 50, 60, and 61 122

7-3 Interval Time of Timer 50 135

7-4 Interval Time of Timer 60 135

7-5 Interval Time of Timer 61 135

7-6 Square-Wave Output Range of Timer 50 141

7-7 Square-Wave Output Range of Timer 60 142

7-8 Square-Wave Output Range of Timer 61 142

7-9 Interval Time with 16-Bit Resolution 144

7-10 Square-Wave Output Range with 16-Bit Resolution 148

8-1 Interval Time of Interval Timer 162

8-2 Configuration of Watch Timer 162

8-3 Interval Time of Interval Timer 165

9-1 Watchdog Timer Program Loop Detection Time 167

9-2 Interval Time 167

9-3 Configuration of Watchdog Timer 168

9-4 Watchdog Timer Program Loop Detection Time 171

9-5 Interval Time of Interval Timer 172

Page 24 of the NEC PD78F9489 user manual — LIST OF TABLES (2/3)
Page 24 · click to enlarge
Page 24

LIST OF TABLES (2/3)

Table No. Title Page

10-1 Configuration of 10-Bit A/D Converter 173

11-1 Configuration of Serial Interface 20 186

11-2 Serial Interface 20 Operation Mode Settings 192

11-3 Example of Relationship Between System Clock and Baud Rate 195

11-4 Relationship Between ASCK20 Pin Input Frequency and Baud Rate (When BRGC20 Is Set to 80H) 196

11-5 Example of Relationship Between System Clock and Baud Rate 203

11-6 Relationship Between ASCK20 Pin Input Frequency and Baud Rate (When BRGC20 Is Set to 80H) 203

11-7 Receive Error Causes 208

12-1 Configuration of Serial Interface 1A0 217

12-2 Timing of Interrupt Request Signal Generation 249

13-1 Maximum Number of Display Pixels 250

13-2 Configuration of LCD Controller/Driver 250

13-3 Frame Frequencies (Hz) 255

13-4 COM Signals 258

13-5 Select and Deselect Voltages (COM0 to COM2) 260

13-6 Select and Deselect Voltages (COM0 to COM3) 263

13-7 Output Voltages of VLC0 to VLC2 Pins 265

15-1 Remote Controller Receiver Configuration 271

15-2 Noise Elimination Width 287

16-1 Interrupt Sources (µPD789488, 78F9488) 291

16-2 Interrupt Sources (µPD789489, 78F9489) 292

16-3 Flags Corresponding to Interrupt Request Signal Names 294

16-4 Time from Generation of Maskable Interrupt Request to Servicing 303

17-1 Operation Statuses in HALT Mode 309

17-2 Operation After Releasing HALT Mode 311

17-3 Operation Statuses in STOP Mode 312

17-4 Operation After Releasing STOP Mode 314

18-1 Status of Hardware After Reset 317

19-1 Differences Between µPD78F9488, 78F9489, and Mask ROM Version 319

19-2 Communication Mode List 321

19-3 Pin Connection List 323

Page 25 of the NEC PD78F9489 user manual — LIST OF TABLES (3/3)
Page 25 · click to enlarge
Page 25

LIST OF TABLES (3/3)

Table No. Title Page

21-1 Operand Identifiers and Description Methods 332

25-1 Surface Mounting Type Soldering Conditions 366

B-1 Distance Between IE System and Conversion Adapter 375

Page 26 of the NEC PD78F9489 user manual — 1.2 Applications
Page 26 · click to enlarge
Page 26

CHAPTER 1 GENERAL

1.1 Features

  • ROM and RAM capacities

(ROM) Internal RAM LCD Display RAM

µPD789488 Mask ROM

32 KB 1024 bytes 28 × 4 bits

µPD78F9488 Flash memory

µPD789489 Mask ROM 1536 bytes

48 KB

µPD78F9489 Flash memory

  • Minimum instruction execution time can be selected from 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)

  • A circuit to multiply the subsystem clock by 4 is selectable (15.26 µ s: @131 kHz operation: 32.768 kHz subsystem
  • I/O ports: 45 (N-ch open-drain: 4)
  • Timer: 6 channels
  • Serial interface: 2 channels
  • 10-bit resolution A/D converter: 8 channels
  • LCD controller/driver (on-chip voltage booster)
Segment signals28, common signals: 4
  • On-chip multiplier: 8 bits × 8 bits = 16 bits
  • On-chip infrared remote controller receiver ( µ PD789489, 78F9489 only)
  • On-chip key return signal detector
  • Supply voltage: V DD = 1.8 to 5.5 V

1.2 Applications

CD radio-cassette players, portable audio, compact cameras, healthcare equipment, etc.

Show 4 more labels / short text on this page
Item Data Memory · Program Memory · Part Number · clock × 4)
Page 27 of the NEC PD78F9489 user manual — CHAPTER 1 GENERAL
Page 27 · click to enlarge
Page 27

CHAPTER 1 GENERAL

1.3 Ordering Information

Part Number Package Internal ROM

µPD789488GC-×××-8BT 80-pin plastic QFP (14 × 14) Mask ROM

µPD789488GK-×××-9EU 80-pin plastic TQFP (fine pitch) (12 × 12) Mask ROM

µPD78F9488GC-8BT 80-pin plastic QFP (14 × 14) Flash memory

µPD78F9488GK-9EU 80-pin plastic TQFP (fine pitch) (12 × 12) Flash memory

µPD789489GC-×××-8BT 80-pin plastic QFP (14 × 14) Mask ROM

µPD789489GK-×××-9EU 80-pin plastic TQFP (fine pitch) (12 × 12) Mask ROM

µPD78F9489GC-8BT 80-pin plastic QFP (14 × 14) Flash memory

µPD78F9489GK-9EU 80-pin plastic TQFP (fine pitch) (12 × 12) Flash memory

µPD789488GC-×××-8BT-A 80-pin plastic QFP (14 × 14) Mask ROM

µPD789488GK-×××-9EU-A 80-pin plastic TQFP (fine pitch) (12 × 12) Mask ROM

µPD78F9488GC-8BT-A 80-pin plastic QFP (14 × 14) Flash memory

µPD78F9488GK-9EU-A 80-pin plastic TQFP (fine pitch) (12 × 12) Flash memory

µPD789489GC-×××-8BT-A 80-pin plastic QFP (14 × 14) Mask ROM

µPD789489GK-×××-9EU-A 80-pin plastic TQFP (fine pitch) (12 × 12) Mask ROM

µPD78F9489GC-8BT-A 80-pin plastic QFP (14 × 14) Flash memory

µPD78F9489GK-9EU-A 80-pin plastic TQFP (fine pitch) (12 × 12) Flash memory

Remarks 1. ××× indicates ROM code suffix.

2. Products that have the part numbers suffixed by "-A" are lead-free products.
Page 28 of the NEC PD78F9489 user manual — S11
Page 28 · click to enlarge
Page 28

CHAPTER 1 GENERAL

1.4 Pin Configuration (Top View)

(1) µPD789488, 78F9488

80-pin plastic QFP (14 × 14)

µPD789488GC-×××-8BT µPD78F9488GC-8BT

µPD789488GC-×××-8BT-A µPD78F9488GC-8BT-A

80-pin plastic TQFP (fine pitch) (12 × 12)

µPD789488GK-×××-9EU µPD78F9488GK-9EU

µPD789488GK-×××-9EU-A µPD78F9488GK-9EU-A

P00/KR00

P01/KR01

P02/KR02

P03/KR03

P04/KR04

P05/KR05

P06/KR06

P07/KR07

RESET

IC0 (V PP )

P50

P51

P52

P53

XT2

XT1

V SS

V DD

80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61

CAPH

P10

CAPL

P11

P20/SCK20/ASCK20

COM0

P23/SCK10

COM1

P24/SO10

COM2

P25/SI10

COM3

P30/INTP0/TO50/TMI60

S0

P31/INTP1/TO60

S1

P32/INTP2/TMI61/TO61

S2

P33/INTP3/CPT20/TO20

S3

P34/RIN

S4

AV SS

S5

P60/ANI0/KR10

S6

P61/ANI1/KR11

S7

P62/ANI2/KR12

S8

P63/ANI3/KR13

S9

P64/ANI4/KR14

S10

P65/ANI5/KR15

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

S11

S12

S13

S14

S15

AV DD

P67/ANI7/KR17

P66/ANI6/KR16

selected in 1-bit units by means of a mask option or port function register (refer to 4.3 (3) Port function

registers and CHAPTER 20 MASK OPTIONS).

2. Whether to use these pins as I/O port pins (P80 to P87) or segment outputs (S20 to S27) can be

selected in 1-bit units by means of a mask option or port function register (refer to 4.3 (3) Port function

registers and CHAPTER 20 MASK OPTIONS).

Show 14 more labels / short text on this page
P21/SO20/TxD20 · P22/SI20/RxD20 · P70/S16Note 1 · P71/S17Note 1 · P72/S18Note 1 · P73/S19Note 1 · P80/S20Note 2 · P81/S21Note 2 · P82/S22Note 2 · P83/S23Note 2 · P84/S24Note 2 · P85/S25Note 2 · P86/S26Note 2 · P87/S27Note 2
Page 29 of the NEC PD78F9489 user manual — S11
Page 29 · click to enlarge
Page 29

CHAPTER 1 GENERAL

2. Connect the AV DD pin to V DD .
3. Connect the AV SS pin to V SS .

Remark The parenthesized values apply to the µPD78F9488

(2) µPD789489, 78F9489

80-pin plastic QFP (14 × 14)

µPD789489GC-×××-8BT µPD78F9489GC-8BT

µPD789489GC-×××-8BT-A µPD78F9489GC-8BT-A

80-pin plastic TQFP (fine pitch) (12 × 12)

µPD789489GK-×××-9EU µPD78F9489GK-9EU

µPD789489GK-×××-9EU-A µPD78F9489GK-9EU-A

IC0 (V PP )

P00/KR00

P01/KR01

P02/KR02

P03/KR03

P04/KR04

P05/KR05

P06/KR06

P07/KR07

RESET

P50

P51

P52

P53

XT2

XT1

V SS

V DD

80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61

CAPH

P10

CAPL

P11

P20/SCK20/ASCK20

COM0

P23/SCK10

COM1

P24/SO10

COM2

P25/SI10

COM3

P30/INTP0/TO50/TMI60

S0

P31/INTP1/TO60

S1

P32/INTP2/TMI61/TO61

S2

P33/INTP3/CPT20/TO20

S3

P34/RIN

S4

AV SS

S5

P60/ANI0/KR10

S6

P61/ANI1/KR11

S7

P62/ANI2/KR12

S8

P63/ANI3/KR13

S9

P64/ANI4/KR14

S10

P65/ANI5/KR15

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

S11

S12

S13

S14

S15

AV DD

P67/ANI7/KR17

P66/ANI6/KR16

Show 14 more labels / short text on this page
P21/SO20/TxD20 · P22/SI20/RxD20 · P70/S16Note 1 · P71/S17Note 1 · P72/S18Note 1 · P73/S19Note 1 · P80/S20Note 2 · P81/S21Note 2 · P82/S22Note 2 · P83/S23Note 2 · P84/S24Note 2 · P85/S25Note 2 · P86/S26Note 2 · P87/S27Note 2
Page 30 of the NEC PD78F9489 user manual — Pin Name
Page 30 · click to enlarge
Page 30

CHAPTER 1 GENERAL

selected in 1-bit units by means of a mask option or port function register (refer to 4.3 (3) Port function

registers and CHAPTER 20 MASK OPTIONS).

2. Whether to use these pins as I/O port pins (P80 to P87) or segment outputs (S20 to S27) can be

selected in 1-bit units by means of a mask option or port function register (refer to 4.3 (3) Port function

registers and CHAPTER 20 MASK OPTIONS).

2. Connect the AV DD pin to V DD .
3. Connect the AV SS pin to V SS .

Remark The parenthesized values apply to the µPD78F9489.

Pin Name

ANI0 to ANI7Analog input
RESETReset
ASCK20Asynchronous serial input
RINRemote control input
AV DDAnalog power supply
RxD0Receive data
AV SSAnalog ground
S0 to S27Segment output
CAPH, CAPLLCD power supply capacitance
SCK10Serial clock input/output
SI10Serial data input
COM0 to COM3Common output
SO10Serial data output
CPT20Capture trigger input
SCK20Serial block input/output
IC0Internally connected
SI20Serial data input
INTP0 to INTP3External interrupt input
SO20Serial data output
KR0 to KR7Key return
TMI60, 61Timer input
KR00 to KR07Key return
TO20,50,60,61Timer output
KR10 to KR17Key return
TxD0Transmit data
P00 to P07Port 0
V DDPower supply
P10, P11Port 1
V LC0 to V LC2Power supply for LCD
P20 to P25Port 2
V PPProgramming power supply
P30 to P34Port 3
V SSGround
P60 to P67Port 6
X1, X2Crystal (Main system clock)
P70 to P73Port 7
XT1, XT2Crystal (Subsystem clock)
P80 to P87Port 8

control

Page 31 of the NEC PD78F9489 user manual — PD789467
Page 31 · click to enlarge
Page 31

CHAPTER 1 GENERAL

1.5 78K/0S Series Lineup

The products in the 78K/0S Series are listed below. The names enclosed in boxes are subseries names.

Products under development Products in mass production

Y Subseries products support SMB.

Small-scale package, general-purpose applications

µ

PD789046 PD789026

PD789074 with added subsystem clock

On-chip UART and capable of low voltage (1.8 V) operation

PD789074 30-pin PD789026 with enhanced timer 30-pin PD789074 with enhanced timer and increased ROM, RAM capacity PD789088

PD789052 20-pin PD789860 without EEPROM, POC, and LVI PD789062 20-pin RC oscillation version of the PD789052

Small-scale package, general-purpose applications and A/D converter

PD789177 PD789167

PD789177Y

PD789167 with enhanced A/D converter (10 bits) PD789104A with enhanced timer PD789124A with enhanced A/D converter (10 bits) RC oscillation version of the PD789104A PD789104A with enhanced A/D converter (10 bits) PD789026 with added 8-bit A/D converter and multiplier

44-pin 30-pin

PD789167Y

PD789124A PD789134A

PD789114A

PD789104A

UART and dot LCD (40 × 16) UART, 8-bit A/D, and dot LCD (Total display output pins: 96)

SIO, 10-bit A/D converter, and on-chip voltage booster type LCD (28 × 4) 80-pin

PD789489

SIO, 8-bit A/D converter, and resistance division type LCD (28 × 4) 80-pin PD789479

80-pin PD789417A PD789407A with enhanced A/D converter (10 bits)

µ

80-pin SIO, 8-bit A/D converter, and resistance division type LCD (28 × 4)

PD789407A

PD789456

PD789446 with enhanced A/D converter (10 bits) SIO, 8-bit A/D, and on-chip voltage booster type LCD (15 × 4)

PD789446 PD789436 PD789426

PD789426 with enhanced A/D converter (10 bits)

SIO, 8-bit A/D, and on-chip voltage booster type LCD (5 × 4) RC oscillation version of the PD789306 SIO and on-chip voltage booster type LCD (24 × 4)

PD789306 PD789316

52-pin SIO and resistance division type LCD (24 × 4) 8-bit A/D and on-chip voltage booster type LCD (23 × 4) PD789327

PD789467

USB

44-pin PD789800 For PC keyboard and on-chip USB function

44-pin PD789842 On-chip inverter controller and UART

44-pin PD789852 PD789850A with enhanced functions such as timer and A/D converter

30-pin PD789850A On-chip CAN controller

PD789862 30-pin PD789860 with enhanced timer, added SIO, and increased ROM, RAM capacity

RC oscillation version of the PD789860

On-chip POC and key return circuit

On-chip analog macro for sensor 20-pin RC oscillation version of the PD789864

52-pin PD789871 On-chip VFD controller (Total display output pins: 25)

PD789881 64-pin UART and resistance division type LCD (26 × 4)

Remark VFD (Vacuum Fluorescent Display) is referred to as FIPTM (Fluorescent Indicator Panel) in some

documents, but the functions of the two are the same.

Show 57 more labels / short text on this page
42-/44-pin 44-pin · µ · µ · µ · µ · µ · 44-pin · µ µ µ · µ · µ · µ µ · µ · µ µ µ · µ · µ µ · LCD drive · PD789835B 144-pin · µ · 88-pin PD789830 · µ · µ · µ · 78K/0S Series · µ · 64-pin 64-pin · µ · 64-pin 64-pin · µ · µ µ · 64-pin 64-pin · µ · µ µ · µ · 52-pin · µ · Inverter control · µ · On-chip bus controller · µ · µ · µ · Keyless entry · µ · µ · PD789861 20-pin · µ µ · µ · 20-pin PD789860 · Sensor · PD789864 µ · 20-pin PD789863 · µ · µ · VFD drive · µ · Meter control · µ
Page 32 of the NEC PD78F9489 user manual — CHAPTER 1 GENERAL
Page 32 · click to enlarge
Page 32

CHAPTER 1 GENERAL

The major functional differences between the subseries are listed below.

Series for General-purpose applications and LCD drive

NEC PD78F9489 — CHAPTER 1 GENERAL diagram (page 32)
Fig. 4

µPD789074 2 KB to 8 KB 1 ch

6 ch − 3 ch 37 1.8 V Note

Page 33 of the NEC PD78F9489 user manual — CHAPTER 1 GENERAL
Page 33 · click to enlarge
Page 33

CHAPTER 1 GENERAL

NEC PD78F9489 — CHAPTER 1 GENERAL diagram (page 33)
Fig. 5

USB µPD789800 8 KB 2 ch − − 1 ch − − 2 ch

µPD789842 8 KB to 16 KB 3 ch Note 1 1 ch 1 ch 8 ch − 1 ch

4 KB 1 ch Note 2 − 1 ch − 4 ch − 5 1.9 V

VFD drive µPD789871 4 KB to 8 KB 3 ch − 1 ch 1 ch − − 1 ch 33 2.7 V −

µPD789881 16 KB 2 ch 1 ch − 1 ch − − 1 ch

2. 12-bit timer: 1 channel
3. Flash memory version: 3.0 V

Series for ASSP

Page 34 of the NEC PD78F9489 user manual — V DD V SS IC0 (V PP )
Page 34 · click to enlarge
Page 34

CHAPTER 1 GENERAL

1.6 Block Diagram

CPT20/TO20/P33

P00 to P07 Port 0

TO50/P30

P10 to P11 Port 1

TMI60/P30

8-bit timer/ event counter 60

P20 to P25 Port 2

TO60/P31

8-bit timer/ event counter 61

TMI61/TO61/P32

P30 to P34 Port 3

P50 to P53 Port 5

P60 to P67 Port 6

SCK20/ASCK20/P20

P70 to P73Note 1 Port 7

P80 to P87Note 2 Port 8

SCK10/P23

SI10/P25 SO10/P24

RAM

Remote control signal receiverNote 4 Note 4RIN/P34

KR7/P07

KR07/P07

RESET X1 X2 XT1 XT2

KR17/ANI7/P67

ANI7/P67

AV DD AV SS

VLC0 to VLC2

V DD V SS IC0 (V PP )

CAPH

CAPL

in 1-bit units by means of a mask option in the µPD789488, 789489 or a port mode register in the

µPD78F9488, 78F9489 (refer to 4.3 (3) Port function registers and CHAPTER 20 MASK OPTIONS).

2. Whether to use these pins as I/O port pins (P80 to P87) or segment outputs (S20 to S27) can be

selected in 1-bit units by means of a mask option in the µPD789488 or a port mode register in the

µPD78F9488, 78F9489 (refer to 4.3 (3) Port function registers and CHAPTER 20 MASK OPTIONS).

3. When µ PD789488, 78F9488 is used.
4. When µ PD789489, 78F9489 is used.

Remark The parenthesized values apply to the flash memory version.

Show 26 more labels / short text on this page
16-bit timer 20 · 8-bit timer 50 · Watch timer · ROM (flash memory) · 78K/0S CPU core · Watchdog timer · Serial interface 20 · SI20/RxD20/P22 SO20/TxD20/P21 · Serial interface 1A0 · RAM space · for LCD · Interrupt · INTP0/P30 to INTP3/P33 · data · control · Standby · control · Key return · System · control · ANI0/P60 to · A/D converter · Multiplier · S0 to S15 · LCD controller/driver · COM0 to COM3
Page 35 of the NEC PD78F9489 user manual — CHAPTER 1 GENERAL
Page 35 · click to enlarge
Page 35

CHAPTER 1 GENERAL

1.7 Overview of Functions

Item µPD789488 µPD78F9488 µPD789489 µPD78F9489

ROM 32 KB 32 KB (flash memory)

48 KB 48 KB (flash memory)

High-speed RAM 1024 bytes

Low-speed RAM − 512 bytes

LCD display RAM 28 bytes

Main system clock (oscillation frequency)

Ceramic/crystal oscillation (1.0 to 5.0 MHz)

Subsystem clock (oscillation frequency)

Crystal oscillation (32.768 kHz)

Minimum instruction execution time

0.4 µs/1.6 µs (@5.0 MHz operation with main system clock)

122 µs (@32.768 kHz operation with subsystem clock)

15.26 µs (@131 kHz operation with ×4 subsystem clock)

Subsystem clock multiplication function ×4 multiplication circuit (operating supply voltage: VDD = 2.7 to 5.5 V)

General-purpose registers 8 bits × 8 registers

  • Instruction set
  • 16-bit operations
  • Bit manipulation (set, reset, test) etc.

Multiplier 8 bits × 8 bits = 16 bits

I/O ports Total45 Note 2 CMOS I/O: 29 CMOS input: 12 N-ch open-drain I/O: 4
  • Timers
  • 16-bit timer: 1 channel
  • 8-bit timer: 3 channels
  • Watch timer: 1 channel
  • Watchdog timer: 1 channel

Serial interface UART/3-wire serial I/O mode: 1 channel 3-wire serial I/O mode (with automatic transfer function): 1 channel

A/D converter 10-bit resolution × 8 channels

LCD controller/driver • Segment signal outputs: 28

Power supply method for LCD drive Internal voltage amplification method

Infrared remote control reception function Not provided Provided

Key return detection function 8 pins 16 pins

Maskable Internal11, External: 5 Internal: 16, External: 6 Vectored interrupt sources Non-maskable Internal: 1
  • Reset
  • Reset by RESET signal input
  • Internal reset by watchdog timer

selection register.

2. 12 pins are used either as a port function or LCD segment output selected by a mask option or port

function register.

(1/2) · Internal memory · Timer outputs 4

Page 36 of the NEC PD78F9489 user manual — CHAPTER 1 GENERAL
Page 36 · click to enlarge
Page 36

CHAPTER 1 GENERAL

NEC PD78F9489 — CHAPTER 1 GENERAL diagram (page 36)
Fig. 6

Supply voltage VDD = 1.8 to 5.5 V

Operating ambient temperature TA = −40 to +85°C

  • 80-pin plastic TQFP (fine pitch) (12 × 12)

An outline of the timer is shown below.

NEC PD78F9489 — CHAPTER 1 GENERAL diagram (page 36)
Fig. 7

Interval timer − 1 channel 1 channel 1 channel 1 channel Note

Timer outputs 1 output 1 output 1 output 1 output − −

− 1 output 1 output 1 output − −

2. The watchdog timer has watchdog timer and interval timer functions. However, use the watchdog timer

by selecting either the watchdog timer function or interval timer function.

(2/2)

Page 37 of the NEC PD78F9489 user manual — CHAPTER 2 PIN FUNCTIONS
Page 37 · click to enlarge
Page 37

CHAPTER 2 PIN FUNCTIONS

2.1 List of Pin Functions

(1) Port pins (1/2)

NEC PD78F9489 — CHAPTER 2 PIN FUNCTIONS diagram (page 37)
Fig. 8

When used as an input port, an on-chip pull-up resistor can be

specified in 1-bit units by pull-up resistor option register B0

When used as an input port, an on-chip pull-up resistor can be

specified in 1-bit units by pull-up resistor option register B1

When used as an input port, an on-chip pull-up resistor can be

specified in 1-bit units by pull-up resistor option register B2

When used as an input port, on-chip pull-up resistors can be

specified in 1-bit units by pull-up resistor option register B3

For mask ROM version, an on-chip pull-up resistor can be

2. µ PD789489 and 78F9489 only
Page 38 of the NEC PD78F9489 user manual — RIN
Page 38 · click to enlarge
Page 38

CHAPTER 2 PIN FUNCTIONS

(1) Port pins (2/2)

NEC PD78F9489 — CHAPTER 2 PIN FUNCTIONS diagram (page 38)
Fig. 9

selected in 1-bit units by means of a mask option in the µPD789488, 789489 or a port mode register in the µPD78F9488, 78F9489 (refer to 4.3 (3) Port function registers and CHAPTER 20 MASK OPTIONS).

2. Whether to use these pins as I/O port pins (P80 to P87) or segment outputs (S20 to S27) can be selected in 1-bit units by means of a mask option in the µ PD789488, 789489 or a port mode register in the µ PD78F9488, 78F9489 (refer to 4.3 (3) Port function registers and CHAPTER 20 MASK OPTIONS ).

(2) Non-port pins (1/2)

Pin Name I/O Function After Reset Alternate Function

INTP0 P30/TO50/TMI60

Input External interrupt input for which the valid edge (rising edge, falling edge, or both rising and falling edges) can be specified.

INTP1 P31/TO60

INTP2 P32/TMI61/TO61

INTP3

P33/CPT20/TO20

Input Key return signal detection Input

TO20 Output 16-bit timer 20 output Input P33/INTP3/CPT20

CPT20 Output Capture edge input of 16-bit timer 20 Input P33/INTP3/TO20

TO50 Output 8-bit timer 50 output Input P30/INTP0/TMI60

TO60 Output 8-bit timer 60 output Input P31/INTP1

TO61 Output 8-bit timer 61 output Input P32/INTP2/TMI61

TMI60 Input External count clock input to 8-bit timer 60 Input P30/INTP0/TO50

TMI61 Input External count clock input to 8-bit timer 61 Input P32/INTP2/TO61

SCK20 P20/ASCK20

I/O Serial clock input/output of serial interface Input

SCK10

P23

Output Serial data output of serial interface Input

SO10

P24

Input Serial data input of serial interface Input

SI10

P25

ASCK20 Input Serial clock input of asynchronous serial interface Input P20/SCK20

TxD20 Output Serial data output of asynchronous serial interface Input P21/SO20

RxD20 Input Serial data input of asynchronous serial interface Input P22/SI20

RIN

2. µ PD789489 and 78F9489 only
Show 8 more labels / short text on this page
Input · KR0 to KR7 · KR00 to KR07 · P00 to P07 · KR10 to KR17 · P60/ANI0 to P67/ANI7 · SO20 P21/TxD20 · SI20 P22/RxD20
Page 39 of the NEC PD78F9489 user manual — CHAPTER 2 PIN FUNCTIONS
Page 39 · click to enlarge
Page 39

CHAPTER 2 PIN FUNCTIONS

(2) Non-port pins (2/2)

NEC PD78F9489 — CHAPTER 2 PIN FUNCTIONS diagram (page 39)
Fig. 10

S0 to S15 LCD controller/driver segment signal outputs Low-level output

Only when segment output is selected by mask option

COM0 to COM3 Output LCD controller/driver common signal outputs Low-level output

VLC0 to VLC2 – LCD drive voltage – –

CAPH, CAPL − LCD drive voltage booster capacitor connection pin – –

ANI0 to ANI7 – A/D converter analog input – P60 to P67

AVSS – A/D converter ground potential – –

AVDD – A/D converter analog power supply – –

IC0 – Internally connected. Connect directly to VSS. – –

VPP – Sets flash memory programming mode. Used to apply high voltage when a program is written or verified.

selected in 1-bit units by means of a mask option in the µPD789488, 789489 or a port mode register in

the µPD78F9488, 78F9489 (refer to 4.3(3) Port function registers and CHAPTER 20 MASK

OPTIONS).

2. Whether to use these pins as I/O port pins (P80 to P87) or segment outputs (S20 to S27) can be

selected in 1-bit units by means of a mask option in the µPD789488, 789489 or a port mode register in

the µPD78F9488, 78F9489 (refer to 4.3(3) Port function registers and CHAPTER 20 MASK

OPTIONS).

3. µ PD789488 and 78F9488 only
4. µ PD789489 and 78F9489 only
Page 40 of the NEC PD78F9489 user manual — (d) ASCK20
Page 40 · click to enlarge
Page 40

CHAPTER 2 PIN FUNCTIONS

2.2 Description of Pin Functions

2.2.1 P00 to P07 (Port 0)

These pins constitute an 8-bit I/O port. In addition, these pins enable key return signal detection.

Port 0 can be specified in the following operation modes in 1-bit units.

(1) Port mode

These pins constitute an 8-bit I/O port and can be set in the input or output port mode in 1-bit units by port

mode register 0 (PM0). When used as an input port, use of an on-chip pull-up resistor can be specified by

pull-up resistor option register B0 (PUB0) in 1-bit units.

(2) Control mode

In this mode, P00 to P07 function as key return signal detection pins (KR0 to KR7 (µPD789488, 78F9488),

KR00 to KR07 (µPD789489, 78F9489)).

2.2.2 P10, P11 (Port 1)

These pins constitute a 2-bit I/O port and can be set in the input or output port mode in 1-bit units by port mode

register 1 (PM1). When used as an input port, use of an on-chip pull-up resistor can be specified by pull-up resistor

option register B1 (PUB1) in 1-bit units.

2.2.3 P20 to P25 (Port 2)

These pins constitute a 6-bit I/O port. In addition, these pins enable serial interface data I/O and serial clock I/O.

Port 2 can be specified in the following operation modes in 1-bit units.

(1) Port mode

In this mode, P20 to P25 function as a 6-bit I/O port. Port 2 can be set in the input or output port mode in 1-

bit units by port mode register 2 (PM2). When used as an input port, use of an on-chip pull-up resistor can

be specified by pull-up resistor option register B2 (PUB2) in 1-bit units.

(2) Control mode

In this mode, P20 to P25 function as the serial interface data I/O and serial clock I/O.

(a) SI20, SO20, SI10, SO10

These are the serial data I/O pins of the serial interface.

(b) SCK20, SCK10

These are the serial clock I/O pins of the serial interface.

(c) RxD20, TxD20

These are the serial data I/O pins of the asynchronous serial interface.

(d) ASCK20

This is the serial clock input pin of the asynchronous serial interface.

according to the functions to be used. For the details of the setting, refer to Table 11-2 Serial

Interface 20 Operation Mode Setting and 12.3 (1) Serial operation mode register 1A0 (CSIM1A0).

Page 41 of the NEC PD78F9489 user manual — 2.2.5 P50 to P53 (Port 5)
Page 41 · click to enlarge
Page 41

CHAPTER 2 PIN FUNCTIONS

2.2.4 P30 to P34 (Port 3)

These pins constitute a 5-bit I/O port. In addition, they also function as timer I/O, external interrupt input, and

remote control receive data inputNote.

Port 3 can be specified in the following operation modes in 1-bit units.

(1) Port mode

In this mode, P30 to P34 function as a 5-bit I/O port. Port 3 can be set in the input or output port mode in 1-

bit units by port mode register 3 (PM3). When used as an input port, use of an on-chip pull-up resistor can

be specified by pull-up resistor option register B3 (PUB3) in 1-bit units.

(2) Control mode

In this mode, P30 to P34 function as timer I/O, external interrupt input, and remote control receive data

inputNote.

(a) TMI60, TMI61

These are the external clock input pins of timers 60 and 61.

(b) TO20, TO50, TO60, TO61

These are the timer output pins of timers 20, 50, 60, and 61.

(c) CPT20

This is the capture edge input pin of 16-bit timer 20.

(d) INTP0 to INTP3

These are external interrupt input pins for which valid edges (rising edge, falling edge, or both rising and

falling edges) can be specified.

(e) RIN Note

This is the data input pin of the remote controller receiver.

2.2.5 P50 to P53 (Port 5)

These pins constitute as a 4-bit N-ch open-drain I/O port. Port 5 can be set in the input or output port mode in 1-

bit units by port mode register 5 (PM5). In the mask ROM version, use of an on-chip pull-up resistor can be specified

by a mask option in 1-bit units.

Page 42 of the NEC PD78F9489 user manual — 2.2.12 CAPH, CAPL
Page 42 · click to enlarge
Page 42

CHAPTER 2 PIN FUNCTIONS

2.2.6 P60 to P67 (Port 6)

This is an 8-bit input-only port. In addition to a general-purpose input port function, it has A/D converter input and

key return signal detectionNote functions.

(1) Port mode

In this mode, P60 to P67 function as an 8-bit input-only port.

(2) Control mode

In this mode, P60 to P67 function as the analog inputs of the A/D converter and key return signal detection

pinsNote.

(a) ANI0 to ANI7

These are the analog input pins of the A/D converter.

(b) KR10 to KR17 Note

These are the key return signal detection pins.

2.2.7 P70 to P73 (Port 7)

These pins constitute a 4-bit input-only port. This port can be used only when the port function is selected by a

mask option in the µPD789488, 789489 or by a port function register in the µPD78F9488, 78F9489.

2.2.8 P80 to P87 (Port 8)

These pins constitute an 8-bit I/O port. Port 8 can be set in the input or output mode in 1-bit units by port mode

register 8 (PM8). This port can be used only when the port function is selected by a mask option in the µPD789488,

789489 or by a port function register in the µPD78F9488, 78F9489.

2.2.9 S0 to S27 Note

These pins are the segment signal output pins for the LCD controller/driver.

µPD789488, 789489 or by a port function register in the µPD78F9488, 78F9489.

2.2.10 COM0 to COM3

These pins are the common signal output pins for the LCD controller/driver.

2.2.11 V LC0 to V LC2

These pins are the power supply voltage pins for driving the LCD.

2.2.12 CAPH, CAPL

These pins are the capacitor connection pins for driving the LCD.

Page 43 of the NEC PD78F9489 user manual — 2.2.20 V PP (flash memory version only)
Page 43 · click to enlarge
Page 43

CHAPTER 2 PIN FUNCTIONS

2.2.13 RESET

This pin inputs an active-low system reset signal.

2.2.14 X1, X2

These pins are used to connect a crystal resonator for main system clock oscillation.

To supply an external clock, input the clock to X1 and input the inverted signal to X2.

2.2.15 XT1, XT2

These pins are used to connect a crystal resonator for subsystem clock oscillation.

To supply an external clock, input the clock to XT1 and input the inverted signal to XT2.

2.2.16 AV DD

This is the analog power supply pin of the A/D converter. Always use the same potential as that of the VDD pin even

when the A/D converter is not used.

2.2.17 AV SS

This is the ground potential pin of the A/D converter. Always use the same potential as that of the VSS pin even

when the A/D converter is not used.

2.2.18 V DD

This is the positive power supply pin.

2.2.19 V SS

This is the ground pin.

2.2.20 V PP (flash memory version only)

A high voltage should be applied to this pin when the flash memory programming mode is set and when the

program is written or verified.

Handle the pins in either of the following ways.

  • Independently connect a 10 k Ω pull-down resistor.
  • Switch this pin to be directly connected to the dedicated flash programmer in programming mode or to V SS in

normal operation mode using a jumper on the board.

If the wiring between the VPP pin and VSS pin is very long or external noise is superimposed on the VPP pin, the

user program may not run correctly.

Page 44 of the NEC PD78F9489 user manual — V SS IC0
Page 44 · click to enlarge
Page 44

CHAPTER 2 PIN FUNCTIONS

2.2.21 IC0 (mask ROM version only)

The IC0 (Internally Connected) pin is used to set the µPD789489 Subseries in the test mode before shipment. In

the normal operation mode, directly connect this pin to the VSS pin with as short a wiring length as possible.

If there is a potential difference between the IC0 pin and VSS pin due to a long wiring length or external noise

superimposed on the IC0 pin, the user program may not run correctly.

  • Directly connect the IC0 pin to the V SS pin.

V SS IC0

Keep short

Page 45 of the NEC PD78F9489 user manual — Table 2-1. Types of Pin I/O Circuits (1/2)
Page 45 · click to enlarge
Page 45

CHAPTER 2 PIN FUNCTIONS

2.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 are shown in Table 2-1.

For the I/O circuit configuration of each type, see Figure 2-1.

Table 2-1. Types of Pin I/O Circuits (1/2)

NEC PD78F9489 — Table 2-1. Types of Pin I/O Circuits (1/2) diagram (page 45)
Fig. 11 · Table 2-1. Types of Pin I/O Circuits (1/2)

Pin Name I/O Circuit Type I/O Recommended Connection of Unused Pins

Input: Independently connect to VDD or VSS via a resistor.

Input: Independently connect to VSS via a resistor.

Input: Independently connect to VDD via a resistor.

Input Connect to VDD or VSS.

2. When µ PD789489, 78F9489 is used.
3. Only when port pin is selected by mask option or port function register.
4. Only when segment output pin is selected by mask option or port function register.
Page 46 of the NEC PD78F9489 user manual — Figure 2-1. I/O Circuit Types (1/2)
Page 46 · click to enlarge
Page 46

CHAPTER 2 PIN FUNCTIONS

Table 2-1. Types of Pin I/O Circuits (2/2)

NEC PD78F9489 — CHAPTER 2 PIN FUNCTIONS diagram (page 46)
Fig. 12

Pin Name I/O Circuit Type I/O Recommended Connection of Unused Pins

Independently connect a 10 kΩ pull-down resistor, or connect

Figure 2-1. I/O Circuit Types (1/2)

NEC PD78F9489 — Figure 2-1. I/O Circuit Types (1/2) diagram (page 46)
Fig. 13 · Figure 2-1. I/O Circuit Types (1/2)

Input enable

Page 47 of the NEC PD78F9489 user manual — CHAPTER 2 PIN FUNCTIONS
Page 47 · click to enlarge
Page 47

CHAPTER 2 PIN FUNCTIONS

Figure 2-1. I/O Circuit Types (2/2)

NEC PD78F9489 — CHAPTER 2 PIN FUNCTIONS diagram (page 47)
Fig. 14
Page 48 of the NEC PD78F9489 user manual — 0 0 0 0 H
Page 48 · click to enlarge
Page 48

CHAPTER 3 CPU ARCHITECTURE

3.1 Memory Space

The µPD789489 Subseries can access 64 KB of memory space. Figures 3-1 to 3-4 show the memory maps.

Figure 3-1. Memory Map (µPD789488)

F H

256 × 8 bits

F F 0 0 H F E F F H

1024 × 8 bits

F B 0 0 H F A F F H

F A 1 C H F A 1 B H

28 × 4 bits

F A 0 0 H F 9 F F H

space 7 F F F H

8 0 0 0 H 7 F F F H

0 0 8 0 H 0 0 7 F H

Internal ROM 32768 × 8 bits

0 0 4 0 H 0 0 3 F H

0 0 2 E H 0 0 2 D H Vector table area

0 H

0 0 0 0 H

Show 11 more labels / short text on this page
Special function registers · Internal high-speed RAM · Reserved · LCD display RAM · Data memory · Reserved · Program area · Program memory · space · CALLT table area · Program area
Page 49 of the NEC PD78F9489 user manual — 0 0 0 0 H
Page 49 · click to enlarge
Page 49

CHAPTER 3 CPU ARCHITECTURE

Figure 3-2. Memory Map (µPD78F9488)

F H

256 × 8 bits

F F 0 0 H F E F F H

1024 × 8 bits

F B 0 0 H F A F F H

F A 1 C H F A 1 B H

28 × 4 bits

F A 0 0 H F 9 F F H

space 7 F F F H

8 0 0 0 H 7 F F F H

Flash memory 32768 × 8 bits

0 0 8 0 H 0 0 7 F H

0 0 4 0 H 0 0 3 F H

0 0 2 E H 0 0 2 D H Vector table area

0 H

0 0 0 0 H

Show 11 more labels / short text on this page
Special function registers · Internal high-speed RAM · Reserved · LCD display RAM · Data memory · Reserved · Program area · Program memory · space · CALLT table area · Program area
Page 50 of the NEC PD78F9489 user manual — 0 0 0 0 H
Page 50 · click to enlarge
Page 50

CHAPTER 3 CPU ARCHITECTURE

Figure 3-3. Memory Map (µPD789489)

F H

256 × 8 bits

F F 0 0 H F E F F H

1024 × 8 bits

F B 0 0 H F A F F H

F A 1 C H F A 1 B H

28 × 4 bits

F A 0 0 H F 9 F F H

B F F F H

F 7 0 0 H F 6 F F H

F 5 0 0 H F 4 F F H

512 × 8 bits

C 0 0 0 H B F F F H

0 0 8 0 H 0 0 7 F H

Internal ROM 49152 × 8 bits

0 0 4 0 H 0 0 3 F H

0 0 3 0 H 0 0 2 F H

0 H

0 0 0 0 H

Show 15 more labels / short text on this page
Special function registers · Internal high-speed RAM · Reserved · LCD display RAM · Data memory · space · Reserved · Internal low-speed · Program area · Reserved · CALLT table area · Program memory · space · Program area · Vector table area
Page 51 of the NEC PD78F9489 user manual — 0 0 0 0 H
Page 51 · click to enlarge
Page 51

CHAPTER 3 CPU ARCHITECTURE

Figure 3-4. Memory Map (µPD78F9489)

F H

256 × 8 bits

F F 0 0 H F E F F H

1024 × 8 bits

F B 0 0 H F A F F H

F A 1 C H F A 1 B H

28 × 4 bits

F A 0 0 H F 9 F F H

B F F F H

F 7 0 0 H F 6 F F H

512 × 8 bits

F 5 0 0 H F 4 F F H

C 0 0 0 H B F F F H

0 0 8 0 H 0 0 7 F H

Flash memory 49152 × 8 bits Program memory

0 0 4 0 H 0 0 3 F H

0 0 3 0 H 0 0 2 F H

0 H

0 0 0 0 H

Show 14 more labels / short text on this page
Special function registers · Internal high-speed RAM · Reserved · LCD display RAM · Data memory · space · Reserved · Internal low-speed RAM · Program area · Reserved · CALLT table area · space · Program area · Vector table area
Page 52 of the NEC PD78F9489 user manual — (2) CALLT instruction table area
Page 52 · click to enlarge
Page 52

CHAPTER 3 CPU ARCHITECTURE

3.1.1 Internal program memory space

The internal program memory space stores programs and table data. This space is usually addressed by the

program counter (PC).

The µPD789489 Subseries provide internal ROM (or flash memory) with the following capacity for each product.

Table 3-1. Internal ROM Capacity

NEC PD78F9489 — Table 3-1. Internal ROM Capacity diagram (page 52)
Fig. 15 · Table 3-1. Internal ROM Capacity

The following areas are allocated to the internal program memory space.

(1) Vector table area

The 46-byte area of addresses 0000H to 002DH is reserved in the µPD789488 and 78F9488, and the 48-

byte area of address 0000H to 002FH is reserved in the µPD789489 and 78F9489 as a vector table area.

NEC PD78F9489 — (1) Vector table area diagram (page 52)
Fig. 16 · (1) Vector table area

This area stores program start addresses to be used when branching by RESET input or interrupt request

generation. Of a 16-bit program address, the lower 8 bits are stored in an even address, and the higher 8

Vector Table Address Interrupt Request Vector Table Address Interrupt Request

addresses 000EH, and 0026H through 002EH for µPD789488 and 78F9488.

(2) CALLT instruction table area

The subroutine entry address of a 1-byte call instruction (CALLT) can be stored in the 64-byte area of

addresses 0040H to 007FH.

Page 53 of the NEC PD78F9489 user manual — 3.1.3 Special function register (SFR) area
Page 53 · click to enlarge
Page 53

CHAPTER 3 CPU ARCHITECTURE

3.1.2 Internal data memory space

(1) Internal high-speed RAM and internal low-speed RAM

The µPD789489 Subseries products incorporate the internal high-speed RAM and internal low-speed RAM of

the following capacity for each product.

The internal high-speed RAM can also be used as a stack.

The internal low-speed RAM cannot be used as a stack.

Table 3-3. Internal High-Speed RAM, Internal Low-Speed RAM Capacity

Part Number Internal High-Speed RAM Internal Low-Speed RAM

1024 × 8 bits

512 × 8 bits

(2) LCD display RAM

LCD display RAM is incorporated in the area between FA00H and FA1BH.

The LCD display RAM can also be used as ordinary RAM.

3.1.3 Special function register (SFR) area

Special function registers (SFRs) of on-chip peripheral hardware are allocated in the area between FF00H and

FFFFH (see Table 3-4).

Show 5 more labels / short text on this page
µPD789488 · − · µPD78F9488 · µPD789489 · µPD78F9489
Page 54 of the NEC PD78F9489 user manual — 0 0 0 0 H
Page 54 · click to enlarge
Page 54

CHAPTER 3 CPU ARCHITECTURE

3.1.4 Data memory addressing

The µPD789489 Subseries is provided with a variety of addressing modes to make memory manipulation as

efficient as possible. At the addresses corresponding to data memory area (FB00H to FFFFH) especially, specific

addressing modes that correspond to the particular function of an area, such as the special function registers, are

available. Figures 3-5 to 3-8 show the data memory addressing modes.

Figure 3-5. Data Memory Addressing (µPD789488)

F H

256 × 8 bits

F F 2 0 H F F 1 F H

F F 0 0 H F E F F H

1024 × 8 bits

F E 2 0 H F E 1 F H

F B 0 0 H F A F F H

F A 1 C H F A 1 B H

28 × 4 bits

F A 0 0 H F 9 F F H

8 0 0 0 H 7 F F F H

Internal ROM 32768 × 8 bits

0 H

Show 10 more labels / short text on this page
Special function registers · SFR addressing · Short direct addressing · Internal high-speed RAM · Direct addressing · Reserved · Register indirect addressing · Based addressing · LCD display RAM · Reserved
Page 55 of the NEC PD78F9489 user manual — 0 0 0 0 H
Page 55 · click to enlarge
Page 55

CHAPTER 3 CPU ARCHITECTURE

Figure 3-6. Data Memory Addressing (µPD78F9488)

F H

256 × 8 bits

F F 2 0 H F F 1 F H

F F 0 0 H F E F F H

1024 × 8 bits

F E 2 0 H F E 1 F H

F B 0 0 H F A F F H

F A 1 C H F A 1 B H

28 × 4 bits

F A 0 0 H F 9 F F H

8 0 0 0 H 7 F F F H

Flash memory 32768 × 8 bits

0 H

Show 10 more labels / short text on this page
Special function registers · SFR addressing · Short direct addressing · Internal high-speed RAM · Direct addressing · Reserved · Register indirect addressing · Based addressing · LCD display RAM · Reserved
Page 56 of the NEC PD78F9489 user manual — 0 0 0 0 H
Page 56 · click to enlarge
Page 56

CHAPTER 3 CPU ARCHITECTURE

Figure 3-7. Data Memory Addressing (µPD789489)

F H

Special function registers (SFR)

F F 2 0 H F F 1 F H

256 × 8 bits

F F 0 0 H F E F F H

1024 × 8 bits

F E 2 0 H F E 1 F H

F B 0 0 H F A F F H

F A 1 C H F A 1 B H

28 × 4 bits

F A 0 0 H F 9 F F H

F 7 0 0 H F 6 F F H

512 × 8 bits

F 5 0 0 H F 4 F F H

C 0 0 0 H B F F F H

Internal ROM 49152 × 8 bits

0 H

Show 11 more labels / short text on this page
SFR addressing · Short direct addressing · Internal high-speed RAM · Reserved · LCD display RAM · Direct addressing · Register indirect addressing · Reserved · Based addressing · Internal low-speed RAM · Reserved
Page 57 of the NEC PD78F9489 user manual — 0 0 0 0 H
Page 57 · click to enlarge
Page 57

CHAPTER 3 CPU ARCHITECTURE

Figure 3-8. Data Memory Addressing (µPD78F9489)

F H

256 × 8 bits

F F 2 0 H F F 1 F H

F F 0 0 H F E F F H

1024 × 8 bits

F E 2 0 H F E 1 F H

F B 0 0 H F A F F H

F A 1 C H F A 1 B H

28 × 4 bits

F A 0 0 H F 9 F F H

F 7 0 0 H F 6 F F H

512 × 8 bits

F 5 0 0 H F 4 F F H

C 0 0 0 H B F F F H

Flash memory 49152 × 8 bits

0 H

Show 12 more labels / short text on this page
Special function registers · SFR addressing · Short direct addressing · Internal high-speed RAM · Reserved · LCD display RAM · Direct addressing · Register indirect addressing · Reserved · Based addressing · Internal low-speed · Reserved
Page 58 of the NEC PD78F9489 user manual — Figure 3-10. Program Status Word Configuration
Page 58 · click to enlarge
Page 58

CHAPTER 3 CPU ARCHITECTURE

3.2 Processor Registers

The µPD789489 Subseries is provided with the following on-chip processor registers.

3.2.1 Control registers

The control registers contain special functions to control the program sequence status and stack memory. The

program counter, program status word, and stack pointer are control registers.

(1) Program counter (PC)

The program counter is a 16-bit register that holds the address information of the next program to be

executed.

In normal operation, the PC is automatically incremented according to the number of bytes of the instruction

to be fetched. When a branch instruction is executed, immediate data or register contents are set.

RESET input sets the reset vector table values at addresses 0000H and 0001H to the program counter.

Figure 3-9. Program Counter Configuration

PC14 PC15 PC PC13 PC12 PC11 PC10 PC9 PC8 PC7 PC6 PC5 PC4 PC3 PC2 PC1 PC0

(2) Program status word (PSW)

The program status word is an 8-bit register consisting of various flags to be set/reset by instruction

execution.

The program status word contents are automatically stacked upon interrupt request generation or PUSH

PSW instruction execution and are automatically restored upon execution of the RETI and POP PSW

instructions.

RESET input sets PSW to 02H.

Figure 3-10. Program Status Word Configuration

IE Z 0 AC 0 0 1 CY PSW

Page 59 of the NEC PD78F9489 user manual — (d) Carry flag (CY)
Page 59 · click to enlarge
Page 59

CHAPTER 3 CPU ARCHITECTURE

(a) Interrupt enable flag (IE)

This flag controls interrupt request acknowledgement operations of the CPU.

When 0, IE is set to the interrupt disabled status (DI), and interrupt requests other than non-maskable

interrupts are all disabled.

When 1, IE is set to the interrupt enabled status (EI). Interrupt request acknowledgement enable is

controlled by the interrupt mask flag for the corresponding interrupt source.

IE is reset (0) upon DI instruction execution or interrupt acknowledgment and is set (1) upon EI

instruction execution.

(b) Zero flag (Z)

When the operation result is zero, this flag is set (1). It is reset (0) in all other cases.

(c) Auxiliary carry flag (AC)

If the operation result has a carry from bit 3 or a borrow at bit 3, this flag is set (1). It is reset (0) in all

other cases.

(d) Carry flag (CY)

This flag stores an overflow or underflow upon add/subtract instruction execution. It stores the shift-out

value upon rotate instruction execution and functions as a bit accumulator during bit manipulation

instruction execution.

Page 60 of the NEC PD78F9489 user manual — SP + 1
Page 60 · click to enlarge
Page 60

CHAPTER 3 CPU ARCHITECTURE

(3) Stack pointer (SP)

This is a 16-bit register that holds the start address of the memory stack area. Only the internal high-speed

RAM area can be set as the stack area.

Figure 3-11. Stack Pointer Configuration

SP14 SP15 SP SP13 SP12 SP11 SP10 SP9 SP8 SP7 SP6 SP5 SP4 SP3 SP2 SP1 SP0

The SP is decremented ahead of write (save) to the stack memory and is incremented after read (restore)

from the stack memory.

Each stack operation saves/restores data as shown in Figures 3-12 and 3-13.

instruction execution.

Figure 3-12. Data to Be Saved to Stack Memory

CALL, CALLT instructions PUSH rp instruction

SP SP _ 3

SP SP _ 2

SP SP _ 2

PC7 to PC0 SP _ 3

PC7 to PC0 Lower register pairs

SP _ 2

SP _ 2

SP _ 2

SP _ 1

SP _ 1

SP _ 1

PSW

SP

SP

SP

Figure 3-13. Data to Be Restored from Stack Memory

RET instruction POP rp instruction

PC7 to PC0 Lower register pairs

SP PC7 to PC0

SP

SP

Higher register pairs SP + 1

SP + 1

PC15 to PC8 PC15 to PC8

SP + 1

SP SP + 2

SP SP + 2

SP + 2

PSW

SP SP + 3

Show 5 more labels / short text on this page
Interrupt · PC15 to PC8 · Higher register pairs · PC15 to PC8 · RETI instruction
Page 61 of the NEC PD78F9489 user manual — H
Page 61 · click to enlarge
Page 61

CHAPTER 3 CPU ARCHITECTURE

3.2.2 General-purpose registers

The general-purpose registers consist of eight 8-bit registers (X, A, C, B, E, D, L, and H).

Each register can be used as an 8-bit register, or two 8-bit registers in pairs can be used as a 16-bit register (AX,

BC, DE, and HL).

General-purpose registers can be described in terms of function names (X, A, C, B, E, D, L, H, AX, BC, DE, or HL)

or absolute names (R0 to R7 and RP0 to RP3).

Figure 3-14. General-Purpose Register Configuration

(a) Absolute names

16-bit processing 8-bit processing

R7

RP3

R6

R5

RP2

R4

R3

RP1

R2

R1

RP0

R0

15 0 7 0

(b) Function names

16-bit processing 8-bit processing

H

HL

D

DE

E

B

BC

A

AX

15 0 7 0

Page 62 of the NEC PD78F9489 user manual — CHAPTER 3 CPU ARCHITECTURE
Page 62 · click to enlarge
Page 62

CHAPTER 3 CPU ARCHITECTURE

3.2.3 Special function registers (SFRs)

Unlike a general-purpose register, each special function register has a special function.

The special function registers are allocated in the 256-byte area of FF00H to FFFFH.

Special function registers can be manipulated, like general-purpose registers, by operation, transfer, and bit

manipulation instructions. The manipulatable bit units (1, 8, and 16) differ depending on the special function register

type.

The manipulatable bits can be specified as follows.

  • 1-bit manipulation

Describe the symbol reserved by the assembler for the 1-bit manipulation instruction operand (sfr.bit). This

manipulation can also be specified with an address.

  • 8-bit manipulation

Describe the symbol reserved by the assembler for the 8-bit manipulation instruction operand (sfr). This

manipulation can also be specified with an address.

  • 16-bit manipulation

Describe the symbol reserved by the assembler for the 16-bit manipulation instruction operand. When

addressing an address, describe an even address.

Table 3-4 lists the special function registers. The meanings of the symbols in this table are as follows.

  • Symbol

Indicates the addresses of the implemented special-function registers. The symbols shown in this column are

reserved words in the assembler, and have already been defined as sfr variables by the #pragma sfr directive in

the C compiler. Therefore, these symbols can be used as instruction operands if an assembler or integrated

debugger is used.

  • R/W

Indicates whether the special function register in question can be read or written.

R/WRead/write

R: Read only

W: Write only

  • Bit unit for manipulation

Indicates the bit units (1, 8, 16) in which the special function register in question can be manipulated.

  • After reset

Indicates the status of the special function register when the RESET signal is input.

Page 63 of the NEC PD78F9489 user manual — CHAPTER 3 CPU ARCHITECTURE
Page 63 · click to enlarge
Page 63

CHAPTER 3 CPU ARCHITECTURE

Table 3-4. Special Function Registers (1/3)

NEC PD78F9489 — CHAPTER 3 CPU ARCHITECTURE diagram (page 63)
Fig. 17

Bit Unit for Manipulation Address Special Function Register (SFR) Name Symbol R/W

FF0AH 8-bit compare register 61 CR61 W − √ − Undefined

FF0BH 8-bit timer counter 61 TM61 R − √ − 00H

FF11H Serial I/O shift register 1A0 SIO1A0 R/W − √ −

FF12H 16-bit multiplication result store register L MUL0L − √

16-bit compare register 20 CR20 W − − √ FFFFH

16-bit timer counter 20 TM20 − − √ 0000H

FF20H Port mode register 0 PM0 √ √ −

FF21H Port mode register 1 PM1 √ √ −

FF22H Port mode register 2 PM2 √ √ −

FF23H Port mode register 3 PM3 √ √ −

FF25H Port mode register 5 PM5 √ √ −

FF30H Pull-up resistor option register B0 PUB0 √ √ −

FF31H Pull-up resistor option register B1 PUB1 √ √ −

FF32H Pull-up resistor option register B2 PUB2 √ √ −

Page 64 of the NEC PD78F9489 user manual — ADTI0
Page 64 · click to enlarge
Page 64

CHAPTER 3 CPU ARCHITECTURE

Table 3-4. Special Function Registers (2/3)

Bit Unit for Manipulation Address Special Function Register (SFR) Name Symbol R/W

1 Bit 8 Bits 16 Bits

FF40H 8-bit H width compare register 61 CRH61 W − √ − Undefined

FF41H 8-bit timer mode control register 61 TMC61 √ √ −

R/W

00H

FF42H Watchdog timer clock selection register WDCS − √ −

FF46H Subclock selection register

FF48H 16-bit timer mode control register 20 TMC20 √ √ −

FF4AH Watch timer mode control register WTM √ √ −

FF4BH Watch timer interrupt time selection register WTIM

FF4CH 8-bit H width compare register 60 CRH60 W − √ − Undefined

FF4DH 8-bit timer mode control register 50 TMC50 √ √ −

R/W

00H

FF4EH 8-bit timer mode control register 60 TMC60 √ √ −

FF4FH Carrier generator output control register 60 TCA60

FF57H Port function register 7

W

FF58H Port function register 8

FF60H Remote controller receive control register

FF61H Remote controller receive data register

R

FF62H Remote controller shift register receive counter register

RMSCR − √ −

FF63H Remote controller receive shift register

FF66H Remote controller receive GPHS compare register

R/W

FF67H Remote controller receive GPHL compare register

FF68H Remote controller receive DLS compare register

FF69H Remote controller receive DLL compare register

FF6AH Remote controller receive DH0S compare register

FF6BH Remote controller receive DH0L compare register

FF6CH Remote controller receive DH1S compare register

FF6DH Remote controller receive DH1L compare register

FF6EH Remote controller receive end width select register

FF70H Asynchronous serial interface mode register 20 ASIM20

FF71H Asynchronous serial interface status register 20 ASIS20 R √ √ −

FF72H Serial operation mode register 20 CSIM20 √ √ −

R/W

FF73H Baud rate generator control register 20 BRGC20

Transmit shift register 20 TXS20 W − √ − FFH FF74H

SIO20

Receive buffer register 20 RXB20

R − √ − Undefined

FF78H Serial operation mode register 1A0 CSIM1A0 √ √ −

R/W

00H

FF79H Automatic data transmit/receive control register 0 ADTC0 √ √ −

FF7AH Automatic data transmit/receive address pointer 0 ADTP0 − √ − Undefined

FF7BH Automatic data transmit/receive interval specification register 0

ADTI0

√ √ − 00H

the µPD789488 and 789489 will not affect the operation.

2. µ PD789489 and 78F9489 only
Show 7 more labels / short text on this page
After Reset · √ √ − · √ √ − · − √ − · − √ − · √ √ − · − √ −
Page 65 of the NEC PD78F9489 user manual — CHAPTER 3 CPU ARCHITECTURE
Page 65 · click to enlarge
Page 65

CHAPTER 3 CPU ARCHITECTURE

Table 3-4. Special Function Registers (3/3)

NEC PD78F9489 — CHAPTER 3 CPU ARCHITECTURE diagram (page 65)
Fig. 18

Bit Unit for Manipulation Address Special Function Register (SFR) Name Symbol R/W

FF80H A/D converter mode register 0 ADML0 √ √ −

FF84H Analog input channel specification register 0 ADS0 √ √ −

FFA0H Serial interface buffer memory 0 SBMEM0 − √ −

FFA1H Serial interface buffer memory 1 SBMEM1 − √ −

FFA2H Serial interface buffer memory 2 SBMEM2 − √ −

FFA3H Serial interface buffer memory 3 SBMEM3 − √ −

FFA4H Serial interface buffer memory 4 SBMEM4 − √ −

FFA5H Serial interface buffer memory 5 SBMEM5 − √ −

FFA6H Serial interface buffer memory 6 SBMEM6 − √ −

FFA7H Serial interface buffer memory 7 SBMEM7 − √ −

FFA8H Serial interface buffer memory 8 SBMEM8 − √ −

FFA9H Serial interface buffer memory 9 SBMEM9 − √ −

FFAAH Serial interface buffer memory A SBMEMA − √ −

FFABH Serial interface buffer memory B SBMEMB − √ −

FFACH Serial interface buffer memory C SBMEMC − √ −

FFADH Serial interface buffer memory D SBMEMD − √ −

FFAEH Serial interface buffer memory E SBMEME − √ −

FFAFH Serial interface buffer memory F SBMEMF − √ −

FFB0H LCD mode register 0 LCDM0 √ √ −

FFB2H LCD clock control register 0 LCDC0 √ √ −

FFD0H Multiplication data register A0 MRA0 − √ −

FFD2H Multiplier control register 0 MULC0 √ √ −

FFE0H Interrupt request flag register 0 IF0 √ √ −

FFE1H Interrupt request flag register 1 IF1 √ √ −

FFE2H Interrupt request flag register 2 IF2 √ √ −

FFE4H Interrupt mask flag register 0 MK0 √ √ −

FFE5H Interrupt mask flag register 1 MK1 √ √ −

FFE6H Interrupt mask flag register 2 MK2 √ √ −

FFECH External interrupt mode register 0 INTM0 − √ −

FFEDH External interrupt mode register 1 INTM1 − √ −

FFF0H Subclock oscillation mode register SCKM √ √ −

FFF5H Key return mode register 00 KRM00 √ √ −

FFF9H Watchdog timer mode register WDTM √ √ −

FFFAH Oscillation stabilization time selection register OSTS − √ − 04H

Page 66 of the NEC PD78F9489 user manual — PC
Page 66 · click to enlarge
Page 66

CHAPTER 3 CPU ARCHITECTURE

3.3 Instruction Address Addressing

An instruction address is determined by the program counter (PC) contents. The PC contents are normally

incremented (+1 for each byte) automatically according to the number of bytes of an instruction to be fetched each

time another instruction is executed. When a branch instruction is executed, the branch destination information is set

to the PC and branched by the following addressing (for details of each instruction, refer to 78K/0S Series

Instructions User’s Manual (U11047E)).

3.3.1 Relative addressing

[Function]

The value obtained by adding 8-bit immediate data (displacement value: jdisp8) of an instruction code to the

start address of the following instruction is transferred to the program counter (PC) and branched. The

displacement value is treated as signed two’s complement data (–128 to +127) and bit 7 becomes a sign bit.

This means that information is relatively branched to a location between –128 and +127, from the start address

of the next instruction when relative addressing is used.

This function is carried out when the BR $addr16 instruction or a conditional branch instruction is executed.

[Illustration]

... PC is the start address of the next instruction of a BR instruction.

PC

S

PC

When S = 0, α indicates all bits 0.

When S = 1, α indicates all bits 1.

+ · α · jdisp8

Page 67 of the NEC PD78F9489 user manual — PC
Page 67 · click to enlarge
Page 67

CHAPTER 3 CPU ARCHITECTURE

3.3.2 Immediate addressing

[Function]

Immediate data in the instruction word is transferred to the program counter (PC) and branched.

This function is carried out when the CALL !addr16 or BR !addr16 instruction is executed.

CALL !addr16 and BR !addr16 instructions can be branched to any location in the memory space.

[Illustration]

In case of CALL !addr16 and BR !addr16 instructions

Low Addr.

High Addr.

PC

CALL or BR

Page 68 of the NEC PD78F9489 user manual — [Illustration]
Page 68 · click to enlarge
Page 68

CHAPTER 3 CPU ARCHITECTURE

3.3.3 Table indirect addressing

[Function]

Table contents (branch destination address) of the particular location to be addressed by the lower 5-bit

immediate data of an instruction code from bit 1 to bit 5 are transferred to the program counter (PC) and

branched.

This function is carried out when the CALLT [addr5] instruction is executed. The instruction enables a branch

to any location in the memory space by referring to the addresses stored in the memory table at 40H to 7FH.

[Illustration]

7 6 5 1 0

ta4–0 Instruction code

Effective address 0 1 0

Low Addr.

Effective address + 1

High Addr.

PC

3.3.4 Register addressing

[Function]

The register pair (AX) contents to be specified with an instruction word are transferred to the program counter

(PC) and branched.

This function is carried out when the BR AX instruction is executed.

[Illustration]

A X

PC

Memory (Table) · rp

Page 69 of the NEC PD78F9489 user manual — [Illustration]
Page 69 · click to enlarge
Page 69

CHAPTER 3 CPU ARCHITECTURE

3.4 Operand Address Addressing

The following various methods are available to specify the register and memory (addressing) which undergo

manipulation during instruction execution.

3.4.1 Direct addressing

[Function]

The memory indicated with immediate data in an instruction word is directly addressed.

[Operand format]

addr16 Label or 16-bit immediate data

[Description example]

MOV A, !FE00H; When setting !addr16 to FE00H

Instruction code 0 0 1 0 1 0 0 1 OP code

0

00H

FEH

1 0

[Illustration]

Show 5 more labels / short text on this page
Identifier Description · OP code · addr16 (Lower) · addr16 (Higher) · Memory
Page 70 of the NEC PD78F9489 user manual — [Illustration]
Page 70 · click to enlarge
Page 70

CHAPTER 3 CPU ARCHITECTURE

3.4.2 Short direct addressing

[Function]

The memory to be manipulated in the fixed space is directly addressed with 8-bit data in an instruction word.

The fixed space is the 256-byte space FE20H to FF1FH where the addressing is applied. Internal high-speed

RAM and special function registers (SFRs) are mapped at FE20H to FEFFH and FF00H to FF1FH,

respectively.

The SFR area (FF00H to FF1FH) where short direct addressing is applied is a part of the whole SFR area.

Ports that are frequently accessed in a program and the compare register of the timer/event counter are

mapped in this area, and these SFRs can be manipulated with a small number of bytes and clocks.

When 8-bit immediate data is at 20H to FFH, bit 8 of an effective address is set to 0. When it is at 00H to 1FH,

bit 8 is set to 1. See [Illustration] below.

[Operand format]

saddr Label or FE20H to FF1FH immediate data

saddrp Label or FE20H to FF1FH immediate data (even address only)

[Description example]

MOV FE90H, #50H; When setting saddr to FE90H and the immediate data to 50H

Instruction code 1 0 1 0 1

1 0 0 1 0

0 1 0 1 0

[Illustration]

15 0 Short direct memory

Effective address 1

When 8-bit immediate data is 20H to FFH, α = 0. When 8-bit immediate data is 00H to 1FH, α = 1.

Show 7 more labels / short text on this page
Identifier Description · OP code · 90H (saddr-offset) · 50H (Immediate data) · OP code · saddr-offset · α
Page 71 of the NEC PD78F9489 user manual — [Illustration]
Page 71 · click to enlarge
Page 71

CHAPTER 3 CPU ARCHITECTURE

3.4.3 Special function register (SFR) addressing

[Function]

The memory-mapped special function registers (SFRs) are addressed with 8-bit immediate data in an

instruction word.

This addressing is applied to the 256-byte space FF00H to FFFFH. However, the SFRs mapped at FF00H to

FF1FH can also be accessed with short direct addressing.

[Operand format]

sfr Special function register name

[Description example]

MOV PM0, A; When selecting PM0 for sfr

Instruction code 1 1 1 0 0 1 1 1

0 0 1 0

[Illustration]

15 0 SFR

Effective Address 1

Identifier Description · OP code · sfr-offset

Page 72 of the NEC PD78F9489 user manual — [Description example]
Page 72 · click to enlarge
Page 72

CHAPTER 3 CPU ARCHITECTURE

3.4.4 Register addressing

[Function]

In the register addressing mode, general-purpose registers are accessed as operands. The general-purpose

register to be accessed is specified by a register specification code or functional name in the instruction code.

Register addressing is carried out when an instruction with the following operand format is executed. When an

8-bit register is specified, one of the eight registers is specified with 3 bits in the instruction code.

[Operand format]

r X, A, C, B, E, D, L, H

rp AX, BC, DE, HL

r and rp can be described with absolute names (R0 to R7 and RP0 to RP3) as well as function names (X, A, C,

B, E, D, L, H, AX, BC, DE, and HL).

[Description example]

MOV A, C; When selecting the C register for r

Instruction code 0 1 0 1 0

0 0 1 0 0 1 0 1

INCW DE; When selecting the DE register pair for rp

Instruction code 1 0 0 0 1 0 0 0

Identifier Description · Register specification code · Register specification code

Page 73 of the NEC PD78F9489 user manual — A
Page 73 · click to enlarge
Page 73

CHAPTER 3 CPU ARCHITECTURE

3.4.5 Register indirect addressing

[Function]

In the register indirect addressing mode, memory is manipulated according to the contents of a register pair

specified as an operand. The register pair to be accessed is specified by the register pair specification code in

an instruction code.

This addressing can be carried out for all the memory spaces.

[Operand format]

− [DE], [HL]

[Description example]

MOV A, [DE]; When selecting register pair [DE]

Instruction code 0 0 1 0 1 0 1 1

[Illustration]

DE

D

E

Memory address specified with register pair DE.

Addressed memory contents are transferred.

A

Identifier Description

Page 74 of the NEC PD78F9489 user manual — [Description example]
Page 74 · click to enlarge
Page 74

CHAPTER 3 CPU ARCHITECTURE

3.4.6 Based addressing

[Function]

8-bit immediate data is added to the contents of the base register, that is, the HL register pair, and the sum is

used to address the memory. Addition is performed by expanding the offset data as a positive number to 16

bits. A carry from the 16th bit is ignored. This addressing can be carried out for all the memory spaces.

[Operand format]

[Description example]

MOV A, [HL+10H]; When setting byte to 10H

Instruction code 0 0 1 0 1 1 0 1

0 0 0 1 0

3.4.7 Stack addressing

[Function]

The stack area is indirectly addressed with the stack pointer (SP) contents.

This addressing method is automatically employed when the PUSH, POP, subroutine call, and return

instructions are executed or the register is saved/restored upon generation of an interrupt request.

Only the internal high-speed RAM area can be addressed using stack addressing.

[Description example]

In the case of PUSH DE

Instruction code 1 0 1 0 1 0 1 0

Identifier Description · − [HL+byte]

Page 75 of the NEC PD78F9489 user manual — Figure 4-1. Port Types
Page 75 · click to enlarge
Page 75

CHAPTER 4 PORT FUNCTIONS

4.1 Port Functions

The µPD789489 Subseries provides the ports shown in Figure 4-1, enabling various methods of control. The

functions of each port are shown in Table 4-1.

Numerous other functions are provided that can be used in addition to the digital I/O port functions. For more

information on these additional functions, see CHAPTER 2 PIN FUNCTIONS.

Figure 4-1. Port Types

P50 P00

P53

P60

P07

P10

P67

P20

P70

P73

P25

P80

P30

P34

P87

Remark Ports 7 and 8 are used when the port function is selected by a mask option or port function register.

Show 8 more labels / short text on this page
Port 5 · Port 0 · Port 6 · Port 1 P11 · Port 7 · Port 2 · Port 3 · Port 8
Page 76 of the NEC PD78F9489 user manual — Table 4-2. Configuration of Port
Page 76 · click to enlarge
Page 76

CHAPTER 4 PORT FUNCTIONS

Table 4-1. Port Functions

Port Name Pin Name Function

Port 0 P00 to P07 I/O port. Input/output can be specified in 1-bit units.

When used as an input port, an on-chip pull-up resistor can be specified in 1-bit units by

pull-up resistor option register B0 (PUB0) or the key return mode register (KRM00).

Port 1 P10, P11 I/O port. Input/output can be specified in 1-bit units.

When used as an input port, an on-chip pull-up resistor can be specified in 1-bit units by

pull-up resistor option register B1 (PUB1).

Port 2 P20 to P25 I/O port. Input/output can be specified in 1-bit units.

When used as an input port, an on-chip pull-up resistor can be specified in 1-bit units by

pull-up resistor option register B2 (PUB2).

Port 3 P30 to P34 I/O port. Input/output can be specified in 1-bit units.

When used as an input port, an on-chip pull-up resistor can be specified in 1-bit units by

pull-up resistor option register B3 (PUB3).

Port 5 P50 to P53 N-ch open-drain I/O port. Input/output can be specified in 1-bit units.

An on-chip pull-up resistor can be specified by mask option.

Port 6 P60 to P67 Input port

selected in 1-bit units by means of a mask option in the µPD789488, 789489 or a port mode register in

the µPD78F9488, 78F9489 (refer to 4.3 (3) Port function registers and CHAPTER 20 MASK

OPTIONS).

2. Whether to use these pins as I/O port pins (P80 to P87) or segment outputs (S20 to S27) can be

selected in 1-bit units by means of a mask option for the µPD789488, 789489 or a port mode register in

the µPD78F9488, 78F9489 (refer to 4.3 (3) Port function registers and CHAPTER 20 MASK

OPTIONS).

4.2 Port Configuration

Ports have the following hardware configuration.

Table 4-2. Configuration of Port

Control registers Port mode registers (PMm: m = 0 to 3, 5, 8)

Pull-up resistor option registers (PUB0 to PUB3)

Port function registers (PF7, PF8) (µPD78F9488, 78F9489 only)

Ports Total45 (CMOS I/O: 29, CMOS input: 12, N-ch open-drain I/O: 4)

Pull-up resistors • Mask ROM version

Total25 (software control: 21, mask option specification: 4)
  • Flash memory version
Total21 (software control only)

Port 7 · Port 8 · Item Configuration

Page 77 of the NEC PD78F9489 user manual — W RPM
Page 77 · click to enlarge
Page 77

CHAPTER 4 PORT FUNCTIONS

4.2.1 Port 0

This is an 8-bit I/O port with an output latch. Port 0 can be specified in the input or output mode in 1-bit units by

using port mode register 0 (PM0). When the P00 to P07 pins are used as input port pins, on-chip pull-up resistors can

be connected in 1-bit units by using pull-up resistor option register B0 (PUB0).

This port is also used for key return signal input.

RESET input sets this port to input mode.

Figure 4-2 shows a block diagram of port 0.

Figure 4-2. Block Diagram of P00 to P07

V DD

WR PUO

RD

WR KRM00

KRM000, KRM004 to KRM007

WR PORT

Output latch (P00 to P07)

P00/KR0 to P07/KR7Note 1

or P00/KR00 to P07/KR07Note 2

W RPM

KRM00Key return mode register 00
PUB0Pull-up resistor option register B0
PMPort mode register
RDPort 0 read signal
WRPort 0 write signal
2. When µ PD789489, 78F9489 is used
Show 6 more labels / short text on this page
PUB00 to PUB07 · P-ch · Selector · Internal bus · PM00 to PM07 · Alternate function
Page 78 of the NEC PD78F9489 user manual — Figure 4-3. Block Diagram of P10 and P11
Page 78 · click to enlarge
Page 78

CHAPTER 4 PORT FUNCTIONS

4.2.2 Port 1

This is a 2-bit I/O port with an output latch. Port 1 can be specified in the input or output mode in 1-bit units by

using port mode register 1 (PM1). When using the P10 and P11 pins as input port pins, on-chip pull-up resistors can

be connected in 1-bit units by using pull-up resistor option register B1 (PUB1).

RESET input sets this port to input mode.

Figure 4-3 shows a block diagram of port 1.

Figure 4-3. Block Diagram of P10 and P11

V DD

WR PU0

PUB10, PUB11

RD

WR PORT

P10, P11

(P10, P11)

WR PM

PM10, PM11

PUB1Pull-up resistor option register B1
PMPort mode register
RDPort 1 read signal
WRPort 1 write signal
Show 4 more labels / short text on this page
P-ch · Selector · Internal bus · Output latch
Page 79 of the NEC PD78F9489 user manual — Figure 4-4. Block Diagram of P20
Page 79 · click to enlarge
Page 79

CHAPTER 4 PORT FUNCTIONS

4.2.3 Port 2

This is a 6-bit I/O port with an output latch. Port 2 can be specified in the input or output mode in 1-bit units by

using port mode register 2 (PM2). When using the P20 to P25 pins as input port pins, on-chip pull-up resistors can be

connected in 1-bit units by using pull-up resistor option register B2 (PUB2).

This port is also used for serial interface I/O.

RESET input sets this port to input mode.

Figures 4-4 to 4-8 show block diagrams of port 2.

according to the function to be used. For how to set the latches, see Table 11-2 Serial Interface

20 Operation Mode Settings and 12.3 (1) Serial operation mode register 1A0 (CSIM1A0).

Figure 4-4. Block Diagram of P20

V DD

WR PUB2

PUB20

RD

WR PORT

P20/ASCK20/ SCK20

(P20)

WR PM

PM20

PUB2Pull-up resistor option register B2
PMPort mode register
RDPort 2 read signal
WRPort 2 write signal
Show 8 more labels / short text on this page
P-ch · Alternate · function · Selector · Internal bus · Output latch · Alternate · function
Page 80 of the NEC PD78F9489 user manual — CHAPTER 4 PORT FUNCTIONS
Page 80 · click to enlarge
Page 80

CHAPTER 4 PORT FUNCTIONS

Figure 4-5. Block Diagram of P21

V DD

WR PUB2

PUB21

RD

WR PORT

(P21)

WR PM

PM21

PUB2Pull-up resistor option register B2
PMPort mode register
RDPort 2 read signal
WRPort 2 write signal
Show 7 more labels / short text on this page
P-ch · Selector · Internal bus · Output latch · P21/SO20/TxD20 · Alternate · function
Page 81 of the NEC PD78F9489 user manual — CHAPTER 4 PORT FUNCTIONS
Page 81 · click to enlarge
Page 81

CHAPTER 4 PORT FUNCTIONS

Figure 4-6. Block Diagram of P22 and P25

V DD

WR PUB2

PUB22, PUB25

RD

WR PORT

(P22, P25)

WR PM

PM22, PM25

PUB2Pull-up resistor option register B2
PMPort mode register
RDPort 2 read signal
WRPort 2 write signal
Show 7 more labels / short text on this page
P-ch · Alternate · function · Internal bus · Selector · Output latch · P22/SI20/ RxD20, P25/SI10
Page 82 of the NEC PD78F9489 user manual — CHAPTER 4 PORT FUNCTIONS
Page 82 · click to enlarge
Page 82

CHAPTER 4 PORT FUNCTIONS

Figure 4-7. Block Diagram of P23

V DD

WR PUB2

PUB23

RD

WR PORT

P23/SCK10

(P23)

WR PM

PM23

PUB2Pull-up resistor option register B2
PMPort mode register
RDPort 2 read signal
WRPort 2 write signal
Show 8 more labels / short text on this page
P-ch · Alternate · function · Selector · Internal bus · Output latch · Alternate · function
Page 83 of the NEC PD78F9489 user manual — CHAPTER 4 PORT FUNCTIONS
Page 83 · click to enlarge
Page 83

CHAPTER 4 PORT FUNCTIONS

Figure 4-8. Block Diagram of P24

V DD

WR PUB2

PUB24

RD

WR PORT

(P24)

P24/SO10

WR PM

PM24

PUB2Pull-up resistor option register B2
PMPort mode register
RDPort 2 read signal
WRPort 2 write signal
Show 6 more labels / short text on this page
P-ch · Selector · Internal bus · Output latch · Alternate · function
Page 84 of the NEC PD78F9489 user manual — P30/INTP0/TO50/ TMI60, P31/INTP1/TO60, P32/INTP2/TO61/ TMI61 P33/INTP3/TO20/ CPT20
Page 84 · click to enlarge
Page 84

CHAPTER 4 PORT FUNCTIONS

4.2.4 Port 3

This is a 5-bit I/O port with an output latch. Port 3 can be specified in the input or output mode in 1-bit units by

using port mode register 3 (PM3). When using the P30 to P34 pins as input port pins, on-chip pull-up resistors can be

connected in 1-bit units by using pull-up resistor option register B3 (PUB3).

This port is also used for external interrupt input, capture input, timer I/O, and remote control receive data inputNote.

RESET input sets this port to input mode.

Figures 4-9 and 4-10 show block diagrams of port 3.

Figure 4-9. Block Diagram of P30 to P33

V DD

WR PUB3

RD

WR PORT

Output latch (P30 to P33)

P30/INTP0/TO50/ TMI60, P31/INTP1/TO60, P32/INTP2/TO61/ TMI61 P33/INTP3/TO20/ CPT20

WR PM

PUB3Pull-up resistor option register B3
PMPort mode register
RDPort 3 read signal
WRPort 3 write signal
Show 9 more labels / short text on this page
PUB30 to PUB33 · P-ch · Alternate · function · Selector · Internal bus · PM30 to PM33 · Alternate · function
Page 85 of the NEC PD78F9489 user manual — V DD
Page 85 · click to enlarge
Page 85

CHAPTER 4 PORT FUNCTIONS

Figure 4-10. Block Diagram of P34

(a) When µPD789488, 78F9488 is used

V DD

WR PUB3

PUB34

RD

WR PORT

P34

(P34)

WR PM

PM34

(b) When µPD789489, 78F9489 is used

V DD

WR PUB3

PUB34

RD

WR PORT

(P34)

P34/RIN

WR PM

PM34

PUB3Pull-up resistor option register B3
PMPort mode register
RDPort 3 read signal
WRPort 3 write signal
Show 10 more labels / short text on this page
P-ch · Internal bus · Selector · Output latch · P-ch · Alternate · function · Internal bus · Selector · Output latch
Page 86 of the NEC PD78F9489 user manual — WR PORT
Page 86 · click to enlarge
Page 86

CHAPTER 4 PORT FUNCTIONS

4.2.5 Port 5

This is a 4-bit N-ch open-drain I/O port with an output latch. Port 5 can be specified in the input or output mode in

1-bit units by using port mode register 5 (PM5). For a mask ROM version, use of an on-chip pull-up resistor can be

specified by a mask option.

RESET input sets this port to input mode.

Figure 4-11 shows a block diagram of port 5.

Figure 4-11. Block Diagram of P50 to P53

V DD

RD

Mask option resistor Mask ROM version only. For a flash memory version, a pull-up resistor is not incorporated.

WR PORT

WR PM

PMPort mode register
RDPort 5 read signal
WRPort 5 write signal
Show 7 more labels / short text on this page
Selector · Internal bus · P50 to P53 · Output latch · (P50 to P53) · N-ch · PM50 to PM53
Page 87 of the NEC PD78F9489 user manual — V REF
Page 87 · click to enlarge
Page 87

CHAPTER 4 PORT FUNCTIONS

4.2.6 Port 6

This is an 8-bit input-only port.

This port is also used for the analog input of an A/D converter and key return signal inputNote.

Figure 4-12 shows a block diagram of port 6.

Figure 4-12. Block Diagram of P60 to P67 (1/2)

(a) When µPD789488,78F9488 is used

RD

P60/ANI0 to P67/ANI7 +

V REF

Internal bus · A/D converter · −

Page 88 of the NEC PD78F9489 user manual — P67/ANI7/KR17
Page 88 · click to enlarge
Page 88

CHAPTER 4 PORT FUNCTIONS

Figure 4-12. Block Diagram of P60 to P67 (2/2)

(b) When µPD789489, 78F9489 is used

RD

WR KRM01

KRM010, KRM014 to KRM017

P67/ANI7/KR17

V REF

KRM01Key return mode register 01
RDPort 6 read signal
Show 7 more labels / short text on this page
Alternate · function · Internal bus · + · P60/ANI0/KR10 to · A/D converter · −
Page 89 of the NEC PD78F9489 user manual — Figure 4-13. Block Diagram of P70 to P73
Page 89 · click to enlarge
Page 89

CHAPTER 4 PORT FUNCTIONS

4.2.7 Port 7

This is a 4-bit input-only port. Only the bits for which the port function is selected can be used, by using a mask

option in the µPD789488 and 789489 or port function register 7 (PF7) in the µPD78F9488 and 78F9489.

Figure 4-13 shows a block diagram of port 7.

Figure 4-13. Block Diagram of P70 to P73

RD

RDPort 7 read signal

Internal bus · P70 to P73

Page 90 of the NEC PD78F9489 user manual — WR PM
Page 90 · click to enlarge
Page 90

CHAPTER 4 PORT FUNCTIONS

4.2.8 Port 8

This is an 8-bit I/O port with an output latch. Only the bits for which the port function is selected can be used, by

using a mask option in the µPD789488 and 789489 or port function register 8 (PF8) in the µPD78F9488 and 78F9489.

Port 8 can be specified in the input or output mode in 1-bit units by using port mode register 8 (PM8).

RESET input sets this port to input mode.

Figure 4-14 shows a block diagram of port 8.

Figure 4-14. Block Diagram of P80 to P87

RD

WR PORT

Output latch (P80 to P87)

WR PM

PMPort mode register
RDPort 8 read signal
WRPort 8 write signal
Show 4 more labels / short text on this page
Selector · Internal bus · P80 to P87 · PM80 to PM87
Page 91 of the NEC PD78F9489 user manual — Figure 4-15. Port Mode Register Format
Page 91 · click to enlarge
Page 91

CHAPTER 4 PORT FUNCTIONS

4.3 Registers Controlling Port Function

The ports are controlled by the following three types of registers.

  • Port mode registers (PM0 to PM3, PM5, PM8)
  • Pull-up resistor option registers (PUB0 to PUB3)
  • Port function registers (PF7, PF8) ( µ PD78F9488, 78F9489 only)

(1) Port mode registers (PM0 to PM3, PM5, PM8)

Input and output can be specified in 1-bit units.

These registers can be set with 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 port mode register and the output latch as

shown in Table 4-3.

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 to

PMK3) before using the port in output mode.

Figure 4-15. Port Mode Register Format

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W

NEC PD78F9489 — Figure 4-15. Port Mode Register Format diagram (page 91)
Fig. 19 · Figure 4-15. Port Mode Register Format

PM0 PM07 PM06 PM05 PM04 PM03 PM02 PM01 PM00 FF20H FFH R/W

PM1 PM11 PM10 FF21H FFH R/W

PM2 1 1 PM25 PM24 PM23 PM22 PM21 PM20 FF22H FFH R/W

PM3 1 1 1 PM34 PM33 PM32 PM31 PM30 FF23H FFH R/W

PM5 1 PM53 PM52 PM51 PM50 FF25H FFH R/W

PM8 PM87 PM86 PM85 PM84 PM83 PM82 PM81 PM80 FF28H FFH R/W

(m = 0 to 3, 5, 8, n = 0 to 7)

Remark PM8 can only be used when one of pins P80 to P87 is selected as a port function pin by a mask

option or port function register 8 (PF8).

Page 92 of the NEC PD78F9489 user manual — CHAPTER 4 PORT FUNCTIONS
Page 92 · click to enlarge
Page 92

CHAPTER 4 PORT FUNCTIONS

Table 4-3. Port Mode Registers and Output Latch Settings When Using Alternate Functions

NEC PD78F9489 — CHAPTER 4 PORT FUNCTIONS diagram (page 92)
Fig. 20

P00 to P07 KR0 to KR7 or KR00 to KR07 Input 1 ×

P34 RIN (µPD789489, 78F9489 only) Input 1 ×

Remark ×don’t care
PM ××Port mode register
P ××Port output latch

with the function used. For the setting method, refer to Table 11-2 Serial Interface 20 Operation

Mode Settings and 12.3 (1) Serial operation mode register 1A0 (CSIM1A0).

Page 93 of the NEC PD78F9489 user manual — Figure 4-17. Port Function Register Format
Page 93 · click to enlarge
Page 93

CHAPTER 4 PORT FUNCTIONS

(2) Pull-up resistor option registers (PUB0 to PUB3)

These registers set whether to use on-chip pull-up resistors for pins P00 to P07, P10, P11, P20 to P25, and

P30 to P34. An on-chip pull-up resistor can be used only for those bits set to the input mode in a port for

which the use of the on-chip pull-up resistor has been specified using PUB0 to PUB3.

For those bits set to the output mode, on-chip pull-up resistors cannot be used, regardless of the setting of

PUB0 to PUB3. This also applies to alternate-function pins used as output pins.

PUB0 to PUB3 are set via a 1-bit or 8-bit memory manipulation instruction.

NEC PD78F9489 — CHAPTER 4 PORT FUNCTIONS diagram (page 93)
Fig. 21

Symbol Address After reset R/W

PUB0 PUB07 PUB06 PUB05 PUB04 PUB03 PUB02 PUB01 PUB00 FF30H 00H R/W

PUB1 0 PUB11 PUB10 FF31H 00H R/W

PUB2 0 0 PUB25 PUB24 PUB23 PUB22 PUB21 PUB20 FF32H 00H R/W

PUB3 0 0 0 PUB34 PUB33 PUB32 PUB31 PUB30 FF33H 00H R/W

(m = 0 to 3, n = 0 to 7)

(3) Port function registers (PF7 and PF8) (µPD78F9488, 78F9489 only)

These registers specify in 1-bit units whether to use P70 to P73 and P80 to P87 as port pins or segment

PF7 and PF8 are set via a 1-bit or 8-bit memory manipulation instruction.

RESET input sets these registers to 00H.

µPD789488 and 789489 will simply make it invalid, causing no operational effect.

Figure 4-17. Port Function Register Format

Symbol 7 6 5 4 Address After reset R/W

PF7 0 PF73 PF72 PF71 PF70 FF57H 00H W

PF8 PF87 PF86 PF85 PF84 PF83 PF82 PF81 PF80 FF58H 00H W

NEC PD78F9489 — Figure 4-17. Port Function Register Format diagram (page 93)
Fig. 22 · Figure 4-17. Port Function Register Format

PFmn Pmn port/segment output specification (m = 7 or 8, n = 0 to 7)

Page 94 of the NEC PD78F9489 user manual — (2) In input mode
Page 94 · click to enlarge
Page 94

CHAPTER 4 PORT FUNCTIONS

4.4 Port Function Operation

The operation of a port differs depending on whether the port is set in the input or output mode, as described

below.

4.4.1 Writing to I/O port

(1) In output mode

A value can be written to the output latch of a port by using a transfer instruction. The contents of the output

latch can be output from the pins of the port.

Once data is written to the output latch, it is retained until new data is written to the output latch.

(2) In input mode

A value can be written to the output latch by using a transfer instruction. However, the status of the port pin

is not changed because the output buffer is OFF.

Once data is written to the output latch, it is retained until new data is written to the output latch.

this instruction accesses the port in 8-bit units. When this instruction is executed to

manipulate a bit of an input/output port, therefore, the contents of the output latch of the

pin that is set in the input mode and not subject to manipulation become undefined.

4.4.2 Reading from I/O port

(1) In output mode

The status of an output latch can be read by using a transfer instruction. The contents of the output latch are

not changed.

(2) In input mode

The status of a pin can be read by using a transfer instruction. The contents of the output latch are not

changed.

4.4.3 Arithmetic operation of I/O port

(1) In output mode

An arithmetic operation can be performed on the contents of the output latch. The result of the operation is

written to the output latch. The contents of the output latch are output from the port pins.

Once data is written to the output latch, it is retained until new data is written to the output latch.

(2) In input mode

The contents of the output latch become undefined. However, the status of the pin is not changed because

the output buffer is OFF.

this instruction accesses the port in 8-bit units. When this instruction is executed to

manipulate a bit of an input/output port, therefore, the contents of the output latch of the

pin that is set in the input mode and not subject to manipulation become undefined.

Page 95 of the NEC PD78F9489 user manual — Table 5-1. Configuration of Clock Generator
Page 95 · click to enlarge
Page 95

CHAPTER 5 CLOCK GENERATOR

5.1 Clock Generator Functions

The clock generator generates the clock to be supplied to the CPU and peripheral hardware.

The following two types of system clock oscillators are used.

  • Main system clock oscillator

This circuit oscillates at 1.0 to 5.0 MHz. Oscillation can be stopped by executing the STOP instruction or setting

the processor clock control register (PCC).

  • Subsystem clock oscillator

This circuit oscillates at 32.768 kHz. Oscillation can be stopped by the suboscillation mode register (SCKM).

Also, a circuit to multiply the subsystem clock by 4 can be used by setting a mask option or the subclock

selection register (SSCK).

5.2 Clock Generator Configuration

The clock generator includes the following hardware.

Table 5-1. Configuration of Clock Generator

Control registers Processor clock control register (PCC)

Subclock oscillation mode register (SCKM)

Subclock control register (CSS)

Subclock selection register (SSCK) (µPD78F9488, 78F9489 only)

Oscillators Main system clock oscillator

Item Configuration · Subsystem clock oscillator

Page 96 of the NEC PD78F9489 user manual — STOP MCC PCC1 CLS
Page 96 · click to enlarge
Page 96

CHAPTER 5 CLOCK GENERATOR

Figure 5-1. Clock Generator Block Diagram (µPD789488, 789489)

Subclock oscillation mode register (SCKM)

FRC SCC

XT1

Timer 50 Watch timer LCD controller/driver

XT2

Clock to peripheral hardware

fX 22 fXTT

CPU clock (fCPU)

STOP MCC PCC1 CLS

CSS0

Subclock control register (CSS) Processor clock control register (PCC)

Remark f XTTf XT or 8f XT
Show 22 more labels / short text on this page
Internal bus · ×4 · ×2 · 8fXT · multiplication · multiplication · circuit · circuit · Mask option · fXTT · Subsystem · fXT · clock oscillator · 1/2 · Subsystem · fX · Prescaler · clock oscillator · Standby controller · Wait controller · Selector · Internal bus
Page 97 of the NEC PD78F9489 user manual — STOP MCC PCC1 CLS CSS0
Page 97 · click to enlarge
Page 97

CHAPTER 5 CLOCK GENERATOR

Figure 5-2. Clock Generator Block Diagram (µPD78F9488, 78F9489)

circuit × 2 multiplication

Subclock oscillation mode register (SCKM) FRC SCC

Subclock selection register (SSCK) SCT

XT1

Timer 50 Watch timer LCD controller/driver

XT2

Main system clock oscillator

Prescaler Clock to peripheral hardware

fX 22 fXTT

CPU clock (fCPU)

STOP MCC PCC1 CLS CSS0

Subclock control register (CSS) Processor clock control register (PCC)

Remark f XTTf XT or 8f XT
Show 14 more labels / short text on this page
Internal bus · × 4 multiplication · circuit · 8fXT · Selector · fXTT · Subsystem clock oscillator · fXT · 1/2 · fX · Standby controller · Wait controller · Selector · Internal bus
Page 98 of the NEC PD78F9489 user manual — Figure 5-3. Format of Processor Clock Control Register
Page 98 · click to enlarge
Page 98

CHAPTER 5 CLOCK GENERATOR

5.3 Registers Controlling Clock Generator

The clock generator is controlled by the following four registers.

  • Processor clock control register (PCC)
  • Subclock oscillation mode register (SCKM)
  • Subclock control register (CSS)
  • Subclock selection register (SSCK) ( µ PD78F9488, 78F9489 only)

(1) Processor clock control register (PCC)

This register is used to select the CPU clock and set the frequency division ratio.

PCC is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 02H.

Figure 5-3. Format of Processor Clock Control Register

Symbol 6 5 4 3 2 0 Address After reset R/W

PCC MCC 0 PCC1 0 FFFBH 02H R/W

MCC Main system clock oscillator operation control

CSS0 PCC1 CPU clock (fCPU) selectionNote

Minimum instruction execution time2/f CPU

fX = 5.0 MHz or fXT = 32.768 kHz

0 0 fX 0.4 µs

0 1 fX/22 1.6 µs

1 × fXT/2

4fXT (when ×4 multiplication circuit is used)

15.26 µs (when ×4 multiplication circuit is used)

5.3 (3) Subclock control register (CSS).)

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.

Remarks 1. f XMain system clock oscillation frequency
2. f XT : Subsystem clock oscillation frequency

0 Operation enabled · 1 Operation stopped · 122 µs

Page 99 of the NEC PD78F9489 user manual — CLS
Page 99 · click to enlarge
Page 99

CHAPTER 5 CLOCK GENERATOR

(2) Subclock oscillation mode register (SCKM)

SCKM selects a feedback resistor for the subsystem clock, and controls the oscillation of the clock.

SCKM is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets SCKM to 00H.

Figure 5-4. Format of Subclock Oscillation Mode Register

Symbol Address After reset R/W

7 6 5 4 3 2 1

0 FRC SCC SCKM

FFF0H 00H R/W

FRC

Feedback resistor selectionNote

On-chip feedback resistor used

On-chip feedback resistor not used

Control of subsystem clock oscillator operation SCC

point of the supply voltage. When the subclock is not used, the power consumption in STOP mode can be

further reduced by setting FRC = 1.

(3) Subclock control register (CSS)

CSS specifies whether the main system or subsystem clock oscillator is to be selected. It also specifies the

CPU clock operation status.

CSS is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets CSS to 00H.

Figure 5-5. Format of Subclock Control Register

7 6 5 4 3 2 1 0

Address After reset R/W

0 0 CLS CSS0 CSS

FFF2H 00H R/W

CLS

CPU clock operation status

Operation based on the output of the (divided) main system clock

Operation based on the subsystem clock

Selection of the main system or subsystem clock oscillator CSS0

(Divided) output from the main system clock oscillator

Output from the subsystem clock oscillator

Operation enabled · Operation disabled · Symbol

Page 100 of the NEC PD78F9489 user manual — R/W
Page 100 · click to enlarge
Page 100

CHAPTER 5 CLOCK GENERATOR

(4) Subclock selection register (SSCK) ( µ PD78F9488, 78F9489 only)

This register is used to control the operation of the ×4 subsystem clock multiplication circuit.

SSCK is set via a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

µPD789488 and 789489 will simply make it invalid, causing no operational effect.

Figure 5-6. Subclock Selection Register Format

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W

SSCK 0 SCT FF46H RetainedNot

R/W

SCT Control of ×4 subsystem clock multiplication circuit

0 Operation stopped (subsystem clock source (32.768 kHz) supplied to the CPU)

1 Operation enabled (clock that is the subsystem clock multiplied by 8 (262 kHz) supplied to the CPU)

2. Write to the SCT flag prior to setting the CSS0 flag to 1 following the release of reset. Write

operations following the first operation are invalid (input the RESET signal to rewrite).

e

Page 101 of the NEC PD78F9489 user manual — Figure 5-7. External Circuit of Main System Clock Oscillator
Page 101 · click to enlarge
Page 101

CHAPTER 5 CLOCK GENERATOR

5.4 System Clock Oscillators

5.4.1 Main system clock oscillator

The main system clock oscillator is oscillated by the crystal or ceramic resonator (5.0 MHz TYP.) connected

across the X1 and X2 pins.

An external clock can also be input to the circuit. In this case, input the clock signal to the X1 pin, and input the

inverted signal to the X2 pin.

Figure 5-7 shows the external circuit of the main system clock oscillator.

Figure 5-7. External Circuit of Main System Clock Oscillator

(a) Crystal or ceramic oscillation (b) External clock

V SS

Crystal or ceramic resonator

lines in Figure 5-7 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 SS . Do not

ground the capacitor to a ground pattern through which a high current flows. • Do not fetch signals from the oscillator.

External clock X1

Page 102 of the NEC PD78F9489 user manual — XT2
Page 102 · click to enlarge
Page 102

CHAPTER 5 CLOCK GENERATOR

5.4.2 Subsystem clock oscillator

The subsystem clock oscillator is oscillated by the crystal resonator (32.768 kHz TYP.) connected across the XT1

and XT2 pins.

An external clock can also be input to the circuit. In this case, input the clock signal to the XT1 pin, and input the

inverted signal to the XT2 pin.

Figure 5-8 shows the external circuit of the subsystem clock oscillator.

Figure 5-8. External Circuit of Subsystem Clock Oscillator

(a) Crystal oscillation (b) External clock

IC (V PP ) XT1

32.768 kHz

XT2

XT2

by the broken lines in Figures 5-7 and 5-8 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 SS . Do not

ground the capacitor to a ground pattern through which a high current flows.

  • Do not fetch signals from the oscillator.

When using the subsystem clock, particular care is required because the subsystem clock

oscillator is designed as a low-amplitude circuit for reducing current consumption.

External clock XT1 · Crystal resonator

Page 103 of the NEC PD78F9489 user manual — (potential at points A, B, and C fluctuates)
Page 103 · click to enlarge
Page 103

CHAPTER 5 CLOCK GENERATOR

5.4.3 Example of incorrect resonator connection

Figure 5-9 shows examples of incorrect resonator connection.

Figure 5-9. Examples of Incorrect Resonator Connection (1/2)

(a) Too long wiring (b) Crossed signal line

PORTn (n = 0 to 3, 5)

V SS X1 X2

V SS X1 X2

(c) Wiring near high fluctuating current (d) Current flowing through ground line of oscillator

(potential at points A, B, and C fluctuates)

V DD

V SS X1 X2

V SS X1

A B C

Remark When using the subsystem clock, read X1 and X2 as XT1 and XT2, respectively, and connect a resistor

to XT2 in series.

Pmn · High current · High current

Page 104 of the NEC PD78F9489 user manual — 5.4.5 When subsystem clock is not used
Page 104 · click to enlarge
Page 104

CHAPTER 5 CLOCK GENERATOR

Figure 5-9. Examples of Incorrect Resonator Connection (2/2)

(e) Signal is fetched

V SS X1 X2

Remark When using the subsystem clock, read X1 and X2 as XT1 and XT2, respectively, and connect a resistor

to XT2 in series.

5.4.4 Divider circuit

The divider circuit divides the output of the main system clock oscillator (fX) to generate various clocks.

5.4.5 When subsystem clock is not used

If the subsystem clock is not necessary, for example, for low-power consumption operation or clock operation,

handle the XT1 and XT2 pins as follows.

XT1Connect to V SS
XT2Leave open

In this case, however, a small current leaks via the on-chip feedback resistor in the subsystem clock oscillator

when the main system clock is stopped. To avoid this, set bit 1 (FRC) of the subclock oscillation mode register

(SCKM) so that the on-chip feedback resistor will not be used. Also in this case, handle the XT1 and XT2 pins as

stated above.

5.4.6 Subsystem clock ×4 multiplication circuit

This circuit multiplies the subsystem clock by 4 and supplies it to the CPU.

The circuit stops operating in the HALT mode (to reduce power consumption).

When the circuit starts operating after HALT mode is released, a one-clock wait of the original subsystem clock is

inserted to eliminate noise.

Page 105 of the NEC PD78F9489 user manual — CHAPTER 5 CLOCK GENERATOR
Page 105 · click to enlarge
Page 105

CHAPTER 5 CLOCK GENERATOR

5.5 Clock Generator Operation

The clock generator generates the following clocks and controls the operation modes of the CPU, such as the

standby mode.

  • Main system clock f X
  • Subsystem clock f XT
  • CPU clock f CPU
  • Clock to peripheral hardware

The operation and function of the clock generator is determined by the processor clock control register (PCC),

subclock oscillation mode register (SCKM), and subclock control register (CSS), as follows.

(a) The low-speed mode (1.6 µs: at 5.0 MHz operation) of the main system clock is selected when the

RESET signal is generated (PCC = 02H). While a low level is being to the RESET pin, oscillation of the

main system clock is stopped.

(b) Three types of minimum instruction execution time (0.4 µs and 1.6 µs: main system clock (at 5.0 MHz

operation), 122 µ ssubsystem clock (at 32.768 kHz operation)) can be selected by the PCC, SCKM,

and CSS settings. Also, the subsystem clock can be changed to a clock that uses a circuit to multiply

the subclock by 4 via a mask option in the µPD789488 and 789489 or the subclock selection register

(SSCK) in the µPD78F9488 and 78F9489 (15.26 µs: a circuit to multiply the subsystem clock by 4 is

used).

(c) Two standby modes, STOP and HALT, can be used with the main system clock selected. In a system

where the subsystem clock is not used, setting bit 1 (FRC) of SCKM so that the on-chip feedback

resistor cannot be used reduces current consumption in STOP mode. In a system where the

subsystem clock is used, setting SCKM bit 0 to 1 can cause the subsystem clock to stop oscillation.

(d) CSS bit 4 (CSS0) can be used to select the subsystem clock so that low current consumption operation

is used (122 µs: at 32.768 kHz operation).

(e) With the subsystem clock selected, it is possible to cause the main system clock to stop oscillating

using bit 7 (MCC) of PCC. The HALT mode can be used, but the STOP mode cannot.

(f) The clock pulse for the peripheral hardware is generated by dividing the frequency of the main system

clock, but the subsystem clock pulse is only supplied to 8-bit timer 50, the watch timer, and the LCD

controller/driver. 8-bit timer 50, the watch timer, and the LCD controller/driver can therefore keep

running even during standby. The other hardware stops when the main system clock stops because it

runs based on the main system clock (except for external input clock operations).

Page 106 of the NEC PD78F9489 user manual — Table 5-2. Maximum Time Required for Switching CPU Clock
Page 106 · click to enlarge
Page 106

CHAPTER 5 CLOCK GENERATOR

5.6 Changing Setting of System Clock and CPU Clock

5.6.1 Time required for switching between system clock and CPU clock

The CPU clock can be selected by using bit 1 (PCC1) of the processor clock control register (PCC) and bit 4

(CSS0) of the subclock control register (CSS).

Actually, the specified clock is not selected immediately after the setting of PCC has been changed; the old clock

is used for the duration of several instructions after that (see Table 5-2).

Table 5-2. Maximum Time Required for Switching CPU Clock

NEC PD78F9489 — Table 5-2. Maximum Time Required for Switching CPU Clock diagram (page 106)
Fig. 23 · Table 5-2. Maximum Time Required for Switching CPU C…

0 0 4 clocks 2fX/fXT clocks

Remarks 1. Two clocks are the minimum instruction execution time of the CPU clock before switching.

2. The parenthesized values apply to operation at f X = 5.0 MHz or f XT = 32.768 kHz.
3. x: don’t care
Page 107 of the NEC PD78F9489 user manual — Figure 5-10. Switching Between System Clock and CPU Clock
Page 107 · click to enlarge
Page 107

CHAPTER 5 CLOCK GENERATOR

5.6.2 Switching between system clock and CPU clock

The following figure illustrates how the CPU clock and system clock switch.

Figure 5-10. Switching Between System Clock and CPU Clock

V DD

RESET

fX fX fXT fX

Wait (6.55 msat 5.0 MHz operation)

The CPU is reset when the RESET pin is made low on power application. The effect of resetting is released

when the RESET pin is later made high, and the main system clock starts oscillating. At this time, the

oscillation stabilization time (215/fX) is automatically secured.

After that, the CPU starts instruction execution at the slow speed of the main system clock (1.6 µs: at

5.0 MHz operation).

After the time required for the VDD voltage to rise to the level at which the CPU can operate at high speed

has elapsed, bit 1 (PCC1) of the processor clock control register (PCC) and bit 4 (CSS0) of the subclock

control register (CSS) are rewritten so that high-speed operation can be selected.

A drop of the VDD voltage is detected with an interrupt request signal. The clock is switched to the

subsystem clock (at this moment, the subsystem clock must be in the oscillation stabilization status).

A recover of the VDD voltage is detected with an interrupt request signal. Bit 7 (MCC) of PCC is set to 0, and

then the main system clock starts oscillating. After the time required for the oscillation to stabilize has

elapsed, PCC1 and CSS0 are rewritten so that high-speed operation can be selected again.

clock, wait until the oscillation stabilization time has been secured by the program before

switching back to the main system clock.

Show 9 more labels / short text on this page
Interrupt request signal · System clock · CPU clock · Low-speed operation · High-speed · Subsystem clock operation · High-speed operation · operation · Internal reset operation
Page 108 of the NEC PD78F9489 user manual — Table 6-1. 16-Bit Timer 20 Configuration
Page 108 · click to enlarge
Page 108

CHAPTER 6 16-BIT TIMER 20

6.1 16-Bit Timer 20 Functions

16-bit timer 20 has the following functions.

  • Timer interrupt
  • Timer output
  • Count value capture

(1) Timer interrupt

An interrupt is generated when a count value and compare value match.

(2) Timer output

Timer output can be controlled when a count value and compare value match.

(3) Count value capture

The count value of 16-bit timer counter 20 (TM20) is latched into a capture register in synchronization with

the capture trigger and retained.

6.2 16-Bit Timer 20 Configuration

16-bit timer 20 includes the following hardware.

Table 6-1. 16-Bit Timer 20 Configuration

Timer counters 16 bits × 1 (TM20)

Registers Compare register16 bits × 1 (CR20)
Capture register16 bits × 1 (TCP20)

Timer outputs 1 (TO20)

Control registers 16-bit timer mode control register 20 (TMC20)

Port mode register 3 (PM3)

Item Configuration · Port 3 (P3)

Page 109 of the NEC PD78F9489 user manual — (3) 16-bit capture register 20 (TCP20)
Page 109 · click to enlarge
Page 109

CHAPTER 6 16-BIT TIMER 20

Figure 6-1. Block Diagram of 16-Bit Timer 20

16-bit timer mode control register 20 (TMC20)

P33 output latch PM33

TOF20 CPT201 CPT200 TOC20 TCL201 TCL200 TOE20

TO20/CPT20 /INTP3/P33

F/F TOD20

16-bit compare register 20 (CR20)

16-bit timer mode control register 20

INTTM20

fX fX/22

OVF

fX/25

16-bit timer counter 20 (TM20)

CPT20/TO20

Edge detector 16-bit capture register 20 (TCP20)

16-bit counter read buffer

/INTP3/P33

(1) 16-bit compare register 20 (CR20)

This 16-bit register is used to continually compare the value set to CR20 with the count value in 16-bit timer

counter 20 (TM20) and to issue an interrupt request (INTTM20) when a match occurs.

CR20 is set via a 16-bit memory manipulation instruction. Values from 0000H to FFFFH can be set.

RESET input sets this register to FFFFH.

disable interrupts. Also, set inversion inhibited for the timer output data in 16-bit timer

mode control register 20 (TMC20). If CR20 is rewritten while interrupts are enabled, an

interrupt request may be issued at the point of rewrite.

(2) 16-bit timer counter 20 (TM20)

This is a 16-bit register that is used to count the count pulses.

TM20 can be read with a 16-bit memory manipulation instruction.

The counter is in free-running mode when the count clock is being input.

RESET input sets this counter to 0000H and restarts free-running mode.

occurred during the oscillation stabilization time.

(3) 16-bit capture register 20 (TCP20)

This is a 16-bit register used to capture the contents of 16-bit timer counter 20 (TM20).

TCP20 is set with a 16-bit memory manipulation instruction.

RESET input makes this register undefined.

Show 6 more labels / short text on this page
Internal bus · Match · Selector · Timer 61 interrupt · request signal · Internal bus
Page 110 of the NEC PD78F9489 user manual — (1) 16-bit timer mode control register 20 (TMC20)
Page 110 · click to enlarge
Page 110

CHAPTER 6 16-BIT TIMER 20

(4) 16-bit counter read buffer 20

This buffer is used to latch and hold the count value for TM20.

6.3 Registers Controlling 16-Bit Timer 20

16-bit timer 20 is controlled by the following three registers.

  • 16-bit timer mode control register 20 (TMC20)
  • Port mode register 3 (PM3)
  • Port 3 (P3)

(1) 16-bit timer mode control register 20 (TMC20)

16-bit timer mode control register 20 (TMC20) controls the setting of the count clock, capture edge, etc.

TMC20 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets TMC20 to 00H.

Page 111 of the NEC PD78F9489 user manual — CHAPTER 6 16-BIT TIMER 20
Page 111 · click to enlarge
Page 111

CHAPTER 6 16-BIT TIMER 20

Figure 6-2. Format of 16-Bit Timer Mode Control Register 20

Symbol 5 4 3 2 1 Address After reset R/W

TMC20 TOD20 TOF20 CPT201 CPT200 TOC20 TCL201 TCL200 TOE20 FF48H 00H R/W

NEC PD78F9489 — CHAPTER 6 16-BIT TIMER 20 diagram (page 111)
Fig. 24
NEC PD78F9489 — CHAPTER 6 16-BIT TIMER 20 diagram (page 111)
Fig. 25
NEC PD78F9489 — CHAPTER 6 16-BIT TIMER 20 diagram (page 111)
Fig. 26
NEC PD78F9489 — CHAPTER 6 16-BIT TIMER 20 diagram (page 111)
Fig. 27
NEC PD78F9489 — CHAPTER 6 16-BIT TIMER 20 diagram (page 111)
Fig. 28

TCL201 TCL200 Selection of count clock for 16-bit timer counter 20

NEC PD78F9489 — CHAPTER 6 16-BIT TIMER 20 diagram (page 111)
Fig. 29
2. If f X is selected for the count clock, the signal cannot be used as a capture signal.
3. In a read operation, set the CPU clock as the high-speed main clock (PCC1 = 0, CSS = 0).
4. In a read operation, set the CPU clock as the main clock (CSS = 0).
Remarks 1. f XMain system clock oscillation frequency
2. The parenthesized values apply to operational f X = 5.0 MHz.
Page 112 of the NEC PD78F9489 user manual — Figure 6-3. Format of Port Mode Register 3
Page 112 · click to enlarge
Page 112

CHAPTER 6 16-BIT TIMER 20

(2) Port mode register 3 (PM3)

This register is used to set the I/O mode of port 3 in 1-bit units.

When using the P33/INTP3/CPT20/TO20 pin as a capture input (CPT20), set PM33 to 1. When using the

above pin as a timer output (TO20), set the PM33 and P33 output latches to 0.

PM3 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to FFH.

Figure 6-3. Format of Port Mode Register 3

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W

PM3 1 1 1 PM34 PM33 PM32 PM31 PM30 FF23H FFH R/W

PM33 Selection of P33 pin I/O mode

0 Output mode (output buffer is on)

1 Input mode (output buffer is off)

Page 113 of the NEC PD78F9489 user manual — Table 6-2. Interval Time of 16-Bit Timer 20
Page 113 · click to enlarge
Page 113

CHAPTER 6 16-BIT TIMER 20

6.4 16-Bit Timer 20 Operation

6.4.1 Operation as timer interrupt

16-bit timer 20 can generate interrupts repeatedly each time the free-running counter value reaches the value set

to CR20. Since this counter is not cleared and holds the count even after an interrupt is generated, the interval time is

equal to one cycle of the count clock set in TCL201 and TCL200.

To operate 16-bit timer 20 as a timer interrupt, the following settings are required.

  • Set count values in CR20
  • Set 16-bit timer mode control register 20 (TMC20) as shown in Figure 6-4.

Figure 6-4. Settings of 16-Bit Timer Mode Control Register 20 for Timer Interrupt Operation

TOD20 TOF20 CPT201 CPT200 TOC20 TCL201 TCL200 TOE20

TMC20

− 0/1

Setting of count clock (see Table 6-2)

When the count value of 16-bit timer counter 20 (TM20) matches the value set in CR20, counting of TM20

continues and an interrupt request signal (INTTM20) is generated.

Table 6-2 shows interval time, and Figure 6-5 shows timing of timer interrupt operation.

processing.

<1> Disable interrupts (set TMMK20 (bit 2 of interrupt mask flag register 1 (MK1)) to 1).

<2> Disable inversion control of timer output data (set TOC20 to 0)

If the value in CR20 is rewritten in the interrupt-enabled state, an interrupt request may occur at

the moment of rewrite.

Table 6-2. Interval Time of 16-Bit Timer 20

TCL201 TCL200 Count Clock Interval Time

0 0 Timer 61 interrupt signal Cycle of timer 61 interrupt signal × 2

0 1 1/fX (0.2 µs) 2 16/fX (13.1 ms)

1 0 2 2/fX (0.8 µs) 2 18/fX (52.4 ms)

1 1 2 5/fX (6.4 µs) 2 21/fXT (419 ms)

Remarks 1. f XMain system clock oscillation frequency
2. The parenthesized values apply to operation at f X = 5.0 MHz.
Page 114 of the NEC PD78F9489 user manual — TO20
Page 114 · click to enlarge
Page 114

CHAPTER 6 16-BIT TIMER 20

Figure 6-5. Timing of Timer Interrupt Operation

0000H N FFFFH N 0000H 0001H 0001H

CR20

N N N N N

INTTM20

Interrupt acknowledgement Interrupt acknowledgement

TO20

TOF20

Remark N = 0000H to FFFFH

Show 4 more labels / short text on this page
t · Count clock · TM20 count value · Overflow flag set
Page 115 of the NEC PD78F9489 user manual — Figure 6-7. Timer Output Timing
Page 115 · click to enlarge
Page 115

CHAPTER 6 16-BIT TIMER 20

6.4.2 Operation as timer output

16-bit timer 20 can invert the timer output repeatedly each time the free-running counter value reaches the value

set to CR20. Since this counter is not cleared and holds the count even after the timer output is inverted, the interval

time is equal to one cycle of the count clock set in TCL201 and TCL200.

To operate 16-bit timer 20 as a timer output, the following settings are required.

  • Set P33 to output mode (PM33 = 0).
  • Reset the output latch of P33 to 0.
  • Set the count value in CR20.
  • Set 16-bit timer mode control register 20 (TMC20) as shown in Figure 6-6.

Figure 6-6. Settings of 16-Bit Timer Mode Control Register 20 for Timer Output Operation

TOD20 TOF20 CPT201 CPT200 TOC20 TCL201 TCL200 TOE20

TMC20

− 0/1 0/1 0/1 1 0/1 0/1 1

Setting of count clock (see Table 6-2) Inverse enable of timer output data

When the count value of 16-bit timer counter 20 (TM20) matches the value set in CR20, the output status of the

TO20 pin is inverted. This enables timer output. At that time, TM20 continues counting and an interrupt request

signal (INTTM20) is generated.

Figure 6-7 shows the timing of timer output (see Table 6-2 for the interval time of 16-bit timer 20).

Figure 6-7. Timer Output Timing

0000H N FFFFH N 0000H 0001H 0001H

CR20

N N N N N

INTTM20

TOF20

Remark N = 0000H to FFFFH

Show 8 more labels / short text on this page
TO20 output enable · t · Count clock · TM20 count value · Interrupt acknowledgement · Interrupt acknowledgement · TO20Note · Overflow flag set
Page 116 of the NEC PD78F9489 user manual — CPT20
Page 116 · click to enlarge
Page 116

CHAPTER 6 16-BIT TIMER 20

6.4.3 Capture operation

The capture operation consists of latching the count value of 16-bit timer counter 20 (TM20) into a capture register

in synchronization with a capture trigger, and retaining the count value.

Set TMC20 as shown in Figure 6-8 to allow the 16-bit timer to start the capture operation.

Figure 6-8. Settings of 16-Bit Timer Mode Control Register 20 for Capture Operation

TOD20 TOF20 CPT201 CPT200 TOC20 TCL201 TCL200 TOE20

TMC20

− 0/1

Count clock selection Capture edge selection (see Table 6-3)

16-bit capture register 20 (TCP20) starts a capture operation after a CPT20 capture trigger edge is detected, and

latches and retains the count value of 16-bit timer 20. TCP20 fetches the count value within 2 clocks and retains the

count value until the next capture edge detection.

Table 6-3 and Figure 6-9 show the settings of the capture edge and the capture operation timing, respectively.

Table 6-3. Settings of Capture Edge

CPT201 CPT200 Capture Edge Selection

0 0 Capture operation prohibited

0 1 CPT20 pin rising edge

1 0 CPT20 pin falling edge

1 1 CPT20 pin both edges

capture trigger edge detection during TCP20 read.

Figure 6-9. Capture Operation Timing (with Both Edges of CPT20 Pin Specified)

TM20

0000H

0001H

N

M 1 M

0000H

0001H

N

M

TCP20

N

M

Capture start Capture start

CPT20

Capture edge detection Capture edge detection

Remark N, M = 0000H to FFFFH

Count clock · Count read buffer · Undefined

Page 117 of the NEC PD78F9489 user manual — Figure 6-10. 16-Bit Timer Counter 20 Readout Timing
Page 117 · click to enlarge
Page 117

CHAPTER 6 16-BIT TIMER 20

6.4.4 16-bit timer counter 20 readout

The count value of 16-bit timer counter 20 (TM20) is read out using a 16-bit manipulation instruction.

TM20 readout is performed via the counter read buffer. The counter read buffer latches the TM20 count value, the

buffer operation is held pending at the CPU clock falling edge after the read signal of the TM20 lower byte rises, and

the count value is retained. The retained counter read buffer value can be read out as the count value.

Cancellation of the pending state is performed at the CPU clock falling edge after the read signal of the TM20

higher byte falls.

RESET input sets TM20 to 0000H and TM20 starts free running.

Figure 6-10 shows the timing of 16-bit timer counter 20 readout.

executed during the oscillation stabilization time.

2. Though TM20 is designed for a 16-bit transfer instruction, an 8-bit transfer instruction can

also be used.

When using an 8-bit transfer instruction, execute it by direct addressing.

3. When using an 8-bit transfer instruction, execute in the order from lower byte to higher byte

in pairs. If only the lower byte is read, the pending state of the counter read buffer is not

canceled, and if only the higher byte is read, an undefined count value is read.

Figure 6-10. 16-Bit Timer Counter 20 Readout Timing

TM20

0000H

0001H

N

N + 1

0000H

0001H

N

Remark N = 0000H to FFFFH

Show 6 more labels / short text on this page
CPU clock · Count clock · Count read buffer · TM20 read signal · Read signal latch · prohibited period
Page 118 of the NEC PD78F9489 user manual — CHAPTER 6 16-BIT TIMER 20
Page 118 · click to enlarge
Page 118

CHAPTER 6 16-BIT TIMER 20

6.5 Cautions on Using 16-Bit Timer 20

6.5.1 Restrictions when rewriting 16-bit compare register 20

(1) Disable interrupts (TMMK20 = 1) and inversion control of timer output (TOC20 = 0) before rewriting the

compare register (CR20).

If the value in CR20 is rewritten in the interrupt-enabled state, an interrupt request may occur at the moment

of rewrite.

(2) Depending on the timing of rewriting the compare register (CR20), the interval time may become twice as

long as the intended time. Similarly, a shorter waveform or twice-longer waveform than the intended timer

output waveform may be output.

To avoid this problem, rewrite the compare register using either of the following procedures.

<Countermeasure A> When rewriting using 8-bit access

Disable interrupts (TMMK20 = 1) and inversion control of timer output (TOC20 = 0).

First rewrite the higher byte of CR20 (16 bits).

Then rewrite the lower byte of CR20 (16 bits).

Clear the interrupt request flag (TMIF20).

Enable timer interrupts/timer output inversion after half a cycle or more of the count clock has elapsed from

the start of the interrupt.

<Program example A> (count clock = 32/fX, CPU clock = fX)

TM20_VCTSET1 TMMK20 ; Disable timer interrupts (6 clocks)

CLR1 TMC20.3 ; Disable timer output inversion (6 clocks)

MOV A, #xxH ; Set the rewrite value of the higher byte (6 clocks)

MOV !0FF17H, A ; Rewrite the CR20 higher byte (8 clocks)

Total16 clocks

MOV A, #yyH ; Set the rewrite value of the lower byte (6 clocks)

MOV !0FF16H,A ; Rewrite the CR20 lower byte (8 clocks)

CLR1 TMIF20 ; Clear the interrupt request flag (6 clocks)

CLR1 TMMK20 ; Enable timer interrupts (6 clocks)

SET1 TMC20.3 ; Enable timer output inversion

generated, the output is inverted if TOC20 is set to 1 during this period.

or moreNote

Page 119 of the NEC PD78F9489 user manual — NOP
Page 119 · click to enlarge
Page 119

CHAPTER 6 16-BIT TIMER 20

<Countermeasure B> When rewriting using 16-bit access

Disable interrupts (TMMK20 = 1) and inversion control of timer output (TOC20 = 0).

Rewrite CR20 (16 bits).

Wait for one cycle or more of the count clock.

Clear the interrupt request flag (TMIF20).

Enable timer interrupts/timer output inversion

<Program example B> (count clock = 32/fX, CPU clock = fX)

TM20_VCTSET1 TMMK20 ; Disable timer interrupts

CLR1 TMC20.3 ; Disable timer output inversion

MOVW A, #xxyyH ; Set the rewrite value of CR20

MOVW CR20, AX ; Rewrite CR20

NOP

NOP

: ; 16 NOP instructions (wait for 32/fX)Note

NOP

NOP

CLR1 TMIF20 ; Clear the interrupt request flag

CLR1 TMMK20 ; Enable timer interrupts

SET1 TMC20.3 ; Enable timer output inversion

instruction that rewrites CR20 (MOVW CR20, AX).

Page 120 of the NEC PD78F9489 user manual — (4) PWM output mode (PWM: Pulse Width Modulator)
Page 120 · click to enlarge
Page 120

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

7.1 Functions of 8-Bit Timers 50, 60, and 61

One 8-bit timer channel (timer 50) and two 8-bit timer/event counter channels (timer 60 and 61) are incorporated in

the µPD789489 Subseries. The operation modes listed in the following table can be set via mode register settings.

Table 7-1. Operation Modes

Timer 50 Timer 60 Timer 61

8-bit timer counter mode

16-bit timer counter mode

Carrier generator mode Available Not available

PWM output mode Available Not available Not available

PPG output mode Not available Available Available

24-bit event counter mode

Not available Not available Available

(connect with 16-bit timer 20)

(1) Mode to use 8-bit timer/event counter as discrete unit (stand-alone mode)

The following functions can be used in this mode.

  • Interval timer with 8-bit resolution
  • Square wave output with 8-bit resolution

  • Interval timer with 8-bit resolution
  • External event counter with 8-bit resolution
  • Square wave output with 8-bit resolution

(2) Mode to use timer 50 and timer 60 connected in cascade (16-bit resolution: cascade connection)

Operation as a 16-bit timer/event counter is enabled in cascade connection mode.

The following functions can be used in this mode.

  • Interval timer with 16-bit resolution
  • External event counter with 16-bit resolution
  • Square wave output with 16-bit resolution

(3) Carrier generator mode

The carrier clock generated by timer 60 is output in the cycle set by timer 50.

(4) PWM output mode (PWM: Pulse Width Modulator)

Pulses are output using any duty ratio (pulse width). The cycle (overflow cycle of the timer) becomes

constant (free running).

Show 7 more labels / short text on this page
Channel · Mode · Available Available Available · (stand-alone mode) · Available Not available · (cascade connection mode) · <Timer 50>
Page 121 of the NEC PD78F9489 user manual — TMI61/TO61
Page 121 · click to enlarge
Page 121

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

(5) PPG output mode (PPG: Programmable Pulse Generator)

Pulses are output using any cycle or duty ratio (pulse width) set (both the cycle and pulse width are

programmable).

(6) 24-bit event counter mode

Operation as an external event counter with 24-bit resolution is enabled using 16-bit timer 20 and timer 61.

However, this mode operates only as a counter read function.

There is no compare, match, or clear function.

Select the timer 61 interrupt signal for the count clock of 16-bit timer 20 (TCL201 = 0, TCL200 = 0)

Set timer 61 in stand-alone mode (TMD611 = 0)

Select the external clock input from pin TMI61 for the count clock of timer 61

((TCL612 = 0, TCL611 = 1) or (TCL612 = 1, TCL611 = 0))

Set CR61 to FFH

Read the current count value of 16-bit timer 20

(16-bit timer 20 does not have a count clear function and is counting constantly)

Enable timer 61 count operation (TCE61 = 1)

Figure 7-1. Block Diagram of 24-Bit Event Counter

Timer read Timer read

Timer 61 (lower 8 bits)

Timer 20 (higher 16 bits)

TMI61/TO61

/INTP2/P32

Select external clock for count clock

Select timer 61 interrupt signal for count clock

· Internal bus

Page 122 of the NEC PD78F9489 user manual — Table 7-2. Configuration of 8-Bit Timers 50, 60, and 61
Page 122 · click to enlarge
Page 122

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

7.2 Configuration of 8-Bit Timers 50, 60, and 61

8-bit timers 50, 60, and 61 include the following hardware.

Table 7-2. Configuration of 8-Bit Timers 50, 60, and 61

Timer counter 8 bits × 3 (TM50, TM60, TM61)

Registers Compare registers8 bits × 5 (CR50, CR60, CRH60, CR61, CRH61)

Timer outputs 3 (TO50, TO60, TO61)

Control registers 8-bit timer mode control register 50 (TMC50)

8-bit timer mode control register 60 (TMC60)

Carrier generator output control register 60 (TCA60)

8-bit timer mode control register 61 (TMC61)

Port mode register 3 (PM3)

Item Configuration · Port 3 (P3)

Page 123 of the NEC PD78F9489 user manual — Figure 7-2. Block Diagram of Timer 50
Page 123 · click to enlarge
Page 123

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

(in cascade connection mode)

(in carrier generator mode)

Timer 50 match signal

Timer 50 match signal

TO50/TMI60/

INTP0/P30

INTTM50

NEC PD78F9489 — TO50/TMI60/ diagram (page 123)
Fig. 30

Figure 7-2. Block Diagram of Timer 50

Count operation start signal

(from Figure 7-3(A)) (A)

fX/23

fX/27

Timer 60 interrupt request signal

Bit 7 of TM60

Show 10 more labels / short text on this page
to Figure 7-3(F) · to Figure 7-3(G) · (cascade connection) · from Figure 7-3(D) · Internal bus · fX · fXT · (from Figure 7-3(B)) · Carrier clock · (from Figure 7-3(C))
Page 124 of the NEC PD78F9489 user manual — TMI60/TO50/
Page 124 · click to enlarge
Page 124

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

from timer 50 in Figure 7-2(G)

Timer 60 interrupt request signal To Figure 7-2(B)

Timer counter match signal

(in carrier generator mode)

To Figure 7-2(C) carrier clock

(in cascade connection mode)

Bit 7 of TM60

INTTM60

RMC60 NRZB60 NRZ60

(G)

(C)

(A)

(B)

control register 60 (TCA60)

8-bit timer mode control register 60 (TMC60) Carrier generator output

(in cascade connection mode)

(in cascade connection mode)

(in cascade connection mode) Timer counter match

Figure 7-3. Block Diagram of Timer 60

F/F

8-bit compare register 60 (CR60)

(E)

OVF

(F)

8-bit H width compare register 60

8-bit timer counter 60 (TM60)

(CRH60)

TCE60 TCL602 TCL601 TCL600 TMD601 TMD600 TOE600

signal to timer 50

(D)

fTMI/22

fTMI/23

fX/22

TMI60/TO50/

INTP0/P30

Show 24 more labels / short text on this page
count clock signal · Match TO60/INTP1/P31 · To Figure 7-2(A) · input to TM50 · controllerNote · Output · Reset · To Figure 7-2(E) · signal for TM60 · From Figure 7-2(F) · TM50 match signal · Selector · Internal bus · Clear · Cascade connection mode · PPG mode · Decoder · Count operation start · To Figure 7-2(D) · Selector · fTMI/2 · Prescaler · fX · fTMI
Page 125 of the NEC PD78F9489 user manual — TMI61/TO61
Page 125 · click to enlarge
Page 125

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Timer 61 interrupt request signal

(in 24-bit event counter mode)

To timer 20 count clock

input signal in Figure 6-1

/INTP2/P32

INTTM61

P32

Figure 7-4. Block Diagram of Timer 61

F/F

8-bit compare register 61 (CR61)

8-bit H width compare register 61 (CRH61)

8-bit timer counter 61 (TM61)

TCE61 TCL612 TCL611 TCL610 TMD611 TMD610 TOE610

8-bit timer mode control register 61 (TMC61)

fTMI/22

fTMI/23

fX/24

TMI61/TO61

/INTP2/P32

Show 13 more labels / short text on this page
Match TO61/TMI61 · output latch PM32 · Reset · Selector · Internal bus · Clear · PPG mode · Decoder · Selector · fTMI/2 · fX · Prescaler · fTMI
Page 126 of the NEC PD78F9489 user manual — (3) 8-bit compare register 61 (CR61)
Page 126 · click to enlarge
Page 126

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-5. Block Diagram of Output Controller (Timer 60)

RMC60 NRZ60 TOE60

PM31 P31 output latch

TO60/INTP1/P31

F/F

(1) 8-bit compare register 50 (CR50)

This 8-bit register is used to continually compare the value set to CR50 with the count value in 8-bit timer

counter 50 (TM50) and to issue an interrupt request (INTTM50) when a match occurs. In PWM mode, this

register is used for high-level width setting.

CR50 is set with an 8-bit memory manipulation instruction.

RESET input makes this register undefined.

operating, a high level may be output for one clock cycle immediately after this rewrite

operation. If this waveform may cause problems in the application, either <1> stop the

timer when rewriting CR50, or <2> rewrite CR50 after TOE50 has been cleared.

2. If both edges have been selected as the valid edge of the count clock in PWM output

mode (TEG50 = 1), do not set CR50 to 00H, 01H, or FFH. Also, if the rising edge has

been selected as the valid edge (TEG50 = 0), do not set CR50 to 00H.

(2) 8-bit compare register 60 (CR60)

When connected to TM50 via a cascade connection and using as a 16-bit timer/event counter, the interrupt

request (INTTM60) occurs only when matches occur simultaneously between CR50 and TM50 and between

CR60 and TM60 (INTTM50 is not generated).

In carrier generator mode and PPG output mode, the low-level width of timer output is set by writing a value

to CR60.

CR60 is set with an 8-bit memory manipulation instruction.

RESET input makes this register undefined.

(3) 8-bit compare register 61 (CR61)

This 8-bit register is used to continually compare the value set to CR61 with the count value in 8-bit timer

counter 61 (TM61) and issue an interrupt request (INTTM61) when a match occurs. In PPG output mode,

this registered used for low-level width setting.

CR61 is set with an 8-bit memory manipulation instruction.

RESET input makes this register undefined.

Selector · Carrier clock · Carrier generator mode

Page 127 of the NEC PD78F9489 user manual — (d) PWM output mode (TM50)
Page 127 · click to enlarge
Page 127

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

(4) 8-bit H width compare registers 60 and 61 (CRH60, CRH61)

In carrier generator mode and PPG output mode, the high-level width of timer output is set by writing a value

to CRH6n. This 8-bit register is used to continually compare the value set to CRH6n with the count value in

8-bit timer counter 6n (TM6n) and to issue an interrupt request (INTTM6n) when a match occurs.

CRH6n is set with an 8-bit memory manipulation instruction.

RESET input makes this register undefined.

Remark n = 0, 1

(5) 8-bit timer counters 50, 60, and 61(TM50, TM60, TM61)

These are 8-bit registers that are used to count the count pulse.

TM50, TM60, and TM61 are read via an 8-bit memory manipulation instruction.

RESET input sets these register values to 00H.

TM50, TM60, and TM61 are cleared to 00H under the following conditions.

(a) Stand-alone mode

  • After reset
  • When TCEmn (bit 7 of 8-bit timer mode control register mn (TMCmn)) is cleared to 0
  • When a match occurs between TMmn and CRmn
  • When the TMmn count value overflows

Remark mn = 50, 60, 61

(b) Cascade connection mode (TM50 and TM60 are simultaneously cleared to 00H)

  • After reset
  • When the TCE60 flag is cleared to 0
  • When matches occur simultaneously between TM50 and CR50 and between TM60 and CR60
  • When the TM50 and TM60 count values overflow simultaneously

(c) Carrier generator (TM60) and PPG output mode (TM60 and TM61)

  • After reset
  • When the TCE6n flag is cleared to 0
  • When a match occurs between TM6n and CR6n
  • When a match occurs between TM6n and CRH6n
  • When the TM6n count value overflows

Remark n = 0, 1

(d) PWM output mode (TM50)

  • After reset
  • When the TCE50 flag is cleared to 0
  • When the TM50 count value overflows
Page 128 of the NEC PD78F9489 user manual — Figure 7-6. Format of 8-Bit Timer Mode Control Register 50 (1/2)
Page 128 · click to enlarge
Page 128

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

7.3 Control Registers for 8-Bit Timers 50, 60, and 61

8-bit timers 50, 60, and 61 are controlled by the following six registers.

  • 8-bit timer mode control register 50 (TMC50)
  • 8-bit timer mode control register 60 (TMC60)
  • Carrier generator output control register 60 (TCA60)
  • 8-bit timer mode control register 61 (TMC61)
  • Port mode register 3 (PM3)
  • Port 3

(1) 8-bit timer mode control register 50 (TMC50)

8-bit timer mode control register 50 (TMC50) is used to control the timer 50 count clock setting and the

operation mode setting.

TMC50 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Figure 7-6. Format of 8-Bit Timer Mode Control Register 50 (1/2)

Symbol 5 4 3 2 1 Address After reset R/W

NEC PD78F9489 — Figure 7-6. Format of 8-Bit Timer Mode Control Register 50 (1/2) diagram (page 128)
Fig. 31 · Figure 7-6. Format of 8-Bit Timer Mode Control Regis…

TMC50 TCE50 TEG50 TCL502 TCL501 TCL500 TMD501 TMD500 TOE50 FF4DH 00H R/W

TEG50 Selection of valid edge of TM50 count clock

0 Count at the rising edge of the count clock

1 Count at both edges of the count clock

TCL502 TCL501 TCL500 Selection of timer 50 count clock

1 0 1 Carrier clock (in carrier generator mode) or timer 60 output signal (in other than carrier generator mode)

TMD501 TMD500 TMD601 TMD600 Selection of operation mode for timer 50

0 0 × 0 Stand-alone mode (8-bit counter mode)

0 1 0 1 16-bit counter mode (cascade connection mode)

Page 129 of the NEC PD78F9489 user manual — (2) 8-bit timer mode control register 60 (TMC60)
Page 129 · click to enlarge
Page 129

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-6. Format of 8-Bit Timer Mode Control Register 50 (2/2)

Symbol 5 4 3 2 1 Address After reset R/W

TMC50 TCE50 TEG50 TCL502 TCL501 TCL500 TMD501 TMD500 TOE50 FF4DH 00H R/W

TOE50 Control of timer output

any setting for TCE50 is ignored.

2. Selection of both edges is valid only in PWM mode. In 8-bit counter mode or cascade connection

mode, even if TEG50 is set to 1, counting occurs at the rising edge.

3. The operation mode selection is set by a combination of the TMC50 and TMC60 registers.
4. Since timer 50 output is disabled in cascade connection mode, set TOE50 to 0.

clock.

2. To manipulate TMC50, follow the setting procedure below.

<1> Set the TM50 count operation to stop.

<2> Set the operation mode and count clock.

<3> The count operation starts.

Remarks 1. f XMain system clock oscillation frequency
2. f XT : Subsystem clock oscillation frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz or f XT = 32.768 kHz.
4. × : don’t care

(2) 8-bit timer mode control register 60 (TMC60)

8-bit timer mode control register 60 (TMC60) is used to control the timer 60 count clock setting and the

operation mode setting.

TMC60 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

0 Output disabled · 1 Output enabled

Page 130 of the NEC PD78F9489 user manual — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61
Page 130 · click to enlarge
Page 130

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-7. Format of 8-Bit Timer Mode Control Register 60

Symbol 6 5 4 3 2 1 Address After reset R/W

TMC60 TCE60 0 TCL602 TCL601 TCL600 TMD601 TMD600 TOE600 FF4EH 00H R/W

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 130)
Fig. 32

0 Clear TM60 count value and stop operation (the count value is also cleared for TM50 in cascade connection

1 Start count operation (the count operation is also started for TM50 in cascade connection mode)

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 130)
Fig. 33

TCL602 TCL601 TCL600 Selection of timer 60 count clock

0 0 1 fX/22 (1.25 MHz)

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 130)
Fig. 34

TMD501 TMD500 TMD601 TMD600 Selection of operation mode for timer 60

× 0 0 0 Stand-alone mode (8-bit counter mode)

0 1 0 1 16-bit counter mode (cascade connection mode)

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 130)
Fig. 35

any setting for TCE50 is ignored.

2. The operation mode selection is set by a combination of the TMC50 and TMC60 registers.

<1> Set the TM60 count operation to stop.

<2> Set the operation mode and count clock.

<3> The count operation starts.

Remarks 1. f XMain system clock oscillation frequency
2. f TMI : External input clock frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz.
4. × : don’t care
Page 131 of the NEC PD78F9489 user manual — Figure 7-8. Format of Carrier Generator Output Control Register 60
Page 131 · click to enlarge
Page 131

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

(3) Carrier generator output control register 60 (TCA60)

This register is used to set the timer output data in carrier generator mode.

TCA60 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Figure 7-8. Format of Carrier Generator Output Control Register 60

Symbol 7 6 5 4 3 Address After reset R/W

TCA60 RMC60 NRZB60 NRZ60 FF4FH 00H R/W

RMC60 Control of remote control output

0 When NRZ60 = 1, a carrier pulse is output to TO60/INTP1/P31 pin

(when NRZ60 = 0, a low level is output to TO60/INTP1/P31 pin)

1 When NRZ60 = 1, high-level signal is output to TO60/INTP1/P31 pin

(when NRZ60 = 0, a low level is output to TO60/INTP1/P31 pin)

NRZB60 This is the bit that stores the next data to be output to NRZ60. When a match signal occurs (for a match with

timer 50), the data is output to NRZ60.

NRZ60 No return zero data

0 Output low-level signal (carrier clock is stopped)

1 Output carrier pulse or high-level signal

NRZB60, input the data required by the program in advance.

2. When timer 60 output is disabled (TOE600 = 0), use of a 1-bit memory manipulation

instruction for TCA60 is disabled (only an 8-bit memory manipulation instruction can be

used).

3. When timer 60 output is enabled (TOE600 = 1), a write operation to NRZ is invalid.

However, while the timer 50 interrupt signal (INTTM50) is high level, the NRZB60 value is

immediately transferred to NRZ60 if TCA60 is rewritten. Rewrite TCA60 after waiting for

half a clock of the TM50 count clock during INTTM50 interrupt servicing.

Page 132 of the NEC PD78F9489 user manual — Figure 7-9. Format of 8-Bit Timer Mode Control Register 61
Page 132 · click to enlarge
Page 132

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

(4) 8-bit timer mode control register 61 (TMC61)

8-bit timer mode control register 61 (TMC61) is used to control the timer 61 count clock setting and the

operation mode setting.

TMC61 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Figure 7-9. Format of 8-Bit Timer Mode Control Register 61

Symbol 6 5 4 3 2 1 Address After reset R/W

TMC61 TCE61 0 TCL612 TCL611 TCL610 TMD611 TMD610 TOE610 FF41H 00H R/W

NEC PD78F9489 — Figure 7-9. Format of 8-Bit Timer Mode Control Register 61 diagram (page 132)
Fig. 36 · Figure 7-9. Format of 8-Bit Timer Mode Control Regis…
NEC PD78F9489 — Figure 7-9. Format of 8-Bit Timer Mode Control Register 61 diagram (page 132)
Fig. 37 · Figure 7-9. Format of 8-Bit Timer Mode Control Regis…

TCL612 TCL611 TCL610 Selection of timer 61 count clockNote

0 0 1 fX/24 (313 kHz)

NEC PD78F9489 — Figure 7-9. Format of 8-Bit Timer Mode Control Register 61 diagram (page 132)
Fig. 38 · Figure 7-9. Format of 8-Bit Timer Mode Control Regis…

TMD611 TMD610 Selection of operation mode for timer 61Note

NEC PD78F9489 — Figure 7-9. Format of 8-Bit Timer Mode Control Register 61 diagram (page 132)
Fig. 39 · Figure 7-9. Format of 8-Bit Timer Mode Control Regis…

be selected.

<1> Set the TM61 count operation to stop.

<2> Set the operation mode and count clock.

<3> The count operation starts.

Remarks 1. f XMain system clock oscillation frequency
2. f TMI : External input clock frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz.
Page 133 of the NEC PD78F9489 user manual — Figure 7-10. Format of Port Mode Register 3
Page 133 · click to enlarge
Page 133

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

(5) Port mode register 3 (PM3)

This register is used to set the I/O mode of port 3 in 1-bit units.

When using the P30/INTP0/TO50/TMI60 pin as a timer output (TO50), set PM30 and the P30 output latch to 0.

When used as a timer input (TMI60), set PM30 to 1.

When using the P31/INTP1/TO60 pin as a timer output (TO60), set PM31 and the P31 output latch to 0.

When using the P32/INTP2/TO61/TMI61 pin as a timer input (TMI61), set PM32 to 1. When used as a timer

output (TO61), set PM32 and the P32 output latch to 0.

PM3 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to FFH.

Figure 7-10. Format of Port Mode Register 3

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W

PM3 1 1 1 PM34 PM33 PM32 PM31 PM30 FF23H FFH R/W

PM3n I/O mode of P3n pin

(n = 0 to 2)

0 Output mode (output buffer is on)

1 Input mode (output buffer is off)

Page 134 of the NEC PD78F9489 user manual — (1) Operation as interval timer with 8-bit resolution
Page 134 · click to enlarge
Page 134

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

7.4 Operation of 8-Bit Timers 50, 60, and 61

7.4.1 Operation as 8-bit timer counter

Timer 50, timer 60, and timer 61 can be independently used as 8-bit timer counters.

The following modes can be used for the 8-bit timer counter.

  • Interval timer with 8-bit resolution
  • External event counter with 8-bit resolution (timer 60 and timer 61 only)
  • Square wave output with 8-bit resolution

(1) Operation as interval timer with 8-bit resolution

The interval timer with 8-bit resolution repeatedly generates an interrupt at a time interval specified by the

count value preset in 8-bit compare register nm (CRnm).

To operate 8-bit timer nm as an interval timer, settings must be made in the following sequence.

Disable operation of 8-bit timer counter nm (TMnm) (TCEnm = 0).

For timer 50, disable timer output of TO50 (TOE50 = 0).

For timer 60, disable timer output of TO60 (TOE600 = 0).

For timer 61, disable timer output of TO61 (TOE610 = 0).

Set a count value in CRnm.

Set the operation mode of timer nm to 8-bit timer counter mode

(see Figures 7-6, 7-7, and 7-9).

Set the count clock for timer nm (see Figures 7-6, 7-7, and 7-9).

Enable the operation of TMnm (TCEnm = 1).

When the count value of 8-bit timer counter nm (TMnm) matches the value set in CRnm, TMnm is cleared to

00H and continues counting. At the same time, an interrupt request signal (INTTMnm) is generated.

Tables 7-3 to 7-5 show the interval time, and Figures 7-11 to 7-16 show the timing of the interval timer

operation.

Remark nm = 50, 60, 61

Page 135 of the NEC PD78F9489 user manual — Table 7-5. Interval Time of Timer 61
Page 135 · click to enlarge
Page 135

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Table 7-3. Interval Time of Timer 50

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 135)
Fig. 40

TCL502 TCL501 TCL500 Minimum Interval Time Maximum Interval Time Resolution

0 0 0 1/fX (0.2 µs) 2 8/fX (51.2 µs) 1/fX (0.2 µs)

0 0 1 2 3/fX (1.6 µs) 2 11/fX (409.6 µs) 2 3/fX (1.6 µs)

0 1 0 2 7/fX (25.6 µs) 2 15/fX (6.55 ms) 2 7/fX (25.6 µs)

0 1 1 1/fXT (30.5 µs) 2 8/fXT (7.81 ms) 1/fXT (30.5 µs)

1 0 0 Input cycle of timer 60 match

1 0 1 Input cycle of timer 60 output Input cycle of timer 60 output

Remarks 1. f XMain system clock oscillation frequency
2. f XT : Subsystem clock oscillation frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz or f XT = 32.768 kHz.

Table 7-4. Interval Time of Timer 60

NEC PD78F9489 — Table 7-4. Interval Time of Timer 60 diagram (page 135)
Fig. 41 · Table 7-4. Interval Time of Timer 60

TCL602 TCL601 TCL600 Minimum Interval Time Maximum Interval Time Resolution

0 0 0 1/fX (0.2 µs) 2 8/fX (51.2 µs) 1/fX (0.2 µs)

0 0 1 2 2/fX (0.8 µs) 2 10/fX (204 µs) 2 2/fX (0.8 µs)

0 1 0 fTMI input cycle fTMI input cycle × 2

0 1 1 fTMI/2 input cycle fTMI/2 input cycle × 2

2 input cycle × 2 8 fTMI/2

3 input cycle × 2 8 fTMI/2

Remarks 1. f XMain system clock oscillation frequency
2. f TMI : External input clock frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz.

Table 7-5. Interval Time of Timer 61

NEC PD78F9489 — Table 7-5. Interval Time of Timer 61 diagram (page 135)
Fig. 42 · Table 7-5. Interval Time of Timer 61

TCL612 TCL611 TCL610 Minimum Interval Time Maximum Interval Time Resolution

0 0 0 1/fX (0.2 µs) 2 8/fX (51.2 µs) 1/fX (0.2 µs)

0 0 1 2 4/fX (3.2 µs) 2 12/fX (819 µs) 2 4/fX (3.2 µs)

0 1 0 fTMI input cycle fTMI input cycle × 2

0 1 1 fTMI/2 input cycle fTMI/2 input cycle × 2

2 input cycle × 2 8 fTMI/2

3 input cycle × 2 8 fTMI/2

Remarks 1. f XMain system clock oscillation frequency
2. f TMI : External input clock frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz.
Page 136 of the NEC PD78F9489 user manual — 00H
Page 136 · click to enlarge
Page 136

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-11. Timing of Interval Timer Operation with 8-Bit Resolution (Basic Operation)

TMnm N 00H 01H N 00H 01H N 00H 00H 01H 00H 01H

N

Interrupt acknowledgement Interrupt acknowledgement Interrupt acknowledgement

Interval time Interval time

Remarks 1. Interval time = (N + 1) × t: N = 00H to FFH

2. nm = 50, 60, 61

Figure 7-12. Timing of Interval Timer Operation with 8-Bit Resolution (When CRnm Is Set to 00H)

00H

Remark nm = 50, 60, 61

Show 16 more labels / short text on this page
t · Count clock · Clear Clear Clear · CRnm · TCEnm · Count start · Count stop · INTTMnm · TOnm · Count clock · TMnm 00H · CRnm · TCEnm · Count start · INTTMnm · TOnm
Page 137 of the NEC PD78F9489 user manual — N M
Page 137 · click to enlarge
Page 137

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-13. Timing of Interval Timer Operation with 8-Bit Resolution (When CRnm Is Set to FFH)

TMnm FFH 00H 01H 00H 01H 00H FFH 00H 01H FFH FFH 00H

FFH

Remark nm = 50, 60, 61

Figure 7-14. Timing of Interval Timer Operation with 8-Bit Resolution

(When CRnm Changes from N to M (N

TMnm N 00H 00H N 00H 01H 00H 01H M N M

N M

Interrupt acknowledgement Interrupt acknowledgement

Remark 00H ≤ N < M ≤ FFH

nm = 50, 60, 61

Show 15 more labels / short text on this page
Count clock · Clear Clear Clear · CRnm · TCEnm · Count start · INTTMnm · TOnm · Count clock · Clear Clear Clear · CRnm · TCEnm · Count start · INTTMnm · TOnm · CRnm overwritten
Page 138 of the NEC PD78F9489 user manual — 00H FFH M
Page 138 · click to enlarge
Page 138

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-15. Timing of Interval Timer Operation with 8-Bit Resolution

(When CRnm Changes from N to M (N > M))

TMnm 00H 00H 00H N − 1 N M N M

00H FFH M

N M

H

TMnm overflows because M < N

Remark 00H ≤ M < N ≤ FFH

nm = 50, 60, 61

Show 7 more labels / short text on this page
Count clock · Clear Clear Clear · CRnm · TCEnm · INTTMnm · TOnm · CRnm overwritten
Page 139 of the NEC PD78F9489 user manual — CR50
Page 139 · click to enlarge
Page 139

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-16. Timing of Interval Timer Operation with 8-Bit Resolution

(When Timer 60 Match Signal Is Selected for Timer 50 Count Clock)

Timer 60 count clock

TM60 N 00H M 00H 00H 01H M

00H M 00H

Clear

CR60

N M

TCE60

INTTM60

Input clock to timer 50 (timer 60 match signal)

TM50

00H 01H Y − 1 Y 00H Y 00H

CR50

Y

TCE50

INTTM50

TO60

TO50

Remark 00H ≤ N < M ≤ FFH

Y = 00H to FFH

Count start · Count start

Page 140 of the NEC PD78F9489 user manual — N
Page 140 · click to enlarge
Page 140

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

(2) Operation as external event counter with 8-bit resolution (timer 60 and timer 61 only)

The external event counter counts the number of external clock pulses input to the TMI6m pin by using 8-bit

timer counter 6m (TM6m).

To operate timer 6m as an external event counter, settings must be made in the following sequence.

Disable operation of 8-bit timer counter 6m (TM6m) (TCE6m = 0).

Disable timer output of TO6m (TOE6m0 = 0).

When using timer 60, set P30 to input mode (PM30 = 1).

When using timer 61, set P32 to input mode (PM32 = 1).

Select the external input clock for timer 6m (see Figures 7-7 and 7-9).

Set the operation mode of timer 6m to 8-bit timer counter mode (see Figures 7-7 and 7-9).

Set a count value in CR6m.

Enable the operation of TM6m (TCE6m = 1).

Each time the valid edge is input, the value of TM6m is incremented.

When the count value of TM6m matches the value set in CR6m, TM6m is cleared to 00H and continues

counting. At the same time, an interrupt request signal (INTTM6m) is generated.

Figure 7-17 shows the timing of the external event counter operation.

Remark m = 0, 1

Figure 7-17. Timing of Operation of External Event Counter with 8-Bit Resolution

00H 01H 02H 03H 04H 05H N − 1 N 00H 01H 02H 03H

N

Remark N = 00H to FFH

Show 5 more labels / short text on this page
TMI6m pin input · TM6m count value · CR6m · TCE6m · INTTM6m
Page 141 of the NEC PD78F9489 user manual — Table 7-6. Square-Wave Output Range of Timer 50
Page 141 · click to enlarge
Page 141

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

(3) Operation as square-wave output with 8-bit resolution

Square waves of any frequency can be output at an interval specified by the value preset in 8-bit compare

register nm (CRnm).

To operate timer nm for square-wave output, settings must be made in the following sequence.

When using timer 50, set P30 to output mode (PM30 = 0) and the P30 output latch to 0, respectively.

When using timer 60, set P31 to output mode (PM31 = 0) and the P31 output latch to 0, respectively.

When using timer 61, set P32 to output mode (PM32 = 0) and the P32 output latch to 0, respectively.

Disable operation of timer counter nm (TMnm) (TCEnm = 0).

Set a count clock for timer nm (see Figures 7-6, 7-7 and 7-9)

For timer 50, enable timer output of TO50 (TOE50 = 1).

For timer 60, enable timer output of TO60 (TOE600 = 1).

For timer 61, enable timer output of TO61 (TOE610 = 1).

Set a count value in CRnm.

Enable the operation of TMnm (TCEnm0 = 1).

When the count value of TMnm matches the value set in CRnm, the TOnm pin output will be inverted.

Through application of this mechanism, square waves of any frequency can be output. As soon as a match

occurs, TMnm is cleared to 00H and continues counting. At the same time, an interrupt request signal

(INTTMnm) is generated.

The square-wave output is cleared to 0 by setting TCEnm to 0.

Tables 7-6 to 7-8 show the square-wave output range, and Figure 7-18 shows the timing of square-wave

output.

Remark nm = 50, 60, 61

Table 7-6. Square-Wave Output Range of Timer 50

TCL502 TCL501 TCL500 Minimum Pulse Width Maximum Pulse Width Resolution

0 0 0 1/fX (0.2 µs) 2 8/fX (51.2 µs) 1/fX (0.2 µs)

0 0 1 2 3/fX (1.6 µs) 2 11/fX (409.6 µs) 2 3/fX (1.6 µs)

0 1 0 2 7/fX (25.6 µs) 2 15/fX (6.55 ms) 2 7/fX (25.6 µs)

0 1 1 1/fXT (30.5 µs) 2 8/fXT (7.81 ms) 1/fXT (30.5 µs)

1 0 0 Input cycle of timer 60 match

Input cycle of timer 60 match

Input cycle of timer 60 match

1 0 1 Input cycle of timer 60 output Input cycle of timer 60 output

Input cycle of timer 60 output

Remarks 1. f XMain system clock oscillation frequency
2. f XT : Subsystem clock oscillation frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz or f XT = 32.768 kHz.
Show 4 more labels / short text on this page
signal · signal × 2 · signal · × 2
Page 142 of the NEC PD78F9489 user manual — Figure 7-18. Timing of Square-Wave Output with 8-Bit Resolution
Page 142 · click to enlarge
Page 142

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Table 7-7. Square-Wave Output Range of Timer 60

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 142)
Fig. 43

TCL602 TCL601 TCL600 Minimum Pulse Width Maximum Pulse Width Resolution

0 0 0 1/fX (0.2 µs) 28/fX (51.2 µs) 1/fX (0.2 µs)

0 0 1 2 2/fX (0.8 µs) 210/fX (204 µs) 22/fX (0.8 µs)

0 1 0 fTMI input cycle fTMI input cycle × 2

0 1 1 fTMI/2 input cycle fTMI/2 input cycle × 2

2 input cycle × 2 8 fTMI/2

3 input cycle × 2 8 fTMI/2

Remarks 1. f XMain system clock oscillation frequency
2. f TMI : External input clock frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz.

Table 7-8. Square-Wave Output Range of Timer 61

NEC PD78F9489 — Table 7-8. Square-Wave Output Range of Timer 61 diagram (page 142)
Fig. 44 · Table 7-8. Square-Wave Output Range of Timer 61

TCL612 TCL611 TCL610 Minimum Pulse Width Maximum Pulse Width Resolution

0 0 0 1/fX (0.2 µs) 28/fX (51.2 µs) 1/fX (0.2 µs)

0 0 1 2 4/fX (3.2 µs) 212/fX (819 µs) 24/fX (3.2 µs)

0 1 0 fTMI input cycle fTMI input cycle × 2

0 1 1 fTMI/2 input cycle fTMI/2 input cycle × 2

2 input cycle × 2 8 fTMI/2

3 input cycle × 2 8 fTMI/2

Remarks 1. f XMain system clock oscillation frequency
2. f TMI : External input clock frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz.

Figure 7-18. Timing of Square-Wave Output with 8-Bit Resolution

NEC PD78F9489 — Figure 7-18. Timing of Square-Wave Output with 8-Bit Resolution diagram (page 142)
Fig. 45 · Figure 7-18. Timing of Square-Wave Output with 8-Bit…

TMnm N 00H 01H N 00H 01H N 00H 01H 00H 01H

Remark N = 00H to FFH

nm = 50, 60, 61

Show 5 more labels / short text on this page
Count clock · CRnm · TCEnm · INTTMnm · TOnmNote
Page 143 of the NEC PD78F9489 user manual — (1) Operation as interval timer with 16-bit resolution
Page 143 · click to enlarge
Page 143

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

7.4.2 Operation as 16-bit timer counter

Timer 50 and timer 60 can be used as a 16-bit timer counter using cascade connection. In this case, 8-bit timer

counter 50 (TM50) is the higher 8 bits and 8-bit timer counter 60 (TM60) is the lower 8 bits. 8-bit timer 60 controls

reset and clear.

The following modes can be used for the 16-bit timer counter.

  • Interval timer with 16-bit resolution
  • External event counter with 16-bit resolution
  • Square-wave output with 16-bit resolution

(1) Operation as interval timer with 16-bit resolution

The interval timer with 16-bit resolution repeatedly generates an interrupt at a time interval specified by the

count value preset in 8-bit compare register 50 (CR50) and 8-bit compare register 60 (CR60).

To operate as an interval timer with 16-bit resolution, settings must be made in the following sequence.

Disable operation of 8-bit timer counter 50 (TM50) and 8-bit timer counter 60 (TM60) (TCE50 = 0,

TCE60 = 0).

Disable timer output of TO60 (TOE600 = 0).

Set the count clock for timer 60 (see Figure 7-7).

Set the operation mode of timer 50 and timer 60 to 16-bit timer counter mode (see Figures 7-6 and 7-7).

Set a count value in CR50 and CR60.

Enable the operation of TM50 and TM60 (TCE60 = 1Note).

TCE50 is invalid).

When the count values of TM50 and TM60 match the values set in CR50 and CR60 respectively, both TM50 and

TM60 are simultaneously cleared to 00H and continue counting. At the same time, an interrupt request signal

(INTTM60) is generated (INTTM50 is not generated).

Table 7-9 shows interval time, and Figure 7-19 shows the timing of the interval timer operation.

2. In the 16-bit timer counter mode, TO50 cannot be used. Be sure to set TOE50 = 0 to disable

TO50 output.

Page 144 of the NEC PD78F9489 user manual — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61
Page 144 · click to enlarge
Page 144

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Table 7-9. Interval Time with 16-Bit Resolution

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 144)
Fig. 46

TCL602 TCL601 TCL600 Minimum Interval Time Maximum Interval Time Resolution

0 0 0 1/fX (0.2 µs) 2 16/fX (13.1 ms) 1/fX (0.2 µs)

0 0 1 2 2/fX (0.8 µs) 2 18/fX (52.4 ms) 2 2/fX (0.8 µs)

0 1 0 fTMI input cycle fTMI input cycle × 2

0 1 1 fTMI/2 input cycle fTMI/2 input cycle × 2

2 input cycle × 2 16 fTMI/2

3 input cycle × 2 16 fTMI/2

Remarks 1. f XMain system clock oscillation frequency
2. f TMI : External input clock frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz.
Page 145 of the NEC PD78F9489 user manual — N 00H
Page 145 · click to enlarge
Page 145

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 145)
Fig. 47

Not cleared because TM50 does not match Cleared because TM50 and TM60 match simultaneously

Figure 7-19. Timing of Interval Timer Operation with 16-Bit Resolution

Remark Interval time = (256X + N + 1) × t: X = 00H to FFH, N = 00H to FFH

N 00H

TO60

CR60

TCE60

INTTM60

Show 5 more labels / short text on this page
Count start · t · Count clock · TM60 count value · TM50 count pulse
Page 146 of the NEC PD78F9489 user manual — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61
Page 146 · click to enlarge
Page 146

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

(2) Operation as external event counter with 16-bit resolution

The external event counter counts the number of external clock pulses input to the TMI60 pin by TM50 and

TM60.

To operate as an external event counter with 16-bit resolution, settings must be made in the following

sequence.

Disable operation of TM50 and TM60 (TCE50 = 0, TCE60 = 0).

Disable timer output of TO60 (TOE600 = 0).

Set P31 to input mode (PM31 = 1).

Select the external input clock for timer 60 (see Figure 7-7).

Set the operation mode of timer 50 and timer 60 to 16-bit timer counter mode (see Figures 7-6 and 7-7).

Set a count value in CR50 and CR60.

Enable the operation of TM50 and TM60 (TCE60 = 1Note).

TCE50 is invalid).

Each time the valid edge is input, the values of TM50 and TM60 are incremented.

When the count values of TM50 and TM60 simultaneously match the values set in CR50 and CR60

respectively, both TM50 and TM60 are cleared to 00H and continue counting. At the same time, an interrupt

request signal (INTTM60) is generated (INTTM50 is not generated).

Figure 7-20 shows the timing of the external event counter operation.

Page 147 of the NEC PD78F9489 user manual — N 00H
Page 147 · click to enlarge
Page 147

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 147)
Fig. 48

Not cleared because TM50 does not match Cleared because TM50 and TM60 match simultaneously

Figure 7-20. Timing of External Event Counter Operation with 16-Bit Resolution

Remark X = 00H to FFH, N = 00H to FFH

N 00H

CR60

TCE60

INTTM60

Show 5 more labels / short text on this page
acknowledgement · Count start · TMI60 pin input · TM60 count value · TM50 count pulse
Page 148 of the NEC PD78F9489 user manual — Table 7-10. Square-Wave Output Range with 16-Bit Resolution
Page 148 · click to enlarge
Page 148

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

(3) Operation as square-wave output with 16-bit resolution

Square waves of any frequency can be output at an interval specified by the count value preset in CR50 and

CR60.

To operate as a square-wave output with 16-bit resolution, settings must be made in the following sequence.

Disable operation of TM50 and TM60 (TCE50 = 0, TCE60 = 0).

Disable output of TO50 and TO60 (TOE50 = 0, TOE600 = 0).

Set a count clock for timer 60. (see Figure 7-7)

Set P31 to the output mode (PM31 = 0), set the P31 output latch to 0, and set TO60 to output enable

(TOE600 = 1). (Use of TO50 is prohibited.)

Set the operation mode of timer 50 and timer 60 to 16-bit timer counter mode (see Figures 7-6 and 7-7).

Set count values in CR50 and CR60.

Enable the operation of TM60 (TCE60 = 1Note).

TCE50 is invalid).

When the count values of TM50 and TM60 simultaneously match the values set in CR50 and CR60

respectively, the TO60 pin output will be inverted. Through application of this mechanism, square waves of

any frequency can be output. As soon as a match occurs, TM50 and TM60 are cleared to 00H and continue

counting. At the same time, an interrupt request signal (INTTM60) is generated (INTTM50 is not generated).

The square-wave output is cleared to 0 by setting TCE60 to 0.

Table 7-10 shows the square-wave output range, and Figure 7-21 shows timing of square-wave output.

data.

2. In the 16-bit timer counter mode, TO50 cannot be used. Be sure to set TOE50 = 0 to

disable TO50 output.

Table 7-10. Square-Wave Output Range with 16-Bit Resolution

NEC PD78F9489 — Table 7-10. Square-Wave Output Range with 16-Bit Resolution diagram (page 148)
Fig. 49 · Table 7-10. Square-Wave Output Range with 16-Bit Res…

TCL602 TCL601 TCL600 Minimum Pulse Width Maximum Pulse Width Resolution

0 0 0 1/fX (0.2 µs) 216/fX (13.1 ms) 1/fX (0.2 µs)

0 0 1 2 2/fX (0.8 µs) 218/fX (52.4 ms) 2 2/fX (0.8 µs)

0 1 0 fTMI input cycle fTMI input cycle × 2

0 1 1 fTMI/2 input cycle fTMI/2 input cycle × 2

2 input cycle × 2 16 fTMI/2

3 input cycle × 2 16 fTMI/2

Remarks 1. f XMain system clock oscillation frequency
2. f TMI : External input clock frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz.
Page 149 of the NEC PD78F9489 user manual — N 00H
Page 149 · click to enlarge
Page 149

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 149)
Fig. 50

Not cleared because TM50 does not match Cleared because TM50 and TM60 match simultaneously

Figure 7-21. Timing of Square-Wave Output with 16-Bit Resolution

Remark X = 00H to FFH, N = 00H to FFH

N 00H

INTTM60

CR60

TCE60

Show 5 more labels / short text on this page
Count start · TM50 count pulse · TO60Note · Count clock · TM60 count value
Page 150 of the NEC PD78F9489 user manual — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61
Page 150 · click to enlarge
Page 150

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

7.4.3 Operation as carrier generator

An arbitrary carrier clock generated by TM60 can be output in the cycle set in TM50.

To operate timer 50 and timer 60 as carrier generators, settings must be made in the following sequence.

Disable operation of TM50 and TM60 (TCE50 = 0, TCE60 = 0).

Disable timer output of TO50 and TO60 (TOE50 = 0, TOE600 = 0).

Set count values in CR50, CR60, and CRH60.

Set the operation mode of timer 50 and timer 60 to carrier generator mode (see Figures 7-6 and 7-7).

Set the count clock for timer 50 and timer 60.

Set remote control output to carrier pulse (RMC60 (bit 2 of carrier generator output control register 60

(TCA60)) = 0).

Input the required value to NRZB60 (bit 1 of TCA60) by program.

Input a value to NRZ60 (bit 0 of TCA60) before it is reloaded from NRZB60.

Set P31 to the output mode (PM31 = 0), set the P31 output latch to 0, and set TO60 to output enable

(TOE600 = 1).

Enable the operation of TM50 and TM60 (TCE50 = 1, TCE60 = 1).

When the value of NRZB60 is transferred to NRZ60, input the value to be transferred to NRZ60 next time to

NRZB60 after INTTM50 falling.

Generate the desired carrier signal by repeating .

The operation of the carrier generator is as follows.

When the count value of TM60 matches the value set in CR60, an interrupt request signal (INTTM60) is

generated and output of timer 60 is inverted, which makes the compare register switch from CR60 to CRH60.

After that, when the count value of TM60 matches the value set in CRH60, an interrupt request signal

(INTTM60) is generated and output of timer 60 is inverted again, which makes the compare register switch

from CRH60 to CR60.

The carrier clock is generated by repeating and above.

When the count value of TM50 matches the value set in CR50, an interrupt request signal (INTTM50) is

generated. The rising edge of INTTM50 is the data reload signal of NRZB60 and is transferred to NRZ60.

When NRZ60 is 1, a carrier clock is output from the TO60 pin.

manipulation instruction. Be sure to use an 8-bit memory manipulation instruction.

2. When setting the carrier generator operation again after stopping it once, reset NRZB60

because the previous value is not retained. In this case also a 1-bit memory manipulation

instruction cannot be used while timer 60 output is disabled (TOE600 = 0). Be sure to use

an 8-bit memory manipulation instruction.

3. When timer 60 output is enabled (TOE600 = 1), a write operation to NRZ60 is invalid.

However, while the timer 50 interrupt signal (INTTM50) is high level, the NRZB60 value is

immediately transferred to NRZ60 if TCA60 is rewritten. Rewrite TCA60 after waiting for

half a clock of the TM50 count clock during INTTM50 interrupt servicing.

Figures 7-22 to 7-24 show the operation timing of the carrier generator.

Page 151 of the NEC PD78F9489 user manual — CR50
Page 151 · click to enlarge
Page 151

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-22. Timing of Carrier Generator Operation (When CR60 = N, CRH60 = M (M > N))

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 151)
Fig. 51

CR60

TCE60

INTTM60

NEC PD78F9489 — CR60 diagram (page 151)
Fig. 52

00H 01H L 00H 01H L 00H L 00H 01H TM50 count value

CR50

TCE50

INTTM50

NRZB60

NRZ60

TO60

Remark 00H ≤ N < M ≤ FFH, L = 00H to FFH

Show 5 more labels / short text on this page
TM60 count clock · TM60 count value · Carrier clock · TM50 count clock · Carrier clock
Page 152 of the NEC PD78F9489 user manual — CR50
Page 152 · click to enlarge
Page 152

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-23. Timing of Carrier Generator Operation (When CR60 = N, CRH60 = M (M

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 152)
Fig. 53

CR60

TCE60

INTTM60

NEC PD78F9489 — CR60 diagram (page 152)
Fig. 54

00H 01H L 00H 01H L 00H 01H L 00H L 00H 01H TM50 count value

CR50

TCE50

INTTM50

NRZB60

NRZ60

TO60

Remark 00H ≤ M < N ≤ FFH, L = 00H to FFH

Show 5 more labels / short text on this page
TM60 count clock · TM60 count value · Carrier clock · TM50 count clock · Carrier clock
Page 153 of the NEC PD78F9489 user manual — CR50
Page 153 · click to enlarge
Page 153

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-24. Timing of Carrier Generator Operation (When CR60 = CRH60 = N)

NEC PD78F9489 — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61 diagram (page 153)
Fig. 55

CR60

TCE60

INTTM60

NEC PD78F9489 — CR60 diagram (page 153)
Fig. 56

00H 01H L 00H 01H L 00H 01H L 00H L 00H 01H TM50 count value

CR50

TCE50

INTTM50

NRZB60

NRZ60

TO60

Remark N = 00H to FFH, L = 00H to FFH

Show 5 more labels / short text on this page
TM60 count clock · TM60 count value · Carrier clock · TM50 count clock · Carrier clock
Page 154 of the NEC PD78F9489 user manual — CR50
Page 154 · click to enlarge
Page 154

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

7.4.4 PWM output mode operation (timer 50)

In the PWM output mode, TO50 becomes high level when TM50 overflows, and TO50 becomes low level when

CR50 and TM50 match. It is thus possible to output a pulse with any duty ratio (free-running).

To operate timer 50 in the PWM output mode, settings must be made in the following sequence.

Disable operation of TM50 (TCE50 = 0).

Disable timer output of TO50 (TOE50 = 0).

Set a count value to CR50.

Set the operation mode of timer 50 to the PWM output mode (see Figure 7-6).

Set the count clock for timer 50.

Set P30 to the output mode (PM30 = 0) and the P30 output latch to 0 and enable timer output of TO50

(TOE50 = 1).

Enable the operation of TM50 (TCE50 = 1).

The operation in the PWM output mode is as follows.

When the count value of TM50 matches the value set in CR50, an interrupt request signal (INTTM50) is

generated and a low level is output by the TO50. The TM50 continues counting without being cleared.

TO50 outputs a high level when the TM50 overflows.

A pulse of any duty is output by repeating the above procedure. Figures 7-25 to 7-28 show the operation timing in

the PWM output mode.

Figure 7-25. Operation Timing in PWM Output Mode (When Rising Edge Is Selected)

TM50 N 00H 00H 00H 01H FFH N FFH N

CR50

N

TCE50

INTTM50

TO50

may not be performed normally.

Remark N = 00H to FFH

Count clock · Overflow Overflow Overflow · Count start

Page 155 of the NEC PD78F9489 user manual — 02H 01H
Page 155 · click to enlarge
Page 155

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-26. Operation Timing When Overwriting CR50 (When Rising Edge Is Selected)

(1) When setting CR50 > TM50 after overflow

TM50 N 00H 00H 00H 01H FFH M FFH 01H

CR50

N

M

TCE50

INTTM50

TO50

(2) When setting CR50 < TM50 after overflow

TM50 N 00H 00H 00H 01H FFH FFH 01H

02H 01H

CR50

N

01H

TCE50

INTTM50

TO50

CR50 overwrite Overflow occurs but no change takes place because TO50 is high level.

Remark N, M = 00H to FFH

Show 7 more labels / short text on this page
Count clock · Overflow Overflow Overflow · Count start · CR50 overwrite · Count clock · Overflow Overflow Overflow · Count start
Page 156 of the NEC PD78F9489 user manual — CR50
Page 156 · click to enlarge
Page 156

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-27. Operation Timing in PWM Output Mode (When Both Edges Are Selected)

(1) CR50 = Even number

TM50 2N 00H 00H 01H FFH FFH 2N 02H FEH 01H 02H FEH

CR50

2N

TCE50

INTTM50

TO50

(2) When CR50 = Odd number

TM50 2N + 1 00H 00H 01H FFH FFH 2N + 1 01H 01H 00H

CR50

2N + 1

TCE50

INTTM50

TO50

values, PWM output may not be performed normally.

Remark N = 00H to FFH

Show 6 more labels / short text on this page
Count clock · Overflow Overflow · Count start · Count clock · Overflow Overflow Overflow · Count start
Page 157 of the NEC PD78F9489 user manual — CR50
Page 157 · click to enlarge
Page 157

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-28. Operation Timing in PWM Output Mode

(When Both Edges Are Selected) (When CR50 Is Overwritten)

TM50 2N 00H 00H 00H 01H FFH FFH 01H 2N + 1 01H 02H FEH

CR50

2N

2N + 1

TCE50

INTTM50

TO50

Remark N = 00H to FFH

Show 4 more labels / short text on this page
Count clock · Overflow Overflow Overflow · Count start · CR50 overwrite
Page 158 of the NEC PD78F9489 user manual — CHAPTER 7 8-BIT TIMERS 50, 60, AND 61
Page 158 · click to enlarge
Page 158

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

7.4.5 PPG output mode operation (timer 60 and timer 61)

In the PPG output mode, a pulse of any duty ratio can be output by setting a low-level width using CR6m and a

high-level width using CRH6m.

To operate timer 6m in PPG output mode, settings must be made in the following sequence.

Disable operation of TM6m (TCE6m = 0).

Disable timer output of TO6m (TOE6m0 = 0).

Set count values in CR6m and CRH6m.

Set the operation mode of timer 6m to the PPG output mode (see Figures 7-7 and 7-9).

Set the count clock for timer 6m.

When using timer 60, set P31 to output mode (PM31 = 0) and the P31 output latch to 0, respectively.

When using timer 61, set P32 to output mode (PM32 = 0) and the P32 output latch to 0, respectively.

Enable timer output of TO6m (TOE6m0 = 1).

Enable the operation of TM6m (TCE6m = 1).

The operation in the PPG output mode is as follows.

When the count value of TM6m matches the value set in CR6m, an interrupt request signal (INTTM6m) is

generated and output of timer 6m is inverted, which makes the compare register switch from CR6m to

CRH6m.

A match between TM6m and CR6m clears the TM6m value to 00H and then counting starts again.

After that, when the count value of TM6m matches the value set in CRH6m, an interrupt request signal

(INTTM6m) is generated and output of timer 6m is inverted again, which makes the compare register switch

from CRH6m to CR6m.

A match between TM6m and CRH6m clears the TM6m value to 00H and then counting starts again.

A pulse of any duty ratio is output by repeating to above. Figures 7-29 and 7-30 show the operation timing

in the PPG output mode.

Remark m = 0, 1

Page 159 of the NEC PD78F9489 user manual — N
Page 159 · click to enlarge
Page 159

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

Figure 7-29. PPG Output Mode Timing (Basic Operation)

00H N 00H 01H

00H 00H 01H M 01H 01H M 00H

N

Clear

N

Remark N, M = 00H to FFH

m = 0, 1

Figure 7-30. PPG Output Mode Timing (When CR6m and CRH6m Are Overwritten)

00H N 00H 01H

Y 00H 00H X 00H X

N

M

Clear

N

Y M

Remark N, M, X, Y = 00H to FFH

m = 0, 1

Show 16 more labels / short text on this page
Count clock · TM6m count value · CR6m · CRH6m M · TCE6m · Count start · INTTM6m · TO6mNote · Count clock · TM6m count value · CR6m · CRH6m M · TCE6m · Count start · INTTM6m · TO6mNote
Page 160 of the NEC PD78F9489 user manual — Figure 7-32. Timing of Operation as External Event Counter (8-Bit Resolution)
Page 160 · click to enlarge
Page 160

CHAPTER 7 8-BIT TIMERS 50, 60, AND 61

7.5 Cautions on Using 8-Bit Timers 50, 60, and 61

(1) Error on starting timer

An error of up to 1.5 clocks is included in the time between the timer being started and a match signal being

generated. This is because the rising edge is detected and the counter is incremented if the timer is started

while the count clock is high (see Figure 7-31).

Figure 7-31. Case in Which Error of 1.5 Clocks (Max.) Occurs

8-bit timer counter n0 (TMn0)

TMn0 counter value 00H 01H 02H 03H

Delay A Delay B

An error of up to 1.5 clocks occurs if the timer is started when the selected clock is high and delay A > delay B.

Remark nm = 50, 60, 61

(2) Setting of 8-bit compare register nm

8-bit compare register nm (CRnm) can be set to 00H.

Therefore, one pulse can be counted when the 8-bit timer operates as an event counter.

Remark nm= 50, 60, 61

Figure 7-32. Timing of Operation as External Event Counter (8-Bit Resolution)

CR60 00H

00H 00H 00H 00H

Show 14 more labels / short text on this page
Delay A · Count · pulse · Selected clock · Clear signal · TCEn0 · Delay B · Selected clock · TCEn0 · Clear signal · Count pulse · TMI60 input · TM60 count value · Interrupt request flag
Page 161 of the NEC PD78F9489 user manual — INTWTI
Page 161 · click to enlarge
Page 161

CHAPTER 8 WATCH TIMER

8.1 Watch Timer Functions

The watch timer has the following functions.

  • Watch timer
  • Interval timer

The watch and interval timers can be used at the same time.

Figure 8-1 shows a block diagram of the watch timer.

Figure 8-1. Block Diagram of Watch Timer

fX/27

fW 24 fW 25 fW 26 fW 27 fW 28 fW 29

INTWTI

WTM7 WTS WTM6 WTM5 WTM4 WTM1 WTM0

Watch timer mode control register (WTM) Watch timer interrupt time selection register (WTIM)

Show 12 more labels / short text on this page
Clear · Selector · 9-bit prescaler · 5-bit counter INTWT · fW · Clear · Selector · fXT · Selector · 1/2 · fXT/2 · Internal bus
Page 162 of the NEC PD78F9489 user manual — Table 8-2. Configuration of Watch Timer
Page 162 · click to enlarge
Page 162

CHAPTER 8 WATCH TIMER

(1) Watch timer

An interrupt request (INTWT) occurs at an interval of 0.5 second when using either the 4.19 MHz main

system clock or the 32.768 kHz subsystem clock.

Also, an interrupt request (INTWT) occurs at an interval of 1.0 seconds when using the 32.768 kHz

subsystem clock via a setting in the watch timer interrupt time selection register (WTIM).

Instead, switch to the 32.768 kHz subsystem clock, and then create the 0.5-second interval.

(2) Interval timer

An interrupt request (INTWTI) occurs at preset intervals.

Table 8-1. Interval Time of Interval Timer

Interval Time At fX = 5.0 MHz At fX = 4.19 MHz At fXT = 32.768 kHz At fXT/2 = 16.384 kHz

24×1/fW 409.6 µs 488 µs 488 µs 976 µs

25×1/fW 819.2 µs 977 µs 977 µs 1.95 ms

26×1/fW 1.64 ms 1.95 ms 1.95 ms 3.90 ms

27×1/fW 3.28 ms 3.91 ms 3.91 ms 7.82 ms

28×1/fW 6.55 ms 7.81 ms 7.81 ms 15.6 ms

29×1/fW 13.1 ms 15.6 ms 15.6 ms 31.2 ms

Remarks 1. fW: Watch timer clock frequency (fX/27, fXT, or fXT/2)

2. f X : Main system clock oscillation frequency
3. f XT : Subsystem clock oscillation frequency

8.2 Configuration of Watch Timer

The watch timer includes the following hardware.

Table 8-2. Configuration of Watch Timer

Counter 5 bits × 1

Prescaler 9 bits × 1

Control registers Watch timer mode control register (WTM)

Watch timer interrupt time selection register (WTIM)

Item Configuration

Page 163 of the NEC PD78F9489 user manual — Figure 8-2. Format of Watch Timer Mode Control Register
Page 163 · click to enlarge
Page 163

CHAPTER 8 WATCH TIMER

8.3 Control Registers for Watch Timer

The watch timer is controlled by the following registers.

  • Watch timer mode control register (WTM)
  • Watch timer interrupt time selection register (WTIM)

(1) Watch timer mode control register (WTM)

This register is used to control the watch timer count clock, operation enable/disable status, prescaler interval

time, and the 5-bit counter operation.

WTM is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Figure 8-2. Format of Watch Timer Mode Control Register

Symbol 7 6 5 4 3 2 Address After reset R/W

WTM WTM7 WTM6 WTM5 WTM4 0 0 WTM1 WTM0 FF4AH 00H R/W

NEC PD78F9489 — Figure 8-2. Format of Watch Timer Mode Control Register diagram (page 163)
Fig. 57 · Figure 8-2. Format of Watch Timer Mode Control Regis…

WTM7 Selection of watch timer count clock (fW)

1 fXT (32.768 kHz) or fXT/2 (16.384 kHz)

NEC PD78F9489 — Figure 8-2. Format of Watch Timer Mode Control Register diagram (page 163)
Fig. 58 · Figure 8-2. Format of Watch Timer Mode Control Regis…
NEC PD78F9489 — Figure 8-2. Format of Watch Timer Mode Control Register diagram (page 163)
Fig. 59 · Figure 8-2. Format of Watch Timer Mode Control Regis…
NEC PD78F9489 — Figure 8-2. Format of Watch Timer Mode Control Register diagram (page 163)
Fig. 60 · Figure 8-2. Format of Watch Timer Mode Control Regis…

0 Operation stopped (prescaler and timer are both cleared)

Remarks 1. fW: Watch timer clock frequency (fX/27, fXT, or fXT/2)

2. f X : Main system clock oscillation frequency
3. f XT : Subsystem clock oscillation frequency
4. The parenthesized values apply to operation at f X = 5.0 MHz or f XT = 32.768 kHz.
Page 164 of the NEC PD78F9489 user manual — Figure 8-3. Format of Watch Timer Interrupt Time Selection Register
Page 164 · click to enlarge
Page 164

CHAPTER 8 WATCH TIMER

(2) Watch timer interrupt time selection register (WTIM)

This register is used to set the interrupt time by selecting either the source clock or the clock divided by 2 for

the subsystem clock to be input to watch timer.

WTIM is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Figure 8-3. Format of Watch Timer Interrupt Time Selection Register

Symbol 7 6 5 4 3 2 1 Address After reset R/W

WTIM 0 WTS FF4BH 00H R/W

WTS Selection of watch timer interrupt time

0 0.5 s (fXT)

1 1.0 s (fXT/2)

Remark f XTSubsystem clock oscillation frequency
Page 165 of the NEC PD78F9489 user manual — Table 8-3. Interval Time of Interval Timer
Page 165 · click to enlarge
Page 165

CHAPTER 8 WATCH TIMER

8.4 Watch Timer Operation

8.4.1 Operation as watch timer

The main system clock (4.19 MHz) or subsystem clock (32.768 kHz) is used to enable the watch timer to operate

at 0.5-second intervals.

Also, an interrupt request (INTWT) occurs at an interval of 1.0 seconds when using the 32.768 kHz subsystem

clock via a setting in the watch timer interrupt time selection register (WTIM).

The watch timer is used to generate an interrupt request at specified intervals.

By setting bits 0 and 1 (WTM0 and WTM1) of the watch timer mode control register (WTM) to 1, the watch timer

starts counting. By setting them to 0, the 5-bit counter is cleared and the watch timer stops counting.

It is possible to start the watch timer from zero seconds by clearing WTM1 to 0 when the interval timer and watch

timer operate at the same time. In this case, however, an error of up to 29 × 1/fW seconds may occur in the overflow

(INTWT) after the zero-second start of the watch timer because the 9-bit prescaler is not cleared to 0.

8.4.2 Operation as interval timer

The interval timer is used to repeatedly generate an interrupt request at the interval specified by a preset count

value.

The interval can be selected by bits 4 to 6 (WTM4 to WTM6) of the watch timer mode control register (WTM).

Table 8-3. Interval Time of Interval Timer

NEC PD78F9489 — Table 8-3. Interval Time of Interval Timer diagram (page 165)
Fig. 61 · Table 8-3. Interval Time of Interval Timer

WTM6 WTM5 WTM4 Interval Time At fX = 5.0 MHz At fX = 4.19 MHz At fXT = 32.768

0 0 0 2 4 × 1/fW 409.6 µs 488 µs 488 µs 976 µs

0 0 1 2 5 × 1/fW 819.2 µs 977 µs 977 µs 1.95 ms

0 1 0 2 6 × 1/fW 1.64 ms 1.95 ms 1.95 ms 3.90 ms

0 1 1 2 7 × 1/fW 3.28 ms 3.91 ms 3.91 ms 7.82 ms

1 0 0 2 8 × 1/fW 6.55 ms 7.81 ms 7.81 ms 15.6 ms

1 0 1 2 9 × 1/fW 13.1 ms 15.6 ms 15.6 ms 31.2 ms

Remarks 1. f XMain system clock oscillation frequency
2. f XT : Subsystem clock oscillation frequency
3. f W : Watch timer clock frequency
Page 166 of the NEC PD78F9489 user manual — T
Page 166 · click to enlarge
Page 166

CHAPTER 8 WATCH TIMER

Figure 8-4. Watch Timer/Interval Timer Operation Timing

0H

Count clock fW/29

Watch timer interrupt INTWT

Watch timer interrupt time (0.5 s) Watch timer interrupt time (0.5 s)

Interval timer interrupt INTWTI

T

(WTM0) of the watch timer mode control register (WTM) to 1, the interval until the first interrupt

request (INTWT) is generated after the register is set does not exactly match the watch timer

interrupt time (0.5 s). This is because there is a delay of one 9-bit pre-scaler output cycle until

the 5-bit counter starts counting. Subsequently, however, the INTWT signal is generated at the

specified intervals.

Remarks 1. f WWatch timer clock frequency
2. The parenthesized values apply to operation at f W = 32.768 kHz.

5-bit counter · Start Overflow Overflow · Interval time (T)

Page 167 of the NEC PD78F9489 user manual — Table 9-2. Interval Time
Page 167 · click to enlarge
Page 167

CHAPTER 9 WATCHDOG TIMER

9.1 Watchdog Timer Functions

The watchdog timer has the following functions.

  • Watchdog timer
  • Interval timer

register (WDTM).

(1) Watchdog timer

The watchdog timer is used to detect a program loop. When a program loop is detected, a non-maskable

interrupt or the RESET signal can be generated.

Table 9-1. Watchdog Timer Program Loop Detection Time

Program Loop Detection Time At fX = 5.0 MHz

2 11 × 1/fX 410 µs

2 13 × 1/fX 1.64 ms

2 15 × 1/fX 6.55 ms

2 17 × 1/fX 26.2 ms

f XMain system clock oscillation frequency

(2) Interval timer

The interval timer generates an interrupt at an arbitrary preset interval.

Table 9-2. Interval Time

Interval At fX = 5.0 MHz

2 11 × 1/fX 410 µs

2 13 × 1/fX 1.64 ms

2 15 × 1/fX 6.55 ms

2 17 × 1/fX 26.2 ms

f XMain system clock oscillation frequency
Page 168 of the NEC PD78F9489 user manual — WDCS2 WDCS1 WDCS0
Page 168 · click to enlarge
Page 168

CHAPTER 9 WATCHDOG TIMER

9.2 Watchdog Timer Configuration

The watchdog timer includes the following hardware.

Table 9-3. Configuration of Watchdog Timer

Control registers Watchdog timer clock selection register (WDCS)

Watchdog timer mode register (WDTM)

Figure 9-1. Block Diagram of Watchdog Timer

fX 24

WDTMK

fX 26 fX 28 fX 210

INTWDT Maskable interrupt request

WDTIF

RESET

INTWDT Non-maskable interrupt request

WDCS2 WDCS1 WDCS0

WDTM4 RUN WDTM3

Watchdog timer clock selection register

(WDCS) Watchdog timer mode register (WDTM)

Show 8 more labels / short text on this page
Item Configuration · Internal bus · Prescaler · Selector · 7-bit counter · Controller · Clear · Internal bus
Page 169 of the NEC PD78F9489 user manual — FF42H 00H R/W
Page 169 · click to enlarge
Page 169

CHAPTER 9 WATCHDOG TIMER

9.3 Watchdog Timer Control Registers

The watchdog timer is controlled by the following two registers.

  • Watchdog timer clock selection register (WDCS)
  • Watchdog timer mode register (WDTM)

(1) Watchdog timer clock selection register (WDCS)

This register sets the watchdog timer count clock.

WDCS is set with an 8-bit memory manipulation instruction.

RESET input sets WDCS to 00H.

Figure 9-2. Format of Watchdog Timer Clock Selection Register

7 6 5 4 Symbol Address After reset R/W

3 2 1 0

0 WDCS2 WDCS1 WDCS0 WDCS

FF42H 00H R/W

WDCS2

WDCS1

WDCS0

Watchdog timer count clock selection

fX/24

(312.5 kHz)

211/fX

fX/26

(78.1 kHz)

213/fX

(1.64 ms)

fX/28

(19.5 kHz)

215/fX

(6.55 ms)

fX/210

217/fX

(4.88 kHz)

(26.2 ms)

Setting prohibited Other than above

Remarks 1. f XMain system clock oscillation frequency
2. The parenthesized values apply to operation at f X = 5.0 MHz.

Interval · (410 s) · µ

Page 170 of the NEC PD78F9489 user manual — FFF9H 00H R/W
Page 170 · click to enlarge
Page 170

CHAPTER 9 WATCHDOG TIMER

(2) Watchdog timer mode register (WDTM)

This register sets the operation mode of the watchdog timer, and enables/disables counting of the watchdog

timer.

WDTM is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets WDTM to 00H.

Figure 9-3. Format of Watchdog Timer Mode Register

6 5 4 Symbol Address After reset R/W

3 2 1 0

RUN 0 0 WDTM4 WDTM3 0 0 0 WDTM

FFF9H 00H R/W

RUN

Watchdog timer operation selectionNote 1

Stop counting.

Clear counter and start counting.

WDTM4 Watchdog timer operation mode selectionNote 2 WDTM3

Interval timer mode (a maskable interrupt is generated upon overflow occurrence)Note 3

Watchdog timer mode 1 (a non-maskable interrupt is generated upon overflow occurrence)

Watchdog timer mode 2 (a reset operation is started upon overflow occurrence)

started, it cannot be stopped by any means other than RESET input.

2. Once WDTM3 and WDTM4 have been set (1), they cannot be cleared (0) by software.
3. The watchdog timer starts operation as an interval timer when RUN is set to 1.

to 0.8% shorter than the time set by the watchdog timer clock selection register (WDCS).

2. To set watchdog timer mode 1 or 2, set WDTM4 to 1 after confirming WDTIF (bit 0 of

interrupt request flag register 0 (IF0)) is set to 0. When watchdog timer mode 1 or 2 is

selected with WDTIF set to 1, a non-maskable interrupt is generated upon the

completion of rewriting WDTM4.

Operation stop

Page 171 of the NEC PD78F9489 user manual — Table 9-4. Watchdog Timer Program Loop Detection Time
Page 171 · click to enlarge
Page 171

CHAPTER 9 WATCHDOG TIMER

9.4 Watchdog Timer Operation

9.4.1 Operation as watchdog timer

The watchdog timer detects a program loop when bit 4 (WDTM4) of the watchdog timer mode register (WDTM) is

set to 1.

The count clock (program loop detection time interval) of the watchdog timer can be selected by bits 0 to 2

(WDCS0 to WDCS2) of watchdog timer clock selection register (WDCS). By setting bit 7 (RUN) of WDTM to 1, the

watchdog timer is started. Set RUN to 1 within the set program loop detection time interval after the watchdog timer

has been started. By setting RUN to 1, the watchdog timer can be cleared and start counting. If RUN is not set to 1,

and the program loop detection time is exceeded, a system reset signal or a non-maskable interrupt is generated,

depending on the value of bit 3 (WDTM3) of WDTM.

The watchdog timer continues operation in HALT mode, but stops in STOP mode. Therefore, first set RUN to 1 to

clear the watchdog timer before executing the STOP instruction.

2. When the subsystem clock is selected as the CPU clock, the watchdog timer count

operation is stopped. Even when the main system clock continues oscillating in this case,

watchdog timer count operation is stopped.

Table 9-4. Watchdog Timer Program Loop Detection Time

WDCS2 WDCS1 WDCS0 Program Loop Detection Time At fX = 5.0 MHz

0 0 0 2 11 × 1/fX 410 µs

0 1 0 2 13 × 1/fX 1.64 ms

1 0 0 2 15 × 1/fX 6.55 ms

1 1 0 2 17 × 1/fX 26.2 ms

f XMain system clock oscillation frequency
Page 172 of the NEC PD78F9489 user manual — Table 9-5. Interval Time of Interval Timer
Page 172 · click to enlarge
Page 172

CHAPTER 9 WATCHDOG TIMER

9.4.2 Operation as interval timer

When bits 4 and 3 (WDTM4, WDTM3) of the watchdog timer mode register (WDTM) are set to 0 and 1,

respectively, the watchdog timer operates as an interval timer that repeatedly generates an interrupt at intervals

specified by a preset count value.

Select a count clock (or interval) by setting bits 0 to 2 (WDCS0 to WDCS2) of the watchdog timer clock selection

register (WDCS). The watchdog timer starts operation as an interval timer when the RUN bit (bit 7 of WDTM) is set to

In interval timer mode, the interrupt mask flag (WDTMK) is valid, and a maskable interrupt (INTWDT) can be

generated. The priority of INTWDT is set as the highest of all the maskable interrupts.

The interval timer continues operation in HALT mode, but stops in STOP mode. Therefore, first set RUN to 1 to

clear the interval timer before executing the STOP instruction.

timer mode is not set unless the RESET signal is input.

2. The interval time may be up to 0.8% shorter than the set time when WDTM has just been set.

Table 9-5. Interval Time of Interval Timer

WDCS2 WDCS1 WDCS0 Interval At fX = 5.0 MHz

0 0 0 2 11 × 1/fX 410 µs

0 1 0 2 13 × 1/fX 1.64 ms

1 0 0 2 15 × 1/fX 6.55 ms

1 1 0 2 17 × 1/fX 26.2 ms

f XMain system clock oscillation frequency
Page 173 of the NEC PD78F9489 user manual — Table 10-1. Configuration of 10-Bit A/D Converter
Page 173 · click to enlarge
Page 173

CHAPTER 10 10-BIT A/D CONVERTER

10.1 10-Bit A/D Converter Functions

The 10-bit A/D converter is a 10-bit resolution converter used to convert analog inputs into digital signals. This

converter can control eight channels (ANI0 to ANI7) of analog inputs.

A/D conversion can only be started by software.

One of analog inputs ANI0 to ANI7 is selected for A/D conversion. A/D conversion is performed repeatedly, with

an interrupt request (INTAD0) being issued each time A/D conversion is complete.

10.2 10-Bit A/D Converter Configuration

The 10-bit A/D converter includes the following hardware.

Table 10-1. Configuration of 10-Bit A/D Converter

Analog inputs 8 channels (ANI0 to ANI7)

Registers Successive approximation register (SAR)

A/D conversion result register 0 (ADCRL0)

Control registers A/D converter mode register 0 (ADML0)

Analog input channel specification register 0 (ADS0)

Item Configuration

Page 174 of the NEC PD78F9489 user manual — FF14H, FF15H
Page 174 · click to enlarge
Page 174

CHAPTER 10 10-BIT A/D CONVERTER

Figure 10-1. Block Diagram of 10-Bit A/D Converter

AV DD

ANI1/P61 ANI0/P60

Sample & hold circuit

ANI2/P62

ANI3/P63

ANI5/P65 ANI4/P64

AV SS

ANI7/P67 ANI6/P66

V SS

Successive approximation register (SAR)

INTAD0

ADS00 ADS02 ADCE0

ADCS0 FR02 FR01 FR00 ADS01

Analog input channel specification register 0 (ADS0)

A/D converter mode register 0 (ADML0)

(1) Successive approximation register (SAR)

The SAR receives the result of comparing an analog input voltage and a voltage at a voltage tap (comparison

voltage), received from the series resistor string, starting from the most significant bit (MSB).

Upon receiving all the bits, down to the least significant bit (LSB), that is, upon the completion of A/D

conversion, the SAR sends its contents to A/D conversion result register 0 (ADCRL0).

(2) A/D conversion result register 0 (ADCRL0)

ADCRL0 is a 16-bit register that holds the result of A/D conversion. The lower 6 bits are fixed to 0. Each

time A/D conversion ends, the conversion result in the successive approximation register is loaded into

ADCRL0. The results are stored in ADCRL0 from the highest bit.

The higher 8 bits of the conversion result are stored in FF15H and the lower 2 bits of the conversion result

are stored in FF14H.

ADCRL0 can be read with a 16-bit memory manipulation instruction.

RESET input sets ADCRL0 to 0000H.

R/W

ADCRL0H (FF15H)

ADCRL0L (FF14H)

ADCRL0

R

0

FF14H, FF15H

0000H

Show 11 more labels / short text on this page
P-ch · Tap selector · Selector · Voltage comparator · Band -gap circuit · Controller · A/D conversion result · register 0 (ADCRL0) · Internal bus · Symbol · Address After reset
Page 175 of the NEC PD78F9489 user manual — (9) Band-gap circuit
Page 175 · click to enlarge
Page 175

CHAPTER 10 10-BIT A/D CONVERTER

(3) Sample & hold circuit

The sample & hold circuit samples consecutive analog inputs from the input circuit, one by one, and sends

them to the voltage comparator. The sampled analog input voltage is held during A/D conversion.

(4) Voltage comparator

The voltage comparator compares an analog input with the voltage output by the series resistor string.

(5) Series resistor string

The series resistor string is configured between AVDD and AVSS. It generates the reference voltages against

which analog inputs are compared.

(6) ANI0 to ANI7

The ANI0 to ANI7 pins are the 8-channel analog input pins for the A/D converter. They are used to receive

the analog signals for A/D conversion.

voltage greater than or equal to AVDD or less than or equal to AVSS (even if within the

absolute maximum rating) is applied to any of these pins, the conversion value for the

corresponding channel will be undefined. Furthermore, the conversion values for the other

channels may also be affected.

(7) AV SS pin

The AVSS pin is the ground potential pin for the A/D converter. This pin must be held at the same potential as

the VSS pin, even while the A/D converter is not being used.

(8) AV DD pin

The AVDD pin is the analog power supply pin for the A/D converter. This pin must be held at the same

potential as the VDD pin, even while the A/D converter is not being used.

(9) Band-gap circuit

The band-gap circuit activates the reference voltage inside the comparator prior to A/D conversion. Start

conversion after 14 µs have elapsed following the activation of the band-gap circuit.

Page 176 of the NEC PD78F9489 user manual — FR01
Page 176 · click to enlarge
Page 176

CHAPTER 10 10-BIT A/D CONVERTER

10.3 10-Bit A/D Converter Control Registers

The 10-bit A/D converter is controlled by the following two registers.

  • A/D converter mode register 0 (ADML0)
  • Analog input channel specification register 0 (ADS0)

(1) A/D converter mode register 0 (ADML0)

ADML0 specifies the conversion time for analog inputs. It also specifies whether to enable conversion.

ADML0 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets ADML0 to 00H.

Figure 10-2. Format of A/D Converter Mode Register 0

6 5 4 Symbol Address After reset R/W

3 2 1 0

ADCS0 0 FR02 FR01 FR00 0 0 ADCE0 ADML0

FF80H 00H R/W

A/D conversion control ADCS0

A/D conversion time selectionNote 1 FR02

FR01

FR00

(28.8 s)

(19.2 s)

(14.4 s)

(Setting prohibitedNote 2)

(Setting prohibitedNote 2)

Control of band-gap circuit ADCE0

14 µs.

2. When f X is 5.0 MHz, these bit combinations must not be used, as the A/D conversion time will fall

below 14 µs.

Show 17 more labels / short text on this page
Conversion disabled · Conversion enabled · 144/fX · µ · 120/fX · (24 s) · µ · 96/fX · µ · 72/fX · µ · 60/fX · 48/fX · Other than above · Setting prohibited · Band-gap circuit stopped · Band-gap circuit operating
Page 177 of the NEC PD78F9489 user manual — ADS01
Page 177 · click to enlarge
Page 177

CHAPTER 10 10-BIT A/D CONVERTER

If ADCE0 is not used, the conversion result immediately after the setting of bit 7 (ADCS0)

is undefined.

2. The conversion result may be undefined after ADCS0 has been cleared to 0. To read the

conversion result, perform the read operation during A/D conversion. If the conversion

result needs to be read after A/D conversion has been stopped, stop the A/D conversion

operation before the end of the next A/D conversion.

3. Always set bits 1, 2, and 6 to 0.
Remarks 1. f XMain system clock oscillation frequency
2. The parenthesized values apply to operation at f X = 5.0 MHz.

(2) Analog input channel specification register 0 (ADS0)

ADS0 specifies the port used to input the analog voltage to be converted to a digital signal.

ADS0 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input clears ADS0 to 00H.

Figure 10-3. Format of Analog Input Channel Specification Register 0

Symbol Address After reset R/W

7 6 5 4 3 2 1 0

0 ADS02 ADS01 ADS00 ADS0

FF84H 00H R/W

Analog input channel specification ADS02

ADS01

ADS00

ANI0

ANI1

ANI2

ANI3

ANI4

ANI5

ANI6

ANI7

Page 178 of the NEC PD78F9489 user manual — CHAPTER 10 10-BIT A/D CONVERTER
Page 178 · click to enlarge
Page 178

CHAPTER 10 10-BIT A/D CONVERTER

10.4 10-Bit A/D Converter Operation

10.4.1 Basic operation of 10-bit A/D converter

<1> Bit 0 of A/D converter mode register 0 (ADML0) is set (ADCE0 = 1).

<2> Select a channel for A/D conversion, using analog input channel specification register 0 (ADS0).

<3> When 14 µs or more have elapsed after ADCE0 was set, set bit 7 of ADML0 (ADCS0 = 1). The voltage

supplied to the selected analog input channel is sampled using the sample & hold circuit.

<4> After sampling continues for a certain period of time, the sample & hold circuit is put on hold to keep the

input analog voltage until A/D conversion is completed.

<5> Bit 9 of the successive approximation register (SAR) is set. The series resistor string tap voltage at the

tap selector is set to half of AVDD.

<6> The series resistor string tap voltage is compared with the analog input voltage using the voltage

comparator. If the analog input voltage is higher than half of AVDD, the MSB of SAR is left set. If it is

lower than half of AVDD, the MSB is reset.

<7> Bit 8 of SAR is set automatically, and comparison shifts to the next stage. The next tap voltage of the

series resistor string is selected according to bit 9, which reflects the previous comparison result, as

follows:

  • Bit 9 = 1: Three quarters of AV DD
  • Bit 9 = 0: One quarter of AV DD

The tap voltage is compared with the analog input voltage. Bit 8 is set or reset according to the result of

comparison.

  • Analog input voltage ≥ tap voltage: Bit 8 = 1
  • Analog input voltage < tap voltage: Bit 8 = 0

<8> Comparison is repeated until bit 0 of SAR is reached.

<9> When comparison is completed for all of the 10 bits, a significant digital result is left in SAR. This value is

sent to and latched in A/D conversion result register 0 (ADCRL0). At the same time, it is possible to

generate an A/D conversion end interrupt request (INTAD0).

If ADCE0 is not used, the conversion result immediately after the setting of bit 7 (ADCS0)

is undefined.

2. In standby mode, A/D converter operation is stopped.
Page 179 of the NEC PD78F9489 user manual — AV DD 1,024 AV DD 1,024
Page 179 · click to enlarge
Page 179

CHAPTER 10 10-BIT A/D CONVERTER

Figure 10-4. Basic Operation of 10-Bit A/D Converter

Conversion time Sampling time

SAR

ADCRL0

INTAD0

A/D conversion continues until bit 7 (ADCS0) of A/D converter mode register 0 (ADML0) is reset (0) by software.

If an attempt is made to write to ADML0 or analog input channel specification register 0 (ADS0) during A/D

conversion, the A/D conversion in progress is canceled. In this case, A/D conversion is restarted from the beginning,

if ADCS0 is set (1).

RESET input clears A/D conversion result register 0 (ADCRL0) to 0000H.

10.4.2 Input voltage and conversion result

The relationship between the analog input voltage at the analog input pins (ANI0 to ANI7) and the A/D conversion

result (A/D conversion result register 0 (ADCRL0)) is represented by:

V IN AV DD

ADCRL0 = INT ( × 1,024 + 0.5)

(ADCRL0 − 0.5) × ≤ VIN < (ADCRL0 + 0.5) ×

AV DD 1,024 AV DD 1,024

INT( )Function that returns the integer part of a parenthesized value
V INAnalog input voltage
AV DDSupply voltage for the A/D converter
ADCRL0Value in A/D conversion result register 0 (ADCRL0)

Figure 10-5 shows the relationship between the analog input voltage and the A/D conversion result.

Show 5 more labels / short text on this page
A/D converter operation · Sampling A/D conversion · Undefined Conversion result · Conversion result · or
Page 180 of the NEC PD78F9489 user manual — CHAPTER 10 10-BIT A/D CONVERTER
Page 180 · click to enlarge
Page 180

CHAPTER 10 10-BIT A/D CONVERTER

Figure 10-5. Relationship Between Analog Input Voltage and A/D Conversion Result

A/D conversion result (ADCRL0)

1 2,048 1 1,024 3 2,048 2 1,024 5 2,048 3 1,024 2,043 2,048 1,022 1,024 2,045 2,048 1,023 1,024 2,047 2,048 1

Show 4 more labels / short text on this page
1,023 · 1,022 · 1,021 · Input voltage/AVDD
Page 181 of the NEC PD78F9489 user manual — ADCRL0
Page 181 · click to enlarge
Page 181

CHAPTER 10 10-BIT A/D CONVERTER

10.4.3 Operation mode of 10-bit A/D converter

The A/D converter is initially in select mode. In this mode, analog input channel specification register 0 (ADS0) is

used to select an analog input channel from ANI0 to ANI7 for A/D conversion.

A/D conversion can be started only by software, that is, by setting A/D converter mode register 0 (ADML0).

The A/D conversion result is saved to A/D conversion result register 0 (ADCRL0). At the same time, an interrupt

request signal (INTAD0) is generated.

  • Software-started A/D conversion

Setting bit 7 (ADCS0) of A/D converter mode register 0 (ADML0) to 1 triggers A/D conversion for the voltage

applied to the analog input pin specified in analog input channel specification register 0 (ADS0).

Upon completion of A/D conversion, the conversion result is saved to A/D conversion result register 0 (ADCRL0).

At the same time, an interrupt request signal (INTAD0) is generated. Once A/D conversion is activated and

completed, another session of A/D conversion is started. A/D conversion is repeated until new data is written to

ADML0.

If data where ADCS0 is 1 is written to ADML0 again during A/D conversion, the A/D conversion in progress is

discontinued, and a new session of A/D conversion begins for the new data.

If data where ADCS0 is 0 is written to ADML0 again during A/D conversion, A/D conversion is stopped

immediately.

Figure 10-6. Software-Started A/D Conversion

Rewriting ADML0 ADCS0 = 1

Rewriting ADML0 ADCS0 = 1 ADCS0 = 0

ANIn ANIn ANIn ANIm ANIm

Conversion is discontinued; no conversion result is preserved.

ADCRL0

INTAD0

Remarks 1. n = 0 to 7

2. m = 0 to 7

A/D conversion · Stop · ANIn ANIn ANIm

Page 182 of the NEC PD78F9489 user manual — (4) Conversion result immediately after start of A/D conversion
Page 182 · click to enlarge
Page 182

CHAPTER 10 10-BIT A/D CONVERTER

10.5 Cautions Related to 10-Bit A/D Converter

(1) Current consumption in standby mode

In standby mode, the A/D converter stops operation. Clearing bit 7 (ADCS0) and bit 0 (ADCE0) of A/D

converter mode register 0 (ADML0) to 0 can reduce the current consumption.

Figure 10-7 shows how to reduce the current consumption in standby mode.

Figure 10-7. How to Reduce Current Consumption in Standby Mode

AV REF

ADCS0

V SS

0. Stopped 1: Operating

(2) Input range for pins ANI0 to ANI7

Be sure to keep the input voltage at ANI0 to ANI7 within the rating. If a voltage greater than or equal to AVDD

or less than or equal to AVSS (even within the absolute maximum ratings) is input into a conversion channel,

the conversion output of the channel becomes undefined, which may affect the conversion output of the other

channels.

(3) Conflict

<1> Conflict between writing to A/D conversion result register 0 (ADCRL0) at the end of conversion and

reading from ADCRL0 using instruction

Reading from ADCRL0 takes precedence. After reading, the new conversion result is written to ADCRL0.

<2> Conflict between writing to ADCRL0 at the end of conversion and writing to A/D converter mode register 0

(ADML0) or analog input channel specification register 0 (ADS0)

Writing to ADML0 or ADS0 takes precedence. ADCRL0 is not written to. No A/D conversion end

interrupt request signal (INTAD0) is generated.

(4) Conversion result immediately after start of A/D conversion

If the band-gap circuit is not used (ADCE0 = 0) or conversion is started before 14 µs has elapsed following

the setting of ADCE, only the first A/D conversion value immediately after A/D conversion has been started is

undefined. Poll the A/D conversion end interrupt request (INTAD0), drop the first conversion result and use

the second and subsequent conversion results. When 14 µs have elapsed following the activation of the

band-gap circuit (ADCE0 = 1), the first conversion value is normal.

P-ch · Series resistor string · Band-gap circuit ADCE0

Page 183 of the NEC PD78F9489 user manual — ADCRL0
Page 183 · click to enlarge
Page 183

CHAPTER 10 10-BIT A/D CONVERTER

(5) Timing of undefined A/D conversion result

The A/D conversion value may become undefined if the timing of the completion of A/D conversion and the

timing to stop the A/D conversion operation conflict. Therefore, read the A/D conversion result while the A/D

conversion operation is in progress. To read the A/D conversion result after the A/D conversion operation

has been stopped, stop the A/D conversion operation before the next conversion operation is completed.

Figures 10-8 and 10-9 show the timing at which the conversion result is read.

Figure 10-8. Conversion Result Read Timing (if Conversion Result Is Undefined)

End of A/D conversion End of A/D conversion

ADCRL0

Normal conversion result Undefined value

INTAD0

ADCS0

Normal conversion result is read. A/D conversion

stops.

is read.

Figure 10-9. Conversion Result Read Timing (if Conversion Result Is Normal)

End of A/D conversion

ADCRL0

INTAD0

ADCS0

result is read. A/D conversion stops.

Undefined value · Normal conversion result · Normal conversion

Page 184 of the NEC PD78F9489 user manual — (8) Input impedance of ANI0 to ANI7 pins
Page 184 · click to enlarge
Page 184

CHAPTER 10 10-BIT A/D CONVERTER

(6) Noise prevention

To maintain a resolution of 10 bits, watch for noise at the AVDD and ANI0 to ANI7 pins. The higher the output

impedance of the analog input source, the larger the effect by noise. To reduce noise, attach an external

capacitor to the relevant pins as shown in Figure 10-10.

Figure 10-10. Analog Input Pin Handling

If noise greater than or equal to AVDD or less than or equal to AVSS is likely to come to the ANI0 to ANI7 pins, clamp the voltage at the pin by attaching a diode with a small VF (0.3 V or lower).

V DD

AV DD

C = 100 to 1,000 pF

AV SS

V SS

(7) ANI0 to ANI7

The analog input pins (ANI0 to ANI7) are alternate-function pins. They are also used as port pins (P60 to

P67).

If any of ANI0 to ANI7 has been selected for A/D conversion, do not execute input instructions for the ports;

otherwise the conversion resolution may be reduced.

If a digital pulse is applied to a pin adjacent to the analog input pins during A/D conversion, coupling noise

may occur that prevents an A/D conversion result from being obtained as expected. Avoid applying a digital

pulse to pins adjacent to the analog input pins during A/D conversion.

(8) Input impedance of ANI0 to ANI7 pins

This A/D converter charges the internal sampling capacitor for about 1/10 of the conversion time, and

performs sampling.

Therefore at times other than sampling, only the leak current flows. During sampling, the current for charging

the capacitor also flows, so the input impedance fluctuates and has no meaning.

However, to ensure adequate sampling, it is recommend that the output impedance of the analog input

source be set to 10 kΩ or lower, or a capacitor of about 100 pF to the ANI0 to ANI7 pins (see to Figure 10-

10).

ANI0 to ANI7

Page 185 of the NEC PD78F9489 user manual — Figure 10-12. AV DD Pin Handling
Page 185 · click to enlarge
Page 185

CHAPTER 10 10-BIT A/D CONVERTER

(9) Interrupt request flag (ADIF0)

Changing the contents of A/D converter mode register 0 (ADML0) does not clear the interrupt request flag

(ADIF0).

If the analog input pins are changed during A/D conversion, therefore, the A/D conversion result and the

conversion end interrupt request flag may reflect the previous analog input immediately before rewriting

ADML0. In this case, ADIF0 may already be set if it is read-accessed immediately after ADML0 is rewritten,

even when A/D conversion has not been completed for the new analog input.

In addition, when A/D conversion is restarted, ADIF0 must be cleared beforehand.

Figure 10-11. A/D Conversion End Interrupt Request Generation Timing

Rewriting ADML0 (to begin conversion for ANIn)

Rewriting ADML0 (to begin conversion for ANIm)

ADIF0 has been set, but conversion for ANIm has not been completed.

ANIn ANIn ANIm ANIm

ADCRL0

ANIn ANIn ANIm ANIm

INTAD0

Remarks 1. n = 0 to 7

2. m = 0 to 7

(10) AV DD pin

The AVDD pin is used to supply power to the analog circuit. It is also used to supply power to the ANI0 to

ANI7 input circuit.

If your application is designed to be changed to backup power, the AVDD pin must be supplied with the same

voltage level as the VDD pin, as shown in Figure 10-12.

Figure 10-12. AV DD Pin Handling

V DD

AV DD

V SS

AV SS

(11) AV DD pin input impedance

A series resistor string of several ten of kΩ is connected between the AVDD and AVSS pins. Consequently, if

the output impedance of the reference voltage supply is high, the reference voltage supply will form a series

connection with the series resistor string, creating a large reference voltage differential.

A/D conversion · Main power supply · Backup capacitor

Page 186 of the NEC PD78F9489 user manual — Table 11-1. Configuration of Serial Interface 20
Page 186 · click to enlarge
Page 186

CHAPTER 11 SERIAL INTERFACE 20

11.1 Serial Interface 20 Functions

Serial interface 20 has the following three modes.

  • Operation stop mode
  • Asynchronous serial interface (UART) mode
  • 3-wire serial I/O mode

(1) Operation stop mode

This mode is used when serial transfer is not performed. Power consumption is minimized in this mode.

(2) Asynchronous serial interface (UART) mode

This mode is used to send and receive the one byte of data that follows a start bit. It supports full-duplex

communication.

Serial interface 20 contains a UART-dedicated baud rate generator, enabling communication over a wide

range of baud rates. It is also possible to define baud rates by dividing the frequency of the clock input to the

ASCK20 pin.

(3) 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 (SCK20) and two serial data

lines (SI20 and SO20).

As it supports simultaneous transmission and reception, 3-wire serial I/O mode requires less processing time

for data transmission than asynchronous serial interface mode.

Because, in 3-wire serial I/O mode, it is possible to select whether 8-bit data transmission begins with the

MSB or LSB, serial interface 20 can 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 useful for connecting peripheral I/O circuits and display controllers having

conventional synchronous serial interfaces, such as those of the 75XL, 78K, and 17K Series devices.

11.2 Serial Interface 20 Configuration

Serial interface 20 includes the following hardware.

Table 11-1. Configuration of Serial Interface 20

Registers Transmit shift register 20 (TXS20)

Receive shift register 20 (RXS20)

Receive buffer register 20 (RXB20)

Control registers Serial operation mode register 20 (CSIM20)

Asynchronous serial interface mode register 20 (ASIM20)

Asynchronous serial interface status register 20 (ASIS20)

Baud rate generator control register 20 (BRGC20)

Port mode register 2 (PM2)

Item Configuration · Port 2 (P2)

Page 187 of the NEC PD78F9489 user manual — (P21)
Page 187 · click to enlarge
Page 187

CHAPTER 11 SERIAL INTERFACE 20

NEC PD78F9489 — CHAPTER 11 SERIAL INTERFACE 20 diagram (page 187)
Fig. 62

CSIE20 DIR20 CSCK20 PE20 FE20 OVE20 TXE20 RXE20 PS201 PS200 CL20 SL20

Figure 11-1. Block Diagram of Serial Interface 20

(P21)

(P20)

SCK20/P20

/ASCK20

SI20/P22

SO20/P21

Show 10 more labels / short text on this page
Internal bus · Internal bus · Output latch · Output latch · register (PM21) · register (PM20) · Port mode · Port mode · /RxD20 · /TxD20
Page 188 of the NEC PD78F9489 user manual — TXE20
Page 188 · click to enlarge
Page 188

CHAPTER 11 SERIAL INTERFACE 20

ASCK20/SCK20/P20

TPS203 TPS202 TPS201 TPS200

fX/22

fX/23

fX/24

fX/25

fX/26

fX/27

fX/28

Baud rate generator control

Figure 11-2. Block Diagram of Baud Rate Generator 20

Clock for receive detection

TXE20

RXE20

CSIE20

Show 15 more labels / short text on this page
fX/2 · Internal bus · Selector · register 20 (BRGC20) · Transmit clock · counter (3 bits) · counter (3 bits) · Receive clock · 1/2 · Selector · 1/2 · Selector · Transmit shift clock · Receive shift clock · Receive detection
Page 189 of the NEC PD78F9489 user manual — (5) Receive controller
Page 189 · click to enlarge
Page 189

CHAPTER 11 SERIAL INTERFACE 20

(1) Transmit shift register 20 (TXS20)

TXS20 is a register in which transmit data is prepared. The transmit data is output from TXS20 bit-serially.

When the data length is seven bits, bits 0 to 6 of the data in TXS20 will be transmit data. Writing data to

TXS20 triggers transmission.

TXS20 can be written with an 8-bit memory manipulation instruction, but cannot be read.

RESET input sets TXS20 to FFH.

TXS20 and receive buffer register 20 (RXB20) are mapped at the same address, so any

attempt to read from TXS20 results in a value being read from RXB20.

(2) Receive shift register 20 (RXS20)

RXS20 is a register in which serial data, received at the RxD20 pin, is converted to parallel data. Once one

entire byte has been received, RXS20 feeds the receive data to receive buffer register 20 (RXB20).

RXS20 cannot be manipulated directly by a program.

(3) Receive buffer register 20 (RXB20)

RXB20 holds receive data. New receive data is transferred from receive shift register 20 (RXS20) at every 1-

byte data reception.

When the data length is seven bits, the receive data is sent to bits 0 to 6 of RXB20, in which the MSB is

always fixed to 0.

RXB20 can be read with an 8-bit memory manipulation instruction, but cannot be written.

RESET input makes RXB20 undefined.

attempt to write to RXB20 results in a value being written to TXS20.

(4) Transmit controller

The transmit controller controls transmission. For example, it adds start, parity, and stop bits to the data in

transmit shift register 20 (TXS20), according to the setting of asynchronous serial interface mode register 20

(ASIM20).

(5) Receive controller

The receive controller controls reception according to the setting of asynchronous serial interface mode

register 20 (ASIM20). It also checks for errors, such as parity errors, during reception. If an error is detected,

asynchronous serial interface status register 20 (ASIS20) is set according to the status of the error.

Page 190 of the NEC PD78F9489 user manual — DIR20
Page 190 · click to enlarge
Page 190

CHAPTER 11 SERIAL INTERFACE 20

11.3 Serial Interface 20 Control Registers

  • Serial interface 20 is controlled by the following six registers.
  • Serial operation mode register 20 (CSIM20)
  • Asynchronous serial interface mode register 20 (ASIM20)
  • Asynchronous serial interface status register 20 (ASIS20)
  • Baud rate generator control register 20 (BRGC20)
  • Port mode register 2 (PM2)
  • Port 2 (1) Serial operation mode register 20 (CSIM20) CSIM20 is used to make the settings related to 3-wire serial I/O mode. CSIM20 is set with a 1-bit or 8-bit memory manipulation instruction. RESET input sets CSIM20 to 00H.

Figure 11-3. Format of Serial Operation Mode Register 20

Symbol Address After reset R/W

6 5 4 3 2 1 0

CSIE20 DIR20 CSCK20 0 CSIM20

FF72H 00H R/W

CSIE20

3-wire serial I/O mode operation control

DIR20

MSB

LSB

CSCK20

3-wire serial I/O mode clock selection

External clock input to the SCK20 pin

Output of the dedicated baud rate generator Cautions 1. Bits 0 and 3 to 6 must be set to 0. 2. CSIM20 must be cleared to 00H if UART mode is selected. 3. When the external input clock is selected in 3-wire serial I/O mode, set input mode by setting bit 0 of port mode register 2 (PM2) to 1. 4. Switch operating modes after halting the serial transmit/receive operation.

Operation disabled · Operation enabled · First-bit specification

Page 191 of the NEC PD78F9489 user manual — SL20
Page 191 · click to enlarge
Page 191

CHAPTER 11 SERIAL INTERFACE 20

(2) Asynchronous serial interface mode register 20 (ASIM20)

ASIM20 is used to make the settings related to asynchronous serial interface mode.

ASIM20 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets ASIM20 to 00H.

Figure 11-4. Format of Asynchronous Serial Interface Mode Register 20

Symbol Address After reset R/W

5 4 3 2 1 0

TXE20 RXE20 PS201 PS200 CL20 SL20 0 0 ASIM20

FF70H 00H R/W

TXE20

RXE20

PS201

Parity bit specification PS200

Always add 0 parity at transmission. Parity check is not performed at reception (no parity error is generated).

Transmit data character length specification

SL20

Transmit data stop bit length

2. If 3-wire serial I/O mode is selected, ASIM20 must be set to 00H.
3. Switch operation modes after halting the serial transmission/reception operation.
Show 13 more labels / short text on this page
Transmit operation control · Transmit operation stopped · Transmit operation enabled · Receive operation control · Receive operation stopped · Receive operation enabled · No parity · Odd parity · Even parity · 7 bits · 8 bits · 1 bit · 2 bits
Page 192 of the NEC PD78F9489 user manual — CHAPTER 11 SERIAL INTERFACE 20
Page 192 · click to enlarge
Page 192

CHAPTER 11 SERIAL INTERFACE 20

Table 11-2. Serial Interface 20 Operation Mode Settings

(1) Operation stop mode

NEC PD78F9489 — CHAPTER 11 SERIAL INTERFACE 20 diagram (page 192)
Fig. 63

0 0 0 × × ×Note 1 ×Note 1 ×Note 1 ×Note 1 ×Note 1 ×Note 1 − − P22 P21 P20

1 0 ×Note 1 ×Note 1 0 1

0 1 0 0 0 1 × ×Note 1 ×Note 1

1 1 0 0 0 1 × 0 1

2. When only transmission is used, this pin can be used as P22 (CMOS I/O).
Remark ×don’t care
Page 193 of the NEC PD78F9489 user manual — OVE20
Page 193 · click to enlarge
Page 193

CHAPTER 11 SERIAL INTERFACE 20

(3) Asynchronous serial interface status register 20 (ASIS20) ASIS20 indicates the type of a reception error, if it occurs while asynchronous serial interface mode is set. ASIS20 is set with a 1-bit or 8-bit memory manipulation instruction. The contents of ASIS20 are undefined in 3-wire serial I/O mode. RESET input sets ASIS20 to 00H.

Figure 11-5. Format of Asynchronous Serial Interface Status Register 20

Symbol Address After reset R/W

7 6 5 4 3

0 PE20 FE20 OVE20 ASIS20

FF71H 00H R

PE20

No parity error occurred.

A parity error occurred (when the transmit parity and receive parity did not match).

FE20

No framing error occurred.

A framing error occurred (when stop bit was not detected).Note 1

OVE20

No overrun error occurred.

An overrun error occurredNote 2

(when the next receive operation was completed before the data was read from receive buffer register 20).

interface mode register 20 (ASIM20), the stop bit detection at reception is performed with 1 bit. 2. Be sure to read receive buffer register 20 (RXB20) when an overrun error occurs. If not, an overrun error will occur every time data is received.

Parity error flag · Framing error flag · Overrun error flag

Page 194 of the NEC PD78F9489 user manual — rate generator is disrupted and communications cannot be performed normally. Be
Page 194 · click to enlarge
Page 194

CHAPTER 11 SERIAL INTERFACE 20

(4) Baud rate generator control register 20 (BRGC20)

BRGC20 is used to specify the serial clock for serial interface 20.

BRGC20 is set with an 8-bit memory manipulation instruction.

RESET input sets BRGC20 to 00H.

Figure 11-6. Format of Baud Rate Generator Control Register 20

Symbol Address After reset R/W

7 6 5 4 3 2 1 0

TPS203 TPS202 TPS201 TPS200 BRGC20

FF73H 00H R/W

TPS203

TPS202

TPS201

TPS200

Selection of baud rate generator source clock

(2.5 MHz)

fX/22

(1.25 MHz)

fX/23

fX/24

fX/25

fX/26

(78.1 kHz)

fX/27

(39.1 kHz)

fX/28

(19.5 kHz)

External clock input to the ASCK20 pinNote

rate generator is disrupted and communications cannot be performed normally. Be

sure not to write to BRGC20 during a communication operation.

2. Be sure not to select n = 1 in UART mode when f X > 2.5 MHz because the baud rate will

exceed the rated range.

3. When the external input clock is selected, set input mode by setting bit 0 of port mode

register 2 (PM2) to 1.

Remarks 1. f XMain system clock oscillation frequency
2. n: Values determined by the settings of TPS200 to TPS203 (1 ≤ n ≤ 8)
3. The parenthesized values apply to operation at f X = 5.0 MHz.
Show 8 more labels / short text on this page
n · fX/2 · (625 kHz) · (313 kHz) · (156 kHz) · − · Other than above · Setting prohibited
Page 195 of the NEC PD78F9489 user manual — Table 11-3. Example of Relationship Between System Clock and Baud Rate
Page 195 · click to enlarge
Page 195

CHAPTER 11 SERIAL INTERFACE 20

The baud rate transmit/receive clock to be generated is either a divided system clock signal, or a signal

obtained by dividing the clock input to the ASCK20 pin.

(a) Generation of UART baud rate transmit/receive clock form system clock

The transmit/receive clock is generated by dividing the system clock. The baud rate of a clock generated

from the system clock is estimated by using the following expression.

[Baud rate] = [bps]

fX 2n + 1 × 8

f XMain system clock oscillation frequency

n: Values in Figure 11-6, determined by the values of TPS200 to TPS203 (2 ≤ n ≤ 8)

Table 11-3. Example of Relationship Between System Clock and Baud Rate

NEC PD78F9489 — Table 11-3. Example of Relationship Between System Clock and Baud Rate diagram (page 195)
Fig. 64 · Table 11-3. Example of Relationship Between System C…

Error (%) Baud Rate (bps) n BRGC20 Set Value

fX = 5.0 MHz fX = 4.9152 MHz

rated range.

Page 196 of the NEC PD78F9489 user manual — (c) Generation of serial clock from system clock in 3-wire serial I/O
Page 196 · click to enlarge
Page 196

CHAPTER 11 SERIAL INTERFACE 20

(b) Generation of UART baud rate transmit/receive clock from external clock input to ASCK20 pin

The transmit/receive clock is generated by dividing the clock input from the ASCK20 pin. The baud rate

of a clock generated from the clock input to the ASCK20 pin is estimated by using the following

expression.

[Baud rate] = [bps]

f ASCKFrequency of clock input to the ASCK20 pin

Table 11-4. Relationship Between ASCK20 Pin Input Frequency

and Baud Rate (When BRGC20 Is Set to 80H)

Baud Rate (bps) ASCK20 Pin Input Frequency (kHz)

150 2.4

300 4.8

600 9.6

1,200 19.2

2,400 38.4

4,800 76.8

9,600 153.6

19,200 307.2

31,250 500.0

38,400 614.4

(c) Generation of serial clock from system clock in 3-wire serial I/O

The serial clock is generated by dividing the system clock. The frequency of the serial clock can be

obtained by the following expression. If the serial clock is externally input to the SCK20 pin, it is

unnecessary to set BRGC20.

fX 2n+1

Serial clock frequency = [Hz]

f XMain system clock oscillation frequency

n: Values in Figure 11-6 determined by the settings of TPS200 to TPS203 (1 ≤ n ≤ 8)

fASCK

Page 197 of the NEC PD78F9489 user manual — FF72H 00H R/W
Page 197 · click to enlarge
Page 197

CHAPTER 11 SERIAL INTERFACE 20

11.4 Serial Interface 20 Operation

Serial interface 20 provides the following three modes.

  • Operation stop mode
  • Asynchronous serial interface (UART) mode
  • 3-wire serial I/O mode

11.4.1 Operation stop mode

In operation stop mode, serial transfer is not executed, thereby reducing the power consumption. The

P20/SCK20/ASCK20, P21/SO20/TxD20, and P22/SI20/RxD20 pins can be used as normal I/O ports.

(1) Register setting

Operation stop mode is set by serial operation mode register 20 (CSIM20) and asynchronous serial interface

mode register 20 (ASIM20).

(a) Serial operation mode register 20 (CSIM20)

CSIM20 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input clears CSIM20 to 00H.

6 5 4 Symbol Address After reset R/W

3 2 1 0

CSIE20 DIR20 CSCK20 0 CSIM20

FF72H 00H R/W

CSIE20

Operation control in 3-wire serial I/O mode

Operation disabled · Operation enabled

Page 198 of the NEC PD78F9489 user manual — FF70H 00H R/W
Page 198 · click to enlarge
Page 198

CHAPTER 11 SERIAL INTERFACE 20

(b) Asynchronous serial interface mode register 20 (ASIM20)

ASIM20 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets ASIM20 to 00H.

5 4 Symbol Address After reset R/W

3 2 1 0

TXE20 RXE20 PS201 PS200 CL20 SL20 0 0 ASIM20

FF70H 00H R/W

TXE20

RXE20

Show 6 more labels / short text on this page
Transmit operation control · Transmit operation stopped · Transmit operation enabled · Receive operation control · Receive operation stopped · Receive operation enabled
Page 199 of the NEC PD78F9489 user manual — DIR20
Page 199 · click to enlarge
Page 199

CHAPTER 11 SERIAL INTERFACE 20

11.4.2 Asynchronous serial interface (UART) mode

In this mode, the one-byte data following the start bit is transmitted/received, enabling full-duplex communication.

This device incorporates a UART-dedicated baud rate generator that enables communications at the desired baud

rate. In addition, the baud rate can also be defined by dividing the clock input to the ASCK20 pin.

The UART-dedicated baud rate generator also can output the 31.25 Kbps baud rate that complies with the MIDI

standard.

(1) Register setting

UART mode is set by serial operation mode register 20 (CSIM20), asynchronous serial interface mode

register 20 (ASIM20), asynchronous serial interface status register 20 (ASIS20), baud rate generator control

register 20 (BRGC20), port mode register 2 (PM2), and port 2 (P2).

(a) Serial operation mode register 20 (CSIM20)

CSIM20 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets CSIM20 to 00H.

Set CSIM20 to 00H when UART mode is selected.

Symbol Address After reset R/W

6 5 4 3 2 1 0

CSIE20 DIR20 CSCK20 0 CSIM20

FF72H 00H R/W

CSIE20

3-wire serial I/O mode operation control

DIR20

MSB

LSB

CSCK20

3-wire serial I/O mode clock selection

External clock input to the SCK20 pin

Output of the dedicated baud rate generator

2. Switch operation modes after halting the serial transmission/reception operation.

Operation disabled · Operation enabled · First-bit specification

Page 200 of the NEC PD78F9489 user manual — SL20
Page 200 · click to enlarge
Page 200

CHAPTER 11 SERIAL INTERFACE 20

(b) Asynchronous serial interface mode register 20 (ASIM20)

ASIM20 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets ASIM20 to 00H.

5 4 Symbol Address After reset R/W

3 2 1 0

TXE20 RXE20 PS201 PS200 CL20 SL20 0 0 ASIM20

FF70H 00H R/W

TXE20

RXE20

PS201 Parity bit specification PS200

Always add 0 parity at transmission. Parity check is not performed at reception (no parity error is generated).

SL20

Transmit data stop bit length specification

2. Switch operation modes after halting the serial transmission/reception operation.
Show 14 more labels / short text on this page
Transmit operation control · Transmit operation stopped · Transmit operation enabled · Receive operation control · Receive operation stopped · Receive operation enabled · No parity · Odd parity · Even parity · Character length specification · 7 bits · 8 bits · 1 bit · 2 bits
Page 201 of the NEC PD78F9489 user manual — FE20
Page 201 · click to enlarge
Page 201

CHAPTER 11 SERIAL INTERFACE 20

(c) Asynchronous serial interface status register 20 (ASIS20)

ASIS20 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets ASIS20 to 00H.

7 6 5 4 Symbol Address After reset R/W

3

0 PE20 FE20 OVE20 ASIS20

FF71H 00H R

PE20

No parity error occurred

A parity error occurred (when the transmit parity and receive parity did not match)

FE20

No framing error occurred

A framing error occurred (when stop bit was not detected)Note 1

Overrun error flag OVE20

No overrun error occurred

An overrun error occurredNote 2

(when the next receive operation was completed before data was read from reception buffer register 20)

interface mode register 20 (ASIM20), the stop bit detection at reception is performed with 1 bit.

2. Be sure to read receive buffer register 20 (RXB20) when an overrun error occurs. If not, an

overrun error will occur every time data is received.

Parity error flag · Framing error flag

Page 202 of the NEC PD78F9489 user manual — (i) Generation of baud rate transmit/receive clock from system clock
Page 202 · click to enlarge
Page 202

CHAPTER 11 SERIAL INTERFACE 20

(d) Baud rate generator control register 20 (BRGC20)

BRGC20 is set with an 8-bit memory manipulation instruction.

RESET input sets BRGC20 to 00H.

7 6 5 4 Symbol Address After reset R/W

3 2 1 0

TPS203 TPS202 TPS201 TPS200 BRGC20

FF73H 00H R/W

TPS203

TPS202

TPS201

TPS200

Selection of baud rate generator source clock

(2.5 MHz)

fX/22

(1.25 MHz)

fX/23

fX/24

fX/25

fX/26

(78.1 kHz)

fX/27

(39.1 kHz)

fX/28

(19.5 kHz)

External clock input to ASCK20 pinNote

rate generator is disrupted and communications cannot be performed normally. Be

sure not to write to BRGC20 during a communication operation.

2. Be sure not to select n = 1 during operation at f X > 2.5 MHz because the resulting

baud rate exceeds the rated range.

3. When the external input clock is selected, set input mode by setting bit 0 of port

mode register 2 (PM2) to 1.

Remarks 1. f XMain system clock oscillation frequency
2. n: Values determined by the settings of TPS200 to TPS203 (1 ≤ n ≤ 8)
3. The parenthesized values apply to operation at f X = 5.0 MHz.

The baud rate transmit/receive clock to be generated is either a divided system clock signal, or a signal

obtained by dividing the clock input to the ASCK20 pin.

(i) Generation of baud rate transmit/receive clock from system clock

The transmit/receive clock is generated by dividing the system clock. The baud rate of a clock

generated from the system clock is estimated by using the following expression.

fX 2n + 1 × 8

[Baud rate] = [bps]

f XMain system clock oscillation frequency

n: Values in the above table determined by the settings of TPS200 to TPS203 (2 ≤ n ≤ 8)

Show 8 more labels / short text on this page
n · fX/2 · (625 kHz) · (313 kHz) · (156 kHz) · − · Other than above · Setting prohibited
Page 203 of the NEC PD78F9489 user manual — Table 11-6. Relationship Between ASCK20 Pin Input Frequency
Page 203 · click to enlarge
Page 203

CHAPTER 11 SERIAL INTERFACE 20

Table 11-5. Example of Relationship Between System Clock and Baud Rate

NEC PD78F9489 — CHAPTER 11 SERIAL INTERFACE 20 diagram (page 203)
Fig. 65

Error (%) Baud Rate (bps) n BRGC20 Set Value

fX = 5.0 MHz fX = 4.9152 MHz

rated range.

(ii) Generation of baud rate transmit/receive clock from external clock input to ASCK20 pin

The transmit/receive clock is generated by dividing the clock input from the ASCK20 pin. The baud

rate of a clock generated from the clock input to the ASCK20 pin is estimated by using the following

expression.

[Baud rate] = [bps]

f ASCKFrequency of clock input to ASCK20 pin

Table 11-6. Relationship Between ASCK20 Pin Input Frequency

and Baud Rate (When BRGC20 Is Set to 80H)

NEC PD78F9489 — Table 11-6. Relationship Between ASCK20 Pin Input Frequency diagram (page 203)
Fig. 66 · Table 11-6. Relationship Between ASCK20 Pin Input Fr…

fASCK

Page 204 of the NEC PD78F9489 user manual — Figure 11-7. Format of Asynchronous Serial Interface Transmit/Receive Data
Page 204 · click to enlarge
Page 204

CHAPTER 11 SERIAL INTERFACE 20

(2) Communication operation

(a) Data format

The transmit/receive data format is as shown in Figure 11-7. One data frame consists of a start bit,

character bits, parity bit, and stop bit(s).

The specification of character bit length in one data frame, parity selection, and specification of stop bit

length is carried out using asynchronous serial interface mode register 20 (ASIM20).

Figure 11-7. Format of Asynchronous Serial Interface Transmit/Receive Data

bit Stop bit Start

D0 D1 D2 D3 D4 D5 D6 D7 Parity

  • Start bits ................... 1 bit
  • Character bits............ 7 bits/8 bits
  • Parity bits .................. Even parity/odd parity/0 parity/no parity
  • Stop bits.................... 1 bit/2 bits

When 7 bits are selected as the number of character bits, only the lower 7 bits (bits 0 to 6) are valid; in

transmission the most significant bit (bit 7) is ignored, and in reception the most significant bit (bit 7) is

always “0”.

The serial transfer rate is selected by baud rate generator control register 20 (BRGC20).

If a serial data receive error occurs, the receive error contents can be determined by reading the status

of asynchronous serial interface status register 20 (ASIS20).

One data frame · bit

Page 205 of the NEC PD78F9489 user manual — (iv) No parity
Page 205 · click to enlarge
Page 205

CHAPTER 11 SERIAL INTERFACE 20

(b) Parity types and operation

The parity bit is used to detect a bit error in the communication data. Normally, the same kind of parity

bit is used on the transmitting side and the receiving side. With even parity and odd parity, a one-bit (odd

number) error can be detected. With 0 parity and no parity, an error cannot be detected.

(i) Even parity

  • At transmission

The parity bit is determined so that the number of bits with a value of “1” in the transmit data

including the parity bit is even. The parity bit value should be as follows.

The number of bits with a value of “1” is an odd number in transmit data: 1

The number of bits with a value of “1” is an even number in transmit data: 0

  • At reception

The number of bits with a value of “1” in the receive data including parity bit is counted, and if the

number is odd, a parity error occurs.

(ii) Odd parity

  • At transmission

Opposite to even parity, the parity bit is determined so that the number of bits with a value of “1” in

the transmit data including parity bit is odd. The parity bit value should be as follows.

The number of bits with a value of “1” is an odd number in transmit data: 0

The number of bits with a value of “1” is an even number in transmit data: 1

  • At reception

The number of bits with a value of “1” in the receive data including parity bit is counted, and if the

number is even, a parity error occurs.

(iii) 0 parity

When transmitting, the parity bit is set to “0” irrespective of the transmit data.

At reception, a parity bit check is not performed. Therefore, a parity error does not occur,

irrespective of whether the parity bit is set to “0” or “1”.

(iv) No parity

A parity bit is not added to the transmit data. At reception, data is received assuming that there is no

parity bit. Since there is no parity bit, a parity error does not occur.

Page 206 of the NEC PD78F9489 user manual — transmission completion interrupt (INTST20) or the interrupt request flag (STIF20) set
Page 206 · click to enlarge
Page 206

CHAPTER 11 SERIAL INTERFACE 20

(c) Transmission

A transmit operation is started by writing transmit data to transmit shift register 20 (TXS20). The start bit,

parity bit, and stop bit(s) are added automatically.

When the transmit operation starts, the data in TXS20 is shifted out, and when TXS20 is empty, a

transmission completion interrupt (INTST20) is generated.

Figure 11-8. Asynchronous Serial Interface Transmission Completion Interrupt Timing

(a) Stop bit length: 1

STOP Parity D7 D6 D2 D1 D0

START

INTST20

(b) Stop bit length: 2

STOP Parity D7 D6 D2 D1 D0

START

INTST20

transmit operation. If the ASIM20 register is rewritten during transmission, subsequent

transmission may not be able to be performed (the normal state is restored by RESET

input).

It is possible to determine whether transmission is in progress by software by using a

transmission completion interrupt (INTST20) or the interrupt request flag (STIF20) set

by INTST20.

TxD20 (output) · TxD20 (output)

Page 207 of the NEC PD78F9489 user manual — START
Page 207 · click to enlarge
Page 207

CHAPTER 11 SERIAL INTERFACE 20

(d) Reception

When bit 6 (RXE20) of asynchronous serial interface mode register 20 (ASIM20) is set (1), a receive

operation is enabled and sampling of the RxD20 pin input is performed.

RxD20 pin input sampling is performed using the serial clock specified by BRGC20.

When the RxD20 pin input becomes low, the 3-bit counter starts counting, and when half the time

determined by the specified baud rate has passed, the data sampling start timing signal is output. If the

RxD20 pin input sampled again as a result of this start timing signal is low, it is identified as a start bit,

the 3-bit counter is initialized and starts counting, and data sampling is performed. When character data,

a parity bit, and one stop bit are detected after the start bit, reception of one frame of data ends.

When one frame of data has been received, the receive data in the shift register is transferred to receive

buffer register 20 (RXB20), and a reception completion interrupt (INTSR20) is generated.

If an error occurs, the receive data in which the error occurred is still transferred to RXB20, and INTSR20

is generated.

If the RXE20 bit is reset (0) during the receive operation, the receive operation is stopped immediately.

In this case, the contents of RXB20 and asynchronous serial interface status register 20 (ASIS20) are

not changed, and INTSR20 is not generated.

Figure 11-9. Asynchronous Serial Interface Reception Completion Interrupt Timing

STOP Parity D7 D6 D2 D1 D0

START

INTSR20

RXB20 is not read, an overrun error will occur when the next data is received, and the

receive error state will continue indefinitely.

RxD20 (input)

Page 208 of the NEC PD78F9489 user manual — START
Page 208 · click to enlarge
Page 208

CHAPTER 11 SERIAL INTERFACE 20

(e) Receive errors

The following three errors may occur during a receive operation: a parity error, framing error, and

overrun error. After data reception, an error flag is set in asynchronous serial interface status register 20

(ASIS20). Receive error causes are shown in Table 11-7.

It is possible to determine what kind of error occurred during reception by reading the contents of ASIS20

in the reception error interrupt servicing (see Table 11-7 and Figure 11-10).

The contents of ASIS20 are reset (0) by reading receive buffer register 20 (RXB20) or receiving the next

data (if there is an error in the next data, the corresponding error flag is set).

Table 11-7. Receive Error Causes

Receive Errors Receive Errors Value of ASIS20

Parity error Parity at transmission and reception do not match 04H

Framing error Stop bit not detected 02H

Overrun error Reception of next data is completed before data is read from receive buffer

01H

Figure 11-10. Receive Error Timing

(a) Parity error occurrence

STOP Parity D7 D6 D2 D1 D0

START

INTSR20

(b) Framing error or overrun error occurrence

STOP Parity D7 D6 D2 D1 D0

START

INTSR20

20 (RXB20) or receiving the next data. To ascertain the error contents, read ASIS20

before reading RXB20.

2. Be sure to read receive buffer register 20 (RXB20) even if a receive error occurs. If

RXB20 is not read, an overrun error will occur when the next data is received, and

the receive error state will continue indefinitely.

register · RxD20 (input) · RxD20 (input)

Page 209 of the NEC PD78F9489 user manual — CHAPTER 11 SERIAL INTERFACE 20
Page 209 · click to enlarge
Page 209

CHAPTER 11 SERIAL INTERFACE 20

(f) Reading receive data

When the reception completion interrupt (INTSR20) occurs, receive data can be read by reading the

value of receive buffer register 20 (RXB20).

To read the receive data stored in receive buffer register 20 (RXB20), read while reception is enabled

(RXE20 = 1).

Remark However, if it is necessary to read receive data after reception has stopped (RXE20 = 0), read

using either of the following methods.

(a) Read after setting RXE20 = 0 after waiting for one cycle or more of the source clock

selected by BRGC20.

(b) Read after bit 2 (DIR20) of serial operation mode register 20 (CSIM20) is set (1).

Program example of (a) (BRGC20 = 00H (source clock = fx/2)) INTREX: ;

CLR1 RXE20 ;Reception stopped

MOV A, RXB20 ;Read receive data

Program example of (b) INTRXE;<Reception completion interrupt routine>

SET1 CSIM20.2 ;DIR20 flag is set to LSB first

CLR1 RXE20 ;Reception stopped

MOV A, RXB20 ;Read receive data

NOP ;2 clocks

Page 210 of the NEC PD78F9489 user manual — RXB20
Page 210 · click to enlarge
Page 210

CHAPTER 11 SERIAL INTERFACE 20

(3) Cautions related to UART mode

(a) When bit 7 (TXE20) of asynchronous serial interface mode register 20 (ASIM20) is cleared during

transmission, be sure to set transmit shift register 20 (TXS20) to FFH, then set TXE20 to 1 before

executing the next transmission.

(b) When bit 6 (RXE20) of asynchronous serial interface mode register 20 (ASIM20) is cleared during

reception, receive buffer register 20 (RXB20) and the receive completion interrupt (INTSR20) are as

follows.

RXB20

INTSR20

When RXE20 is set to 0 at the time indicated by <1>, RXB20 holds the previous data and INTSR20 is not

generated.

When RXE20 is set to 0 at the time indicated by <2>, RXB20 renews the data and INTSR20 is not generated.

When RXE20 is set to 0 at the time indicated by <3>, RXB20 renews the data and INTSR20 is generated.

Parity RxD20 pin · <3> <1> · <2>

Page 211 of the NEC PD78F9489 user manual — DIR20
Page 211 · click to enlarge
Page 211

CHAPTER 11 SERIAL INTERFACE 20

11.4.3 3-wire serial I/O mode

The 3-wire serial I/O mode is useful for connection of peripheral I/Os and display controllers, etc., which

incorporate a conventional clocked serial interface, such as the 75XL Series, 78K Series, and 17K Series.

Communication is performed using three lines: a serial clock (SCK20), serial output (SO20), and serial input

(SI20).

(1) Register setting

3-wire serial I/O mode settings are performed using serial operation mode register 20 (CSIM20),

asynchronous serial interface mode register 20 (ASIM20), baud rate generator control register 20 (BRGC20),

port mode register 2 (PM2), and port 2 (P2).

(a) Serial operation mode register 20 (CSIM20)

CSIM20 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets CSIM20 to 00H.

Symbol Address After reset R/W

6 5 4 3 2 1 0

CSIE20 DIR20 CSCK20 0 CSIM20

FF72H 00H R/W

CSIE20

3-wire serial I/O mode operation control

DIR20

MSB

LSB

CSCK20

3-wire serial I/O mode clock selection

External clock input to the SCK20 pin

Output of the dedicated baud rate generator

2. When the external input clock is selected, set input mode by setting bit 0 of port

mode register 2 (PM2) to 1.

3. Switch operation modes after halting the serial transmission/reception operation.

Operation disabled · Operation enabled · First-bit specification

Page 212 of the NEC PD78F9489 user manual — SL20
Page 212 · click to enlarge
Page 212

CHAPTER 11 SERIAL INTERFACE 20

(b) Asynchronous serial interface mode register 20 (ASIM20)

ASIM20 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets ASIM20 to 00H.

When 3-wire serial I/O mode is selected, ASIM20 must be set to 00H.

5 4 Symbol Address After reset R/W

3 2 1 0

TXE20 RXE20 PS201 PS200 CL20 SL20 0 0 ASIM20

FF70H 00H R/W

TXE20

RXE20

PS201 Parity bit specification PS200

Always add 0 parity at transmission. Parity check is not performed at reception (no parity error occurs).

Transmit data character length specification

SL20

Transmit data stop bit length specification

2. Switch operation modes after halting the serial transmission/reception operation.
Show 13 more labels / short text on this page
Transmit operation control · Transmit operation stopped · Transmit operation enabled · Receive operation control · Receive operation stopped · Receive operation enabled · No parity · Odd parity · Even parity · 7 bits · 8 bits · 1 bit · 2 bits
Page 213 of the NEC PD78F9489 user manual — FF73H 00H R/W
Page 213 · click to enlarge
Page 213

CHAPTER 11 SERIAL INTERFACE 20

(c) Baud rate generator control register 20 (BRGC20)

BRGC20 is set with an 8-bit memory manipulation instruction.

RESET input sets BRGC20 to 00H.

7 6 5 4 Symbol Address After reset R/W

3 2 1 0

TPS203 TPS202 TPS201 TPS200 BRGC20

FF73H 00H R/W

TPS203

TPS202

TPS201

TPS200

Selection of baud rate generator source clock

(2.5 MHz)

fX/22

(1.25 MHz)

fX/23

fX/24

fX/25

fX/26

(78.1 kHz)

fX/27

(39.1 kHz)

fX/28

(19.5 kHz)

output is disrupted and communications cannot be performed normally. Be sure not to

write to BRGC20 during a communication operation.

Remarks 1. f XMain system clock oscillation frequency
2. n: Values determined by the settings of TPS200 to TPS203 (1 ≤ n ≤ 8)
3. The parenthesized values apply to operation at f X = 5.0 MHz.

If the internal clock is used as the serial clock for 3-wire serial I/O mode, set bits TPS200 to TPS203 to

set the frequency of the serial clock. To obtain the frequency to be set, use the following expression.

When an external clock is used, setting BRGC20 is not necessary.

fX 2n + 1

Serial clock frequency = [Hz]

f XMain system clock oscillation frequency

n: Values in the above table determined by the settings of TPS200 to TPS203 (1 ≤ n ≤ 8)

Show 7 more labels / short text on this page
n · fX/2 · (625 kHz) · (313 kHz) · (156 kHz) · Other than above · Setting prohibited
Page 214 of the NEC PD78F9489 user manual — DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
Page 214 · click to enlarge
Page 214

CHAPTER 11 SERIAL INTERFACE 20

(2) Communication operation

In 3-wire serial I/O mode, data transmission/reception is performed in 8-bit units. Data is transmitted/

received bit by bit in synchronization with the serial clock.

Transmit shift register 20 (TXS20/SIO20) and receive shift register 20 (RXS20) shift operations are

performed in synchronization with the fall of the serial clock (SCK20). Then transmit data is held in the SO20

latch and output from the SO20 pin. Also, receive data input to the SI20 pin is latched in receive buffer

register 20 (RXB20/SIO20) on the rise of SCK20.

At the end of an 8-bit transfer, the operation of TXS20/SIO20 and RXS20 stops automatically, and the

interrupt request signal (INTCSI20) is generated.

Figure 11-11. 3-Wire Serial I/O Mode Timing (1/2)

(i) Master operation timing (CSCK20=0)

SIO20

SCK20

1 2 3 4 5 6 7 8

DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0

SI20

DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0

INTCSI20

write · SO20 Note

Page 215 of the NEC PD78F9489 user manual — (3) Transfer start
Page 215 · click to enlarge
Page 215

CHAPTER 11 SERIAL INTERFACE 20

Figure 11-11. 3-Wire Serial I/O Mode Timing (2/2)

(ii) Slave operation timing (CSCK20=1)

SIO20

SCK20

1 2 3 4 5 6 7 8

SI20

DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0

DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0

INTCSI20

(3) Transfer start

Serial transfer is started by setting transfer data to transmit shift register 20 (TXS20/SIO20) when the

following two conditions are satisfied.

  • Bit 7 (CSIE20) of serial operation mode register 20 (CSIM20) = 1
  • Internal serial clock is stopped or SCK20 is high after 8-bit serial transfer.

Termination of 8-bit transfer stops the serial transfer automatically and generates the interrupt request signal

(INTCSI20).

write

Page 216 of the NEC PD78F9489 user manual — (3) 3-wire serial mode with automatic transmit/receive function (MSB/LSB-first switchable)
Page 216 · click to enlarge
Page 216

CHAPTER 12 SERIAL INTERFACE 1A0

12.1 Function of Serial Interface 1A0

Serial interface 1A0 has the following three modes.

  • Operation stop mode
  • 3-wire serial I/O mode
  • 3-wire serial I/O mode with automatic transmit/receive function

(1) Operation stop mode

This mode is used when serial transfer will not be performed. It enables a reduction in power consumption.

(2) 3-wire serial I/O mode (MSB/LSB-first switchable)

This mode is used to transfer 8-bit data using three lines: a serial clock line (SCK10) and two serial data lines

(SI10 and SO10).

Because this mode supports simultaneous transmission and reception, 3-wire serial I/O mode requires less

processing time for data transfer.

Also, when using 3-wire serial I/O mode, it is possible to select whether 8-bit data transfer will start with the

MSB or LSB, so any device can be connected regardless of whether that device is designed for MSB-first or

LSB-first transfers.

3-wire serial I/O mode is useful for connecting peripheral I/O circuits and display controllers with conventional

clocked serial interfaces, such as those found in the 75XL Series, 78K Series, and 17K Series.

(3) 3-wire serial mode with automatic transmit/receive function (MSB/LSB-first switchable)

This mode has an automatic transmit/receive function in addition to the functions in (2) above.

The automatic transmit/receive function is used to transmit/receive data with a maximum of 16 bytes. This

function enables the hardware to transmit/receive data to/from the OSD (On Screen Display) device and a

device with an on-chip display controller/driver independently of the CPU, thus alleviating the software load.

Page 217 of the NEC PD78F9489 user manual — Figure 12-1. Block Diagram of Serial Interface 1A0
Page 217 · click to enlarge
Page 217

CHAPTER 12 SERIAL INTERFACE 1A0

12.2 Configuration of Serial Interface 1A0

Serial interface 1A0 includes the following hardware.

Table 12-1. Configuration of Serial Interface 1A0

NEC PD78F9489 — Table 12-1. Configuration of Serial Interface 1A0 diagram (page 217)
Fig. 67 · Table 12-1. Configuration of Serial Interface 1A0

Figure 12-1. Block Diagram of Serial Interface 1A0

NEC PD78F9489 — Figure 12-1. Block Diagram of Serial Interface 1A0 diagram (page 217)
Fig. 68 · Figure 12-1. Block Diagram of Serial Interface 1A0

/22 fX /23 fX /24 fX SCK10/

Page 218 of the NEC PD78F9489 user manual — (3) Serial clock counter
Page 218 · click to enlarge
Page 218

CHAPTER 12 SERIAL INTERFACE 1A0

(1) Serial I/O shift register 1A0 (SIO1A0)

This is an 8-bit register used to carry out parallel/serial conversion and to carry out serial

transmission/reception (shift operation) in synchronization with the serial clock.

SIO1A0 is set with an 8-bit memory manipulation instruction.

When the value in bit 7 (CSIE10) of serial operation mode register 1A0 (CSIM1A0) is 1, writing data to

SIO1A0 starts a serial operation.

During transmission, data written to SIO1A0 is output to the serial output (SO10). During reception, data is

read from the serial input (SI10) to SIO1A0.

RESET input sets SIO1A0 to 00H.

(2) Automatic data transmit/receive address pointer 0 (ADTP0)

This register stores value of (transmit data byte − 1) while the automatic transmit/receive function is activated.

As data is transferred/received, it is automatically decremented.

ADTP0 is set via an 8-bit memory manipulation instruction. The higher 4 bits must be set to 0.

RESET input makes ADTP0 undefined.

(3) Serial clock counter

This counter counts the serial clocks to be output and input during transmission/reception to check whether

8-bit data has been transmitted/received.

Page 219 of the NEC PD78F9489 user manual — (1) Serial operation mode register 1A0 (CSIM1A0)
Page 219 · click to enlarge
Page 219

CHAPTER 12 SERIAL INTERFACE 1A0

12.3 Control Registers for Serial Interface 1A0

  • Serial interface 1A0 is controlled by the following five registers.
  • Serial operation mode register 1A0 (CSIM1A0)
  • Automatic data transmit/receive control register 0 (ADTC0)
  • Automatic data transmit/receive interval specification register 0 (ADTI0)
  • Port mode register 2 (PM2)
  • Port 2 (PM)

(1) Serial operation mode register 1A0 (CSIM1A0)

This register sets serial interface 1A0 serial clock, operation mode, operation enable/disable, and automatic

transmission/reception operation enable/disable.

CSIM1A0 is set via a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

with automatic transmit/receive function as follows.

  • In the case of serial clock output (master transmission or master reception)

Set the SCK10/P23 pin to output mode (PM23 = 0) and clear the output latch of P23 to 0.

  • In the case of serial clock input (slave transmission or slave reception)

Set the SCK10/P23 pin to input mode (PM23 = 1).

  • In transmission or transmission/reception mode

Set the SO10/P24 pin to output mode (PM24 = 0) and clear the output latch of P24 to 0.

Set the SI10/P25 pin to input mode (PM25 = 1).

  • In reception mode

Set the SI10/P25 pin to input mode (PM25 = 1).

Page 220 of the NEC PD78F9489 user manual — CHAPTER 12 SERIAL INTERFACE 1A0
Page 220 · click to enlarge
Page 220

CHAPTER 12 SERIAL INTERFACE 1A0

Figure 12-2. Format of Serial Operation Mode Register 1A0

Symbol 6 3 2 1 0 Address After reset R/W

CSIM1A0 CSIE10 DIR10 ATE0 LSCK10 0 0 SCL101 SCL100 FF78H 00H R/W

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 220)
Fig. 69

1 Operation enabled Count operation enabled Serial function + port function

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 220)
Fig. 70

DIR10 Specification of first bit of serial transfer data

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 220)
Fig. 71
NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 220)
Fig. 72

0 SCK10 is used as port (P23) when CSIE10 = 0.

SCK10 is used for clock output when CSIE10 = 1.

1 SCK10 is fixed to high-level output when CSIE10 = 0.

SCK10 is used for clock output when CSIE10 = 1.

SCL101 SCL100 Selection of serial clock (fSCK)

freely be used as port pins. Also, when CSIE10 is used for transmission only, the SI10/P25 pin can be

used as P25 (CMOS I/O) (set bit 7 (RE0) of ADTC0 to 0).

Remarks 1. f XMain system clock oscillation frequency
2. The parenthesized values apply to operation at f X = 5.0 MHz.
Page 221 of the NEC PD78F9489 user manual — Figure 12-3. Format of Automatic Data Transmit/Receive Control Register 0
Page 221 · click to enlarge
Page 221

CHAPTER 12 SERIAL INTERFACE 1A0

(2) Automatic data transmit/receive control register 0 (ADTC0)

This register sets automatic reception enable/disable, the operation mode, and displays the state of

automatic transmit/receive control.

ADTC0 is set via a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Figure 12-3. Format of Automatic Data Transmit/Receive Control Register 0

Symbol 5 4 2 1 0 Address After reset R/W

ADTC0 RE0 ARLD0 0 0 TRF0 FF79H 00H R/W

RE0 Control of reception of automatic transmit/receive function

ARLD0 Selection of operation mode for automatic transmit/receive function

TRF0 Status of automatic transmission/reception function

0 Detection of termination of automatic transmission/reception (this bit is set to 0 upon suspension of automatic

transmission/reception or when ARLD0 = 0)

1 Automatic transmission/reception in progress (this bit is set to 1 when data is written to SIO1A0)

2. When RE0 is reset to 0, P25 (CMOS I/O) is used even when bit 7 (CSIE10) of serial operation

mode register 1A0 (CSIM1A0) is set to 1.

3. Use TRF0, instead of CSIIF10 (interrupt request flag), to identify the completion of automatic

transmission/reception.

Show 4 more labels / short text on this page
0 Reception disabled · 1 Reception enabled · 0 One-shot mode · 1 Repeat mode
Page 222 of the NEC PD78F9489 user manual — Figure 12-4. Format of Automatic Data Transmit/Receive Interval Specification Register 0 (1/2)
Page 222 · click to enlarge
Page 222

CHAPTER 12 SERIAL INTERFACE 1A0

(3) Automatic data transmit/receive interval specification register 0 (ADTI0)

This register sets the automatic data transmit/receive function data transfer interval.

ADTI0 is set via a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Figure 12-4. Format of Automatic Data Transmit/Receive Interval Specification Register 0 (1/2)

Symbol 6 5 Address After reset R/W

ADTI0 ADTI07 0 0 ADTI04 ADTI03 ADTI02 ADTI01 ADTI00 FF7BH 00H R/W

NEC PD78F9489 — Figure 12-4. Format of Automatic Data Transmit/Receive Interval Specification Register 0 (1/2) diagram (page 222)
Fig. 73 · Figure 12-4. Format of Automatic Data Transmit/Recei…

0 No control of interval by ADTI00 to ADTI04

NEC PD78F9489 — Figure 12-4. Format of Automatic Data Transmit/Receive Interval Specification Register 0 (1/2) diagram (page 222)
Fig. 74 · Figure 12-4. Format of Automatic Data Transmit/Recei…

ADTI04 ADTI03 ADTI02 ADTI01 ADTI00 Data transfer interval specification

(fX = 5.0 MHz, fSCK = 1.25 MHz)

0 0 0 1 0 2.40 µs + 0.5/fSCK 2

0 0 0 1 1 3.20 µs + 0.5/fSCK 3

0 0 1 0 0 4.00 µs + 0.5/fSCK 4

0 0 1 0 1 4.80 µs + 0.5/fSCK 5

0 0 1 1 0 5.60 µs + 0.5/fSCK 6

0 0 1 1 1 6.40 µs + 0.5/fSCK 7

0 1 0 0 0 7.20 µs + 0.5/fSCK 8

0 1 0 0 1 8.00 µs + 0.5/fSCK 9

0 1 0 1 0 8.80 µs + 0.5/fSCK 10

0 1 0 1 1 9.60 µs + 0.5/fSCK 11

0 1 1 0 0 10.4 µs + 0.5/fSCK 12

0 1 1 0 1 11.2 µs + 0.5/fSCK 13

0 1 1 1 0 12.0 µs + 0.5/fSCK 14

0 12.8 µs + 0.5/fSCK 15

Page 223 of the NEC PD78F9489 user manual — CHAPTER 12 SERIAL INTERFACE 1A0
Page 223 · click to enlarge
Page 223

CHAPTER 12 SERIAL INTERFACE 1A0

Figure 12-4. Format of Automatic Data Transmit/Receive Interval Specification Register 0 (2/2)

Symbol 6 5 Address After reset R/W

ADTI0 ADTI07 0 0 ADTI04 ADTI03 ADTI02 ADTI01 ADTI00 FF7BH 00H R/W

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 223)
Fig. 75

ADTI04 ADTI03 ADTI02 ADTI01 ADTI00 Data transfer interval specification

(fX = 5.0 MHz, fSCK = 1.25 MHz)

1 0 13.6 µs + 0.5/fSCK 16

1 0 0 0 1 14.4 µs + 0.5/fSCK 17

1 0 0 1 0 15.2 µs + 0.5/fSCK 18

1 0 0 1 1 16.0 µs + 0.5/fSCK 19

1 0 1 0 0 16.8 µs + 0.5/fSCK 20

1 0 1 0 1 17.6 µs + 0.5/fSCK 21

1 0 1 1 0 18.4 µs + 0.5/fSCK 22

1 0 19.2 µs + 0.5/fSCK 23

1 1 0 0 0 20.0 µs + 0.5/fSCK 24

1 1 0 0 1 20.8 µs + 0.5/fSCK 25

1 1 0 1 0 21.6 µs + 0.5/fSCK 26

1 1 0 1 1 22.4 µs + 0.5/fSCK 27

1 1 1 0 0 23.2 µs + 0.5/fSCK 28

1 1 1 0 1 24.0 µs + 0.5/fSCK 29

1 0 24.8 µs + 0.5/fSCK 30

1 25.6 µs + 0.5/fSCK 31

2. The data transfer interval time is found from the following expressions (n: Value set to ADTI00 to

ADTI04).

n = 0

Interval time = +

0.5 fSCK

n = 1 to 31

0.5 fSCK

Interval time = +

2. Be sure to set bits 5 and 6 to 0.
Remark f XMain system clock oscillation frequency
f SCKSerial clock frequency

2 fSCK · n+1 fSCK

Page 224 of the NEC PD78F9489 user manual — (a) Serial operation mode register 1A0 (CSIM1A0)
Page 224 · click to enlarge
Page 224

CHAPTER 12 SERIAL INTERFACE 1A0

12.4 Serial Interface 1A0 Operation

Serial interface 1A0 provides the following three modes.

  • Operation stop mode
  • 3-wire serial I/O mode
  • 3-wire serial I/O mode with automatic transmit/receive function

12.4.1 Operation stop mode

In operation stop mode, serial transfer is not executed, thereby reducing the power consumption. The P23/SCK10,

P24/SO10, and P25/SI10 pins can be used as normal I/O ports.

(1) Register setting

Operation stop mode is set by serial operation mode register 1A0 (CSIM1A0).

(a) Serial operation mode register 1A0 (CSIM1A0)

CSIM1A0 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input clears CSIM1A0 to 00H.

Symbol 6 3 2 1 0 Address After reset R/W

CSIM1A0 CSIE10 DIR10 ATE0 LSCK10 0 0 SCL101 SCL100 FF78H 00H R/W

Specification of operation enable/disable CSIE10

Shift register operation Serial counter Port

0 Operation stopped Cleared Port function

1 Operation enabled Count operation enabled Serial function + port function

freely be used as port pins.

Page 225 of the NEC PD78F9489 user manual — (a) Serial operation mode register 1A0 (CSIM1A0)
Page 225 · click to enlarge
Page 225

CHAPTER 12 SERIAL INTERFACE 1A0

12.4.2 3-wire serial I/O mode

The 3-wire serial I/O mode is useful for connection of peripheral I/Os and display controllers, etc., which

incorporate a conventional clocked serial interface, such as the 75XL Series, 78K Series, and 17K Series.

Communication is performed using three lines: a serial clock (SCK10), serial output (SO10), and serial input

(SI10).

(1) Register setting

3-wire serial I/O mode settings are performed using serial operation mode register 1A0 (CSIM1A0), port

mode register 2 (PM2), and port 2 (P2).

(a) Serial operation mode register 1A0 (CSIM1A0)

CSIM1A0 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets CSIM1A0 to 00H.

  • In the case of serial clock output (master transmission or master reception)

Set the SCK10/P23 pin to output mode (PM23 = 0) and clear the output latch of P23 to 0.

  • In the case of serial clock input (slave transmission or slave reception)

Set the SCK10/P23 pin to input mode (PM23 = 1).

  • In transmission or transmission/reception mode

Set the SO10/P24 pin to output mode (PM24 = 0) and clear the output latch of P24 to 0.

Set the SI10/P25 pin to input mode (PM25 = 1).

  • In reception mode

Set the SI10/P25 pin to input mode (PM25 = 1).

Page 226 of the NEC PD78F9489 user manual — CHAPTER 12 SERIAL INTERFACE 1A0
Page 226 · click to enlarge
Page 226

CHAPTER 12 SERIAL INTERFACE 1A0

Symbol 6 3 2 1 0 Address After reset R/W

CSIM1A0 CSIE10 DIR10 ATE0 LSCK10 0 0 SCL101 SCL100 FF78H 00H R/W

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 226)
Fig. 76

1 Operation enabled Count operation enabled Serial function + port function

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 226)
Fig. 77

DIR10 Specification of first bit of serial transfer data

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 226)
Fig. 78
NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 226)
Fig. 79

0 SCK10 is used as port (P23) when CSIE10 = 0.

SCK10 is used for clock output when CSIE10 = 1.

1 SCK10 is fixed to high-level output when CSIE10 = 0.

SCK10 is used for clock output when CSIE10 = 1.

freely be used as port pins. Also, when CSIE10 is used for transmission only, the SI10/P25 pin can be

used as P25 (CMOS I/O) (set bit 7 (RE0) of ADTC0 to 0).

Remarks 1. f XMain system clock oscillation frequency
2. The parenthesized values apply to operation at f X = 5.0 MHz.
Page 227 of the NEC PD78F9489 user manual — DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
Page 227 · click to enlarge
Page 227

CHAPTER 12 SERIAL INTERFACE 1A0

(2) Communication operation

In 3-wire serial I/O mode, data transmission/reception is performed in 8-bit units. Data is

transmitted/received bit by bit in synchronization with the serial clock.

Serial I/O shift register 1A0 (SIO1A0) shift operations are performed in synchronization with the fall of the

serial clock (SCK10). Then transmit data is held in the SO10 latch and output from the SO10 pin. Also,

receive data input to the SI10 pin is latched in the SIO1A0 on the rise of SCK10.

At the end of an 8-bit transfer, the operation of SIO1A0 stops automatically, and the interrupt request signal

(INTCSI10) is generated.

Figure 12-5. 3-Wire Serial I/O Mode Timing (1/2)

(i) Master operation timing

SIO1A0

SCK10

1 2 3 4 5 6 7 8

DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0

DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0

SI10

INTCSI10

write · SO10 Note

Page 228 of the NEC PD78F9489 user manual — INTCSI10
Page 228 · click to enlarge
Page 228

CHAPTER 12 SERIAL INTERFACE 1A0

Figure 12-5. 3-Wire Serial I/O Mode Timing (2/2)

(ii) Slave operation timing

SIO1A0

SCK10

1 2 3 4 5 6 7 8

SI10

DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0

DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0

INTCSI10

write

Page 229 of the NEC PD78F9489 user manual — (4) Transfer start
Page 229 · click to enlarge
Page 229

CHAPTER 12 SERIAL INTERFACE 1A0

(3) MSB/LSB switching as the start bit

In the 3-wire serial I/O mode, transfer can be selected to start from the MSB or LSB.

Figure 12-6 shows the configuration of serial I/O shift register 1A0 (SIO1A0) and the internal bus. As shown

in the figure, MSB/LSB can be read/written in reverse form.

MSB/LSB switching as the start bit can be specified with bit 6 (DIR10) of serial operation mode register 1A0

(CSIM1A0).

Figure 12-6. Circuit of Switching in Transfer Bit Order

SI10 Shift I/O shift register 1A0 (SIO1A0)

D Q

SO10

SCK10

Start bit switching is realized by switching the bit order for data write to SIO1A0. The SIO1A0 shift order

remains unchanged.

Thus, switching between MSB-first and LSB-first must be performed before writing data to the shift register.

(4) Transfer start

Serial transfer is started by setting transfer data to serial I/O shift register 1A0 (SIO1A0) when the following

two conditions are satisfied.

  • Bit 7 (CSIE10) of serial operation mode register 1A0 (CSIM1A0) = 1
  • Internal serial clock is stopped or SCK10 is high after 8-bit serial transfer.

Termination of 8-bit transfer stops the serial transfer automatically and generates the interrupt request signal

(INTCSI10).

Show 5 more labels / short text on this page
Internal bus · LSB-first · MSB-first Read/write gate · Read/write gate · SO1 latch
Page 230 of the NEC PD78F9489 user manual — (a) Serial operation mode register 1A0 (CSIM1A0)
Page 230 · click to enlarge
Page 230

CHAPTER 12 SERIAL INTERFACE 1A0

12.4.3 3-wire serial I/O mode with automatic transmit/receive function

This 3-wire serial I/O mode is used for transmission/reception of a maximum of 16-byte data without the use of

software. Once transfer is started, the set number of bytes of data prestored in the RAM can be transmitted, and the

set number of bytes of data can be received and stored in the RAM.

(1) Register setting

The 3-wire serial I/O mode with automatic transmit/receive function is set with serial operation mode register

1A0 (CSIM1A0), automatic data transmit/receive control register 0 (ADTC0), automatic data transmit/receive

interval specification register 0 (ADTI0), port mode register 2 (PM2), and port 2 (P2).

(a) Serial operation mode register 1A0 (CSIM1A0)

CSIM1A0 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets CSIM1A0 to 00H.

receive function as follows.

  • In the case of serial clock output (master transmission or master reception)

Set the SCK10/P23 pin to output mode (PM23 = 0) and clear the output latch of P23 to 0.

  • In the case of serial clock input (slave transmission or slave reception)

Set the SCK10/P23 pin to input mode (PM23 = 1).

  • In transmission or transmission/reception mode

Set the SO10/P24 pin to output mode (PM24 = 0) and clear the output latch of P24 to 0.

Set the SI10/P25 pin to input mode (PM25 = 1).

  • In reception mode

Set the SI10/P25 pin to input mode (PM25 = 1).

Page 231 of the NEC PD78F9489 user manual — CHAPTER 12 SERIAL INTERFACE 1A0
Page 231 · click to enlarge
Page 231

CHAPTER 12 SERIAL INTERFACE 1A0

Symbol 6 3 2 1 0 Address After reset R/W

CSIM1A0 CSIE10 DIR10 ATE0 LSCK10 0 0 SCL101 SCL100 FF78H 00H R/W

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 231)
Fig. 80

1 Operation enabled Count operation enabled Serial function + port function

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 231)
Fig. 81

DIR10 Specification of first bit of serial transfer data

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 231)
Fig. 82
NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 231)
Fig. 83

0 SCK10 is used as port (P23) when CSIE10 = 0.

SCK10 is used for clock output when CSIE10 = 1.

1 SCK10 is fixed to high-level output when CSIE10 = 0.

SCK10 is used for clock output when CSIE10 = 1.

freely be used as port pins. Also, when CSIE10 is used for transmission only, the SI10/P25 pin can be

used as P25 (CMOS I/O) (set bit 7 (RE0) of ADTC0 to 0).

Remarks 1. f XMain system clock oscillation frequency
2. The parenthesized values apply to operation at f X = 5.0 MHz.
Page 232 of the NEC PD78F9489 user manual — CHAPTER 12 SERIAL INTERFACE 1A0
Page 232 · click to enlarge
Page 232

CHAPTER 12 SERIAL INTERFACE 1A0

(b) Automatic data transmit/receive control register 0 (ADTC0)

ADTC0 is set via a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Symbol 5 4 2 1 0 Address After reset R/W

ADTC0 RE0 ARLD0 0 0 TRF0 FF79H 00H R/W

RE0 Control of reception of automatic transmit/receive function

ARLD0 Selection of operation mode for automatic transmit/receive function

TRF0 Status of automatic transmit/receive function

0 Detection of termination of automatic transmission/reception (this bit is set to 0 upon suspension of automatic

transmission/reception or when ARLD0 = 0)

1 Automatic transmission/reception in progress (this bit is set to 1 when data is written to SIO1A0)

2. When RE0 is reset to 0, P25 (CMOS I/O) is used even when bit 7 (CSIE10) of serial operation

mode register 1A0 (CSIM1A0) is set to 1.

3. Use TRF0, instead of CSIIF10 (interrupt request flag), to identify the completion of automatic

transmission/reception.

Show 4 more labels / short text on this page
0 Reception disabled · 1 Reception enabled · 0 One-shot mode · 1 Repeat mode
Page 233 of the NEC PD78F9489 user manual — CHAPTER 12 SERIAL INTERFACE 1A0
Page 233 · click to enlarge
Page 233

CHAPTER 12 SERIAL INTERFACE 1A0

(c) Automatic data transmit/receive interval specification register 0 (ADTI0)

ADTI0 is set via a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Symbol 6 5 Address After reset R/W

ADTI0 ADTI07 0 0 ADTI04 ADTI03 ADTI02 ADTI01 ADTI00 FF7BH 00H R/W

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 233)
Fig. 84

0 No control of interval by ADTI00 to ADTI04

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 233)
Fig. 85

ADTI04 ADTI03 ADTI02 ADTI01 ADTI00 Data transfer interval specification

(fX = 5.0 MHz, fSCK = 1.25 MHz)

0 0 0 1 0 2.40 µs + 0.5/fSCK 2

0 0 0 1 1 3.20 µs + 0.5/fSCK 3

0 0 1 0 0 4.00 µs + 0.5/fSCK 4

0 0 1 0 1 4.80 µs + 0.5/fSCK 5

0 0 1 1 0 5.60 µs + 0.5/fSCK 6

0 0 1 1 1 6.40 µs + 0.5/fSCK 7

0 1 0 0 0 7.20 µs + 0.5/fSCK 8

0 1 0 0 1 8.00 µs + 0.5/fSCK 9

0 1 0 1 0 8.80 µs + 0.5/fSCK 10

0 1 0 1 1 9.60 µs + 0.5/fSCK 11

0 1 1 0 0 10.4 µs + 0.5/fSCK 12

0 1 1 0 1 11.2 µs + 0.5/fSCK 13

0 1 1 1 0 12.0 µs + 0.5/fSCK 14

0 12.8 µs + 0.5/fSCK 15

(Continued)

Page 234 of the NEC PD78F9489 user manual — CHAPTER 12 SERIAL INTERFACE 1A0
Page 234 · click to enlarge
Page 234

CHAPTER 12 SERIAL INTERFACE 1A0

Symbol 6 5 Address After reset R/W

ADTI0 ADTI07 0 0 ADTI04 ADTI03 ADTI02 ADTI01 ADTI00 FF7BH 00H R/W

NEC PD78F9489 — CHAPTER 12 SERIAL INTERFACE 1A0 diagram (page 234)
Fig. 86

ADTI04 ADTI03 ADTI02 ADTI01 ADTI00 Data transfer interval specification

(fX = 5.0 MHz, fSCK = 1.25 MHz)

1 0 13.6 µs + 0.5/fSCK 16

1 0 0 0 1 14.4 µs + 0.5/fSCK 17

1 0 0 1 0 15.2 µs + 0.5/fSCK 18

1 0 0 1 1 16.0 µs + 0.5/fSCK 19

1 0 1 0 0 16.8 µs + 0.5/fSCK 20

1 0 1 0 1 17.6 µs + 0.5/fSCK 21

1 0 1 1 0 18.4 µs + 0.5/fSCK 22

1 0 19.2 µs + 0.5/fSCK 23

1 1 0 0 0 20.0 µs + 0.5/fSCK 24

1 1 0 0 1 20.8 µs + 0.5/fSCK 25

1 1 0 1 0 21.6 µs + 0.5/fSCK 26

1 1 0 1 1 22.4 µs + 0.5/fSCK 27

1 1 1 0 0 23.2 µs + 0.5/fSCK 28

1 1 1 0 1 24.0 µs + 0.5/fSCK 29

1 0 24.8 µs + 0.5/fSCK 30

1 25.6 µs + 0.5/fSCK 31

2. The data transfer interval time is found from the following expressions (n: Value set to ADTI00 to

ADTI04).

n = 0

0.5 fSCK

Interval time = +

n = 1 to 31

0.5 fSCK

Interval time = +

2. Be sure to set bits 5 and 6 to 0.
Remark f XMain system clock oscillation frequency
f SCKSerial clock frequency

2 fSCK · n+1 fSCK

Page 235 of the NEC PD78F9489 user manual — Caution Writing any value to SIO1A0 orders the start of automatic transmission/reception
Page 235 · click to enlarge
Page 235

CHAPTER 12 SERIAL INTERFACE 1A0

(2) Automatic transmit/receive data setting

(a) Transmit data setting

Write transmit data from the least significant address FFA0H of buffer RAM (up to FFAFH). The

transmit data should be in the order from higher address to lower address.

Set the value obtained by subtracting 1 from the number of transmit data bytes to automatic data

transmit/receive address pointer 0 (ADTP0).

(b) Automatic transmit/receive mode setting

Set bit 7 (CSIE10) and bit 5 (ATE0) of serial operation mode register 1A0 (CSIM1A0) to 1.

Set bit 7 (RE0) of automatic data transmit/receive control register 0 (ADTC0) to 1.

Set the data transmit/receive interval in automatic data transmit/receive interval specification

register 0 (ADTI0).

Write any value to serial I/O shift register 1A0 (SIO1A0) (transfer start trigger).

Caution Writing any value to SIO1A0 orders the start of automatic transmission/reception

operation; the written value has no meaning.

The following operations are automatically carried out when (a) and (b) are carried out.

  • After the buffer RAM data specified by ADTP0 is transferred to SIO1A0, transmission is carried out

(start of automatic transmission/reception).

  • The received data is written to the buffer RAM address specified by ADTP0.
  • ADTP0 is decremented and the next data transmission/reception is carried out. Data

transmission/reception continues until the ADTP0 decremental output becomes 00H and address

FFA0H data is output (end of automatic transmission/reception).

  • When automatic transmission/reception is terminated, bit 3 (TRF0) of ADTC0 is cleared to 0.
Page 236 of the NEC PD78F9489 user manual — maximum interval is dependent upon CPU processing and the value of automatic
Page 236 · click to enlarge
Page 236

CHAPTER 12 SERIAL INTERFACE 1A0

(3) Communication operation

(a) Basic transmit/receive mode

This transmit/receive mode is the same as the 3-wire serial I/O mode in which the specified number of

data are transmitted/received in 8-bit units.

Serial transfer is started when any data is written to serial I/O shift register 1A0 (SIO1A0) while bit 7

(CSIE10) of serial operation mode register 1A0 (CSIM1A0) is set to 1.

Upon completion of transmission of the last byte, the interrupt request flag (CSIIF10) is set. The

termination of automatic transmission/reception should be checked by using bit 3 (TRF0) of automatic

data transmit/receive control register 0 (ADTC0), not by CSIIF10 because CSIIF10 of the interrupt

request flag is cleared if an interrupt is acknowledged.

Figure 12-7 shows the basic transmit/receive mode operation timing, and Figure 12-8 shows the

operation flowchart.

Figure 12-9 shows buffer RAM operation at 6-byte transmission.

Figure 12-7. Basic Transmit/Receive Mode Operation Timing

SCK10

SO10 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0

SI10 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0

CSIIF10

TRF0

Cautions 1. Because, in the basic transmit/receive mode, the automatic transmit/receive

function writes/reads data to/from the buffer RAM after 1-byte

transmission/reception, an interval is inserted till the next transmission/reception.

As the buffer RAM write/read is performed at the same time as CPU processing, the

maximum interval is dependent upon CPU processing and the value of automatic

data transmit/receive interval specification register 0 (ADTI0) (refer to 12.4.3 (5)

Interval time of automatic transmission/reception).

2. When TRF0 is cleared, the SO10 pin becomes low level.
Remark CSIIF10Interrupt request flag
TRF0Bit 3 of automatic data transmit/receive control register 0 (ADTC0)

Interval

Page 237 of the NEC PD78F9489 user manual — TRF0 = 0
Page 237 · click to enlarge
Page 237

CHAPTER 12 SERIAL INTERFACE 1A0

Figure 12-8. Basic Transmit/Receive Mode Flowchart

Set ADTP0 to the value (pointer value) obtained by subtracting 1

from the number of transmit

Set the transmission/reception operation interval time in ADTI0

Write any data to SIO1A0

Write transmit data from

buffer RAM to SIO1A0

Write receive data from

SIO1A0 to buffer RAM

Pointer value = 0

TRF0 = 0

Remark ADTP0Automatic data transmit/receive address pointer 0
ADTI0Automatic data transmit/receive interval specification register 0
SIO1A0Serial I/O shift register 1A0
TRF0Bit 3 of automatic data transmit/receive control register 0 (ADTC0)
Show 16 more labels / short text on this page
Start · Write transmit data · in buffer RAM · data bytes · Software execution · (Start trigger) · Transmission/reception · operation · Decrement pointer value · Hardware execution · No · Yes · No · Software execution · Yes · End
Page 238 of the NEC PD78F9489 user manual — 0 CSIIF10
Page 238 · click to enlarge
Page 238

CHAPTER 12 SERIAL INTERFACE 1A0

In 6-byte transmission/reception (bit 6 (ARLD0) and bit 7 (RE0) of automatic data transmit/receive control

register 0 (ADTC0) = 0, and 1, respectively) in basic transmit/receive mode, buffer RAM operates as follows.

(i) Before transmission/reception (refer to Figure 12-9 (a))

After any data has been written to SIO1A0 (start trigger: this data is not transferred), transmit data 1

(T1) is transferred from the buffer RAM to SIO1A0. When transmission of the first byte is completed,

receive data 1 (R1) is transferred from SIO1A0 to the buffer RAM, and automatic data

transmit/receive address pointer 0 (ADTP0) is decremented. Then transmit data 2 (T2) is

transferred from the buffer RAM to SIO1A0.

(ii) 4th byte transmit/receive point (refer to Figure 12-9 (b))

Transmission/reception of the third byte is completed, and transmit data 4 (T4) is transferred from

the buffer RAM to SIO1A0. When transmission of the fourth byte is completed, receive data 4 (R4)

is transferred from SIO1A0 to the buffer RAM, and ADTP0 is decremented.

(iii) Completion of transmission/reception (refer to Figure 12-9 (c))

When transmission of the sixth byte is completed, receive data 6 (R6) is transferred from SIO1A0 to

the buffer RAM, and the interrupt request flag (CSIIF10) is set (INTCSI10 generation).

Figure 12-9. Buffer RAM Operation in 6-Byte Transmission/Reception

(in Basic Transmit/Receive Mode) (1/2)

(a) Before transmission/reception

FFAFH

FFA5H

Transmit data 1 (T1)

Receive data 1 (R1) SIO1A0

Transmit data 2 (T2)

Transmit data 3 (T3)

5 ADTP0 _1

Transmit data 4 (T4)

Transmit data 5 (T5)

FFA0H

Transmit data 6 (T6)

0 CSIIF10

Page 239 of the NEC PD78F9489 user manual — 1 CSIIF10
Page 239 · click to enlarge
Page 239

CHAPTER 12 SERIAL INTERFACE 1A0

Figure 12-9. Buffer RAM Operation in 6-Byte Transmission/Reception

(in Basic Transmit/Receive Mode) (2/2)

(b) 4th byte transmission/reception

FFAFH

FFA5H

Receive data 1 (R1)

Receive data 4 (R4) SIO1A0

Receive data 2 (R2)

Receive data 3 (R3)

2 ADTP0 _1

Transmit data 4 (T4)

Transmit data 5 (T5)

FFA0H

Transmit data 6 (T6)

0 CSIIF10

(c) Completion of transmission/reception

FFAFH

FFA5H

Receive data 1 (R1)

SIO1A0

Receive data 2 (R2)

Receive data 3 (R3)

0 ADTP0

Receive data 4 (R4)

Receive data 5 (R5)

FFA0H

Receive data 6 (R6)

1 CSIIF10

Page 240 of the NEC PD78F9489 user manual — processing, the maximum interval is dependent upon CPU processing and the
Page 240 · click to enlarge
Page 240

CHAPTER 12 SERIAL INTERFACE 1A0

(b) Basic transmit mode

In this mode, the specified number of 8-bit unit data are transmitted.

Serial transfer is started when any data is written to serial I/O shift register 1A0 (SIO1A0) while bit 7

(CSIE10) of serial operation mode register 1A0 (CSIM1A0) is set to 1, and bit 7 (RE0) of automatic data

transmit/receive control register 0 (ADTC0) is set to 0.

Upon completion of transmission of the last byte, the interrupt request flag (CSIIF10) is set. The

termination of automatic transmission/reception should be checked by using bit 3 (TRF0) of automatic

data transmit/receive control register 0 (ADTC0), not by CSIIF10.

If a receive operation is not executed, the P25/SI10 pin can be use as normal I/O port.

Figure 12-10 shows the basic transmit mode operation timing, and Figure 12-11 shows the operation

flowchart.

Figure 12-12 shows buffer RAM operation when repeatedly transmitting 6 bytes.

Figure 12-10. Basic Transmit Mode Operation Timing

SCK10

SO10 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0

CSIIF10

TRF0

data from the buffer RAM after 1-byte transmission, an interval is inserted until the

next transmission. As the buffer RAM read is performed at the same time as CPU

processing, the maximum interval is dependent upon CPU processing and the

value of automatic data transmit/receive interval specification register 0 (ADTI0)

(refer to 12.4.3 (5) Interval time of automatic transmission/reception).

2. When TRF0 is cleared, the SO10 pin becomes low level.
Remark CSIIF10Interrupt request flag
TRF0Bit 3 of automatic data transmit/receive control register 0 (ADTC0)

Interval

Page 241 of the NEC PD78F9489 user manual — TRF0 = 0
Page 241 · click to enlarge
Page 241

CHAPTER 12 SERIAL INTERFACE 1A0

Figure 12-11. Basic Transmit Mode Flowchart

Set ADTP0 to the value (pointer value) obtained by subtracting 1

from the number of transmit

Set the transmission/reception operation interval time in ADTI0

Write any data to SIO1A0

Write transmit data from

buffer RAM to SIO1A0

Pointer value = 0

TRF0 = 0

Remark ADTP0Automatic data transmit/receive address pointer 0
ADTI0Automatic data transmit/receive interval specification register 0
SIO1A0Serial I/O shift register 1A0
TRF0Bit 3 of automatic data transmit/receive control register 0 (ADTC0)
Show 15 more labels / short text on this page
Start · Write transmit data · in buffer RAM · data bytes · Software execution · (Start trigger) · Decrement pointer value · Transmission operation · Hardware execution · No · Yes · No · Software execution · Yes · End
Page 242 of the NEC PD78F9489 user manual — 0 CSIIF10
Page 242 · click to enlarge
Page 242

CHAPTER 12 SERIAL INTERFACE 1A0

In 6-byte transmission (bit 6 (ARLD0) and bit 7 (RE0) of automatic data transmit/receive control register 0

(ADTC0) are 0) in basic transmit mode, buffer RAM operates as follows.

(i) Before transmission (refer to Figure 12-12 (a))

After any data has been written to SIO1A0 (start trigger: this data is not transferred), transmit data 1

(T1) is transferred from the buffer RAM to SIO1A0. When transmission of the first byte is completed,

ADTP0 is decremented. Then transmit data 2 (T2) is transferred from the buffer RAM to SIO1A0.

(ii) 4th byte transmission point (refer to Figure 12-12 (b))

Transmission of the third byte is completed, and transmit data 4 (T4) is transferred from the buffer

RAM to SIO1A0. When transmission of the fourth byte is completed, ADTP0 is decremented.

(iii) Completion of transmission/reception (refer to Figure 12-12 (c))

When transmission of the sixth byte is completed, the interrupt request flag (CSIIF10) is set

(INTCSI10 generation).

Figure 12-12. Buffer RAM Operation in 6-Byte Transmission (in Basic Transmit Mode) (1/2)

(a) Before transmission

FFAFH

FFA5H

Transmit data 1 (T1)

SIO1A0

Transmit data 2 (T2)

Transmit data 3 (T3)

5 ADTP0 _1

Transmit data 4 (T4)

Transmit data 5 (T5)

FFA0H

Transmit data 6 (T6)

0 CSIIF10

Page 243 of the NEC PD78F9489 user manual — 1 CSIIF10
Page 243 · click to enlarge
Page 243

CHAPTER 12 SERIAL INTERFACE 1A0

Figure 12-12. Buffer RAM Operation in 6-Byte Transmission (in Basic Transmit Mode) (2/2)

(b) 4th byte transmission point

FFAFH

FFA5H

Transmit data 1 (T1)

SIO1A0

Transmit data 2 (T2)

Transmit data 3 (T3)

5 ADTP0 _1

Transmit data 4 (T4)

Transmit data 5 (T5)

FFA0H

Transmit data 6 (T6)

0 CSIIF10

(c) Completion of transmission/reception

FFAFH

FFA5H

Transmit data 1 (T1)

SIO1A0

Transmit data 2 (T2)

Transmit data 3 (T3)

0 ADTP0

Transmit data 4 (T4)

Transmit data 5 (T5)

FFA0H

Transmit data 6 (T6)

1 CSIIF10

Page 244 of the NEC PD78F9489 user manual — of automatic data transmit/receive interval specification register 0 (ADTI0) (refer to
Page 244 · click to enlarge
Page 244

CHAPTER 12 SERIAL INTERFACE 1A0

(c) Repeat transmit mode

In this mode, data stored in the buffer RAM is transmitted repeatedly.

Serial transfer is started by writing any data to serial shift I/O register 1A0 (SIO1A0) when bit 7 (CSIE10)

of serial operation mode register 1A0 (CSIM1A0) is set to 1, and bit 7 (RE0) of automatic data

transmit/receive control register 0 (ADTC0) is set to 0.

Unlike the basic transmission mode, after the last byte (data in address FFA0H) has been transmitted,

the interrupt request flag (CSIIF10) is not set, the value at the time when the transmission was started is

set in automatic data transmit/receive address pointer 0 (ADTP0) again, and the buffer RAM contents

are transmitted again.

When a reception operation is not performed, the P25/SI10 pin can be used as a normal I/O port.

The repeat transmit mode operation timing is shown in Figure 12-13, and the operation flowchart in

Figure 12-14.

Figure 12-13. Repeat Transmit Mode Operation Timing

SCK10

SO10

D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0

D7 D6 D5

transmission of one byte, the interval is included in the period up to the next

transmission. As the buffer RAM read is performed at the same time as CPU

processing, the maximum interval is dependent upon the CPU operation and the value

of automatic data transmit/receive interval specification register 0 (ADTI0) (refer to

12.4.3 (5) Interval time of automatic transmission/reception).

Interval Interval

Page 245 of the NEC PD78F9489 user manual — CHAPTER 12 SERIAL INTERFACE 1A0
Page 245 · click to enlarge
Page 245

CHAPTER 12 SERIAL INTERFACE 1A0

Figure 12-14. Repeat Transmit Mode Flowchart

Set ADTP0 to the value (pointer value) obtained by subtracting 1

from the number of transmit

Set the transmission/reception operation interval time in ADTI0

Write any data to SIO1A0

Write transmit data from

buffer RAM to SIO1A0

Pointer value = 0

Remark ADTP0Automatic data transmit/receive address pointer 0
ADTI0Automatic data transmit/receive interval specification register 0
SIO1A0Serial I/O shift register 1A0
Show 12 more labels / short text on this page
Start · Write transmit data · in buffer RAM · data bytes · Software execution · (Start trigger) · Decrement pointer value · Transmission operation · Hardware execution · No · Yes · Reset ADTP0
Page 246 of the NEC PD78F9489 user manual — 0 CSIIF10
Page 246 · click to enlarge
Page 246

CHAPTER 12 SERIAL INTERFACE 1A0

In 6-byte transmission (bit 6 (ARLD0) and bit 7 (RE0) of automatic data transmit/receive control register 0

(ADTC0) are 1 and 0, respectively) in repeat transmit mode, buffer RAM operates as follows.

(i) Before transmission (refer to Figure 12-15 (a))

After any data has been written to SIO1A0 (start trigger: this data is not transferred), transmit data 1

(T1) is transferred from the buffer RAM to SIO1A0. When transmission of the first byte is completed,

ADTP0 is decremented. Then transmit data 2 (T2) is transferred from the buffer RAM to SIO1A0.

(ii) Upon completion of transmission of 6 bytes (refer to Figure 12-15 (b))

When transmission of the sixth byte is completed, the interrupt request flag (CSIIF10) is not set. The

previous pointer value is assigned to the ADTP0.

(iii) 7th byte transmission point (refer to Figure 12-15 (c))

Transmit data 1 (T1) is transferred from the buffer RAM to SIO1A0 again. When transmission of the

first byte is completed, ADTP0 is decremented. Then transmit data 2 (T2) is transferred from the

buffer RAM to SIO1A0.

Figure 12-15. Buffer RAM Operation in 6-Byte Transmission (in Repeat Transmit Mode) (1/2)

(a) Before transmission

FFAFH

FFA5H

Transmit data 1 (T1)

SIO1A0

Transmit data 2 (T2)

Transmit data 3 (T3)

5 ADTP0 _1

Transmit data 4 (T4)

Transmit data 5 (T5)

FFA0H

Transmit data 6 (T6)

0 CSIIF10

Page 247 of the NEC PD78F9489 user manual — 0 CSIIF10
Page 247 · click to enlarge
Page 247

CHAPTER 12 SERIAL INTERFACE 1A0

Figure 12-15. Buffer RAM Operation in 6-Byte Transmission (in Repeat Transmit Mode) (2/2)

(c) Upon completion of transmission of 6 bytes

FFAFH

FFA5H

Transmit data 1 (T1)

SIO1A0

Transmit data 2 (T2)

Transmit data 3 (T3)

0 ADTP0

Transmit data 4 (T4)

Transmit data 5 (T5)

FFA0H

Transmit data 6 (T6)

0 CSIIF10

(d) 7th byte transmission point

FFAFH

FFA5H

Transmit data 1 (T1)

SIO1A0

Transmit data 2 (T2)

Transmit data 3 (T3)

5 ADTP0 _1

Transmit data 4 (T4)

Transmit data 5 (T5)

FFA0H

Transmit data 6 (T6)

0 CSIIF10

Page 248 of the NEC PD78F9489 user manual — SCK10
Page 248 · click to enlarge
Page 248

CHAPTER 12 SERIAL INTERFACE 1A0

(d) Automatic transmission/reception suspension and restart

Automatic transmission/reception can be temporarily suspended by setting bit 7 (CSIE10) of serial

operation mode register 1A0 (CSIM1A0) to 0.

During 8-bit data transfer, the transmission/reception is not suspended if bit 7 (CSIE10) is set to 0. It is

suspended upon completion of 8-bit data transfer.

When suspended, bit 3 (TRF0) of automatic data transmit/receive control register 0 (ADTC0) is set to 0

after transfer of the 8th bit, and all the port pins used alternately as serial interface pins (P23/SCK10,

P24/SO10, P25/SI10) are set to the port mode.

During restart of transmission/reception, the remaining data can be transferred by setting CSIE10 to 1

and writing any data to serial I/O shift register 1A0 (SIO1A0).

Cautions 1. If the HALT instruction is executed during automatic transmission/reception,

transfer is suspended and the HALT mode is set even if 8-bit data is being

transferred.

2. When suspending automatic transmission/reception, do not change the operation

mode to 3-wire serial mode while TRF0 = 1.

Figure 12-16. Automatic Transmission/Reception Suspension and Restart

CSIE10 = 0 (Suspended command) Suspend

Restart command CSIE10 = 1, Write to SIO1A0

SCK10

SO10 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0

SI10 D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0

CSIE10Bit 7 of serial operation mode register 1A0 (CSIM1A0)
Page 249 of the NEC PD78F9489 user manual — CSIIF10
Page 249 · click to enlarge
Page 249

CHAPTER 12 SERIAL INTERFACE 1A0

(4) Timing of interrupt request signal generation

The interrupt request signal is generated in synchronization with the timing shown in Table 12-2.

Table 12-2. Timing of Interrupt Request Signal Generation

Operation Mode Timing of Interrupt Request Signal

Master mode 10th serial clock at end of transfer Single mode

Slave mode 8th serial clock at end of transfer

Repeat transmit mode Not generated

(5) Interval time of automatic transmission/reception

Because read/write to/from the buffer RAM using the automatic transmit/receive function is performed

asynchronously to the CPU processing, the interval time is dependent on the CPU processing of the timing of

the eighth rising of the serial clock and the set value of automatic data transmit/receive interval specification

register 0 (ADTI0). Whether the interval time is dependent on ADTI0 is selected by setting bit 7 (ADTI07) of

ADTI0. If ADTI07 is reset to 0, the interval time is 2/fSCK. If ADTI07 is set to 1, whichever is greater of the

interval time determined by the set contents of ADTI0 or the interval time (2/fSCK) determined by the CPU

processing is selected.

Figure 12-17 shows the interval time of automatic transmission/reception.

Remark f SCKSerial clock frequency

Figure 12-17. Interval Time of Automatic Transmission/Reception

SCK10

D7 SO10

D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0

SI10

D7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0

CSIIF10

The following expression must be satisfied to access the buffer RAM.

1 transfer cycle + Interval time ≥ Read access + Write access + CPU buffer RAM access (time)

In the case of a “high-speed CPU & low-speed SCK”, the interval time is not necessary. In the case of a

“low-speed CPU & high-speed SCK”, the interval time is necessary.

In this case, make sure that a sufficient interval time elapses, by using automatic data transmit/receive

interval specification register 0 (ADTI0), so that the above expression is satisfied.

Interval

Page 250 of the NEC PD78F9489 user manual — Table 13-2. Configuration of LCD Controller/Driver
Page 250 · click to enlarge
Page 250

CHAPTER 13 LCD CONTROLLER/DRIVER

13.1 LCD Controller/Driver Functions

The functions of the LCD controller/driver of the µPD789489 Subseries are as follows.

(1) Automatic output of segment and common signals based on automatic display data memory read

(2) Two different display modes:

  • 1/3 duty (1/3 bias)
  • 1/4 duty (1/3 bias)

(3) Four different frame frequencies, selectable in each display mode

(4) 16 to 28 segment signal outputs (S0 to S15, S16 to S27Note)

4 common signal outputs (COM0 to COM3)

(5) Operation with subsystem clock is possible

(6) On-chip voltage booster

The maximum number of displayable pixels is shown in Table 13-1 below.

Table 13-1. Maximum Number of Display Pixels

Bias Method Time Division Common Signals

Maximum Number of Display Pixels

3 COM0 to COM2 84 (28 segments × 3 commons) Note 1 1/3

4 COM0 to COM3

112 (28 segments × 4 commons) Note 2

2. The LCD panel of the figure consists of 14 rows with 2 segments per row. 13.2 LCD Controller/Driver Configuration

The LCD controller/driver includes the following hardware.

Table 13-2. Configuration of LCD Controller/Driver

Display outputs Segment signals16 to 28
Common signals4 (COM0 to COM3)

Control registers LCD display mode register 0 (LCDM0)

LCD clock control register 0 (LCDC0)

LCD voltage boost control register 0 (LCDVA0)

Show 4 more labels / short text on this page
Maximum Number · Used · of Segments · Item Configuration
Page 251 of the NEC PD78F9489 user manual — ↑ COM3
Page 251 · click to enlarge
Page 251

CHAPTER 13 LCD CONTROLLER/DRIVER

The correspondence with the LCD display RAM is shown in Figure 13-1 below.

Figure 13-1. Correspondence with LCD Display RAM

7 6 5 4 3 2 1 0

NEC PD78F9489 — Figure 13-1. Correspondence with LCD Display RAM diagram (page 251)
Fig. 87 · Figure 13-1. Correspondence with LCD Display RAM

↑ COM3

↑ COM2

↑ COM1

↑ COM0

output pin/port pin).

Remark Bits 4 to 7 are fixed to 0.

Address Bit Segment · Common

Page 252 of the NEC PD78F9489 user manual — LCDC03 LCDC02 LCDC01 LCDC00
Page 252 · click to enlarge
Page 252

CHAPTER 13 LCD CONTROLLER/DRIVER

NEC PD78F9489 — CHAPTER 13 LCD CONTROLLER/DRIVER diagram (page 252)
Fig. 88

3 2 1 0 6 5 7 4 FA1BH

Selected by mask option

or port function register

3 2 1 0 6 5 7 4 FA10H

3 2 1 0 6 5 7 4 FA0FH

Figure 13-2. LCD Controller/Driver Block Diagram

3 2 1 0 6 5 7 4 FA00H

register 0 (LCDC0) LCD display mode

V LC2 CAPH CAPL V LC1

27 fLCD

LCDC03 LCDC02 LCDC01 LCDC00

26 fLCD

fX/25

fX/26

fX/27

Show 10 more labels / short text on this page
Internal bus · Booster circuit · fLCD · generator for · fLCD · boosting · Clock · Selector · LCD clock control · fXT
Page 253 of the NEC PD78F9489 user manual — CHAPTER 13 LCD CONTROLLER/DRIVER
Page 253 · click to enlarge
Page 253

CHAPTER 13 LCD CONTROLLER/DRIVER

13.3 Registers Controlling LCD Controller/Driver

The LCD controller/driver is controlled by the following three registers.

  • LCD display mode register 0 (LCDM0)
  • LCD clock control register 0 (LCDC0)
  • LCD voltage boost control register 0 (LCDVA0)
Page 254 of the NEC PD78F9489 user manual — C. To set display on from voltage boosting stop status:
Page 254 · click to enlarge
Page 254

CHAPTER 13 LCD CONTROLLER/DRIVER

(1) LCD display mode register 0 (LCDM0)

LCDM0 specifies whether to enable display. It also specifies whether to enable booster circuit operation,

segment pin/common pin output, and the display mode.

LCDM0 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets LCDM0 to 00H.

Figure 13-3. Format of LCD Display Mode Register 0

Symbol Address After reset R/W

5 3 2 1 0

LCDON0 VAON0 0 LIPS0 LCDM00 LCDM0

FFB0H 00H R/W

LCD display enable/disable LCDON0

Display off (all segment outputs are deselect signal outputs)

Booster circuit operation enable/disable VAON0

No internal voltage boosting

Internal voltage boosting enabled

Segment pin/common pin output controlNote LIPS0

Output ground level to segment/common pin

Output select level to segment pin and LCD waveform to common pin

LCD controller/driver display mode selection LCDM00

Number of time slices Bias mode

2. When operating VAON0, follow the procedure described below.

A. To stop voltage boosting after switching display status from on to off:

1. Set to display off status by setting LCDON0 = 0.
2. Disable outputs of all the segment buffers and common buffers by setting LIPS0 = 0.
3. Stop voltage boosting by setting VAON0= 0.

B. To stop voltage boosting during display on status:

Setting prohibited. Be sure to stop voltage boosting after setting display off.

C. To set display on from voltage boosting stop status:

1. Start voltage boosting by setting VAON0 = 1, then wait for the voltage boost wait time

(tVAWAIT) (refer to CHAPTER 22 ELECTRICAL SPECIFICATION).

2. Set all the segment buffers and common buffers to non-display output status by

setting LIPS0 = 1.

3. Set display on by setting LCDON0 = 1.

Display on · 1/3 · 1/3

Page 255 of the NEC PD78F9489 user manual — Table 13-3. Frame Frequencies (Hz)
Page 255 · click to enlarge
Page 255

CHAPTER 13 LCD CONTROLLER/DRIVER

(2) LCD clock control register 0 (LCDC0)

LCDC0 specifies the LCD source clock and LCD clock. The frame frequency is determined according to the

LCD clock and number of time slices.

LCDC0 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets LCDC0 to 00H.

Figure 13-4. Format of LCD Clock Control Register 0

Symbol Address After reset R/W

7 6 5 4 3 2 1 0

LCDC03 LCDC02 LCDC01 LCDC00 LCDC0

0

FFB2H 00H R/W

LCD source clock (fLCD) selectionNote LCDC03

LCDC02

fXT (32.768 kHz)

fX/25 (156.3 kHz)

fX/26 (78.1 kHz)

fX/27 (39.1 kHz)

LCD clock (LCDCL) selection LCDC01

LCDC00

fLCD/26

fLCD/27

fLCD/28

fLCD/29

2. Before changing the LCDC0 setting, be sure to stop voltage boosting (VAON0 = 0).
3. Set the frame frequency to 128 Hz or lower.
Remarks 1. f XMain system clock oscillation frequency
2. f XT : Subsystem clock oscillation frequency
3. The parenthesized values apply to operation at f X = 5.0 MHz or f XT = 32.768 kHz.

As an example, Table 13-3 lists the frame frequencies used when fXT (32.768 kHz) is supplied as the LCD

source clock (fLCD).

Table 13-3. Frame Frequencies (Hz)

3 21 43 85 171 Note

4 16 32 64 128

Show 10 more labels / short text on this page
LCD Clock (LCDCL) · fXT/2 · fXT/2 · fXT/2 · fXT/2 · (64 Hz) · (128 Hz) · (256 Hz) · (512 Hz) · Time Slots
Page 256 of the NEC PD78F9489 user manual — FFB3H 00H R/W
Page 256 · click to enlarge
Page 256

CHAPTER 13 LCD CONTROLLER/DRIVER

(3) LCD voltage boost control register 0 (LCDVA0)

LCDVA0 controls the voltage boost level during the voltage boost operation.

LCDVA0 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets LCDVA0 to 00H.

Figure 13-5. Format of LCD Voltage Boost Control Register 0

Symbol Address After reset R/W

7 6 5 4 3 2 1

0 GAIN LCDVA0

0

FFB3H 00H R/W

GAIN

Reference voltage (VLC2) level selectionNote

1.5 V (specification of the LCD panel used is 4.5 V.)

1.0 V (specification of the LCD panel used is 3 V.)

Remark The TYP. value is indicated as the reference voltage (VLC2) value.

Page 257 of the NEC PD78F9489 user manual — S27 FA1BH
Page 257 · click to enlarge
Page 257

CHAPTER 13 LCD CONTROLLER/DRIVER

13.4 Setting LCD Controller/Driver

Set the LCD controller/driver using the following procedure.

<1> Set the LCD clock using LCD clock control register 0 (LCDC0).

<2> Set the voltage boost level using LCD voltage boost control register 0 (LCDVA0).

GAIN = 0VLC0 = 4.5 V, VLC1 = 3 V, VLC2 = 1. 5 V
GAIN = 1VLC0 = 3 V, VLC1 = 2 V, VLC2 = 1 V

<3> Set the time slice using LCDM00 (bit 0 of LCD display mode register 0 (LCDM0)).

<4> Enable voltage boost by setting VAON0 (bit 6 of LCDM0) (VAON0 = 1).

<5> Wait for the voltage boost wait time (tVAWAIT) after setting VAON0 (refer to CHAPTER 22 ELECTRICAL

SPECIFICATION).

<6> Set LIPS0 (bit 4 of LCDM0) (LIPS0 = 1) and output the deselect potential.

<7> Start output corresponding to each data memory by setting LCDON0 (bit 7 of LCDM0) (LCDON0 = 1).

13.5 LCD Display Data Memory

The LCD display data memory is mapped at addresses FA00H to FA1BH. Data in the LCD display data memory

can be displayed on the LCD panel using the LCD controller/driver.

Figure 13-6 shows the relationship between the contents of the LCD display data memory and the

segment/common outputs.

That part of the display data memory which is not used for display can be used as ordinary RAM.

Figure 13-6. Relationship Between LCD Display Data Memory Contents and Segment/Common Outputs

(When Using S16 to S27)

b7 b6 b5 b4 b3 b2 b1 b0 Address

S27 FA1BH

S26 FA1AH

S25 FA19H

FA18H S24

S2 FA02H

S1 FA01H

S0 FA00H

COM3 COM2 COM1 COM0

set them to 0.

Page 258 of the NEC PD78F9489 user manual — (3) Output waveforms of common and segment signals
Page 258 · click to enlarge
Page 258

CHAPTER 13 LCD CONTROLLER/DRIVER

13.6 Common and Segment Signals

Each pixel of the LCD panel turns on when the potential difference between the corresponding common and

segment signals becomes higher than a specific voltage (LCD drive voltage, VLCD). It turns off when the potential

difference becomes lower than VLCD.

Applying DC voltage to the common and segment signals for an LCD panel would deteriorate it. To avoid this

problem, this LCD panel is driven with AC voltage.

(1) Common signals

Each common signal is selected sequentially according to the specified number of time slots at the timing

listed in Table 13-4. In the static display mode, the same signal is output commonly to COM0 to COM3.

In the three-time-slice mode, leave the COM3 pin open.

Table 13-4. COM Signals

COM0 COM1 COM2 COM3

Number of Time Slices

(2) Segment signals

The segment signals correspond to LCD display data memory. Bits 0, 1, 2, and 3 of each byte are read in

synchronization with COM0, COM1, COM2, and COM3, respectively. If the contents of each bit are 1, that

bit is converted to the select voltage, and if 0, it is converted to the deselect voltage. The conversion results

are output to the segment pins.

Check, with the information given above, what combination of the front-surface electrodes (corresponding to

the segment signals) and the rear-surface electrodes (corresponding to the common signals) forms display

patterns in the LCD display data memory, and write the bit data that corresponds to the desired display

pattern on a one-to-one basis.

Bit 3 of the LCD display data memory is not used for LCD display in the three-time-slice mode. So this bit

can be used for purposes other than display.

LCD display data memory bits 4 to 7 are fixed to 0.

(3) Output waveforms of common and segment signals

When both common and segment signals are at the select voltage, a display-on voltage of ±VLCD is obtained.

The other combinations of the signals correspond to the display-off voltage.

Figure 13-7 shows the common signal waveforms, and Figure 13-8 shows the voltages and phases of the common

and segment signals.

COM Signal · Three-time-slice mode Open · Four-time-slice mode

Page 259 of the NEC PD78F9489 user manual — Figure 13-8. Voltages and Phases of Common and Segment Signals
Page 259 · click to enlarge
Page 259

CHAPTER 13 LCD CONTROLLER/DRIVER

Figure 13-7. Common Signal Waveforms

V LCD V LC1 V LC2

V SS

T F = 3 × T

V LCD V LC1 V LC2 V SS

T F = 4 × T

T: One LCD clock period TF: Frame frequency

Figure 13-8. Voltages and Phases of Common and Segment Signals

V LCD

V SS

V LCD

V SS

T T

T: One LCD clock period

Show 7 more labels / short text on this page
COMn · (Three-time-slice mode) · COMn · (Four-time-slice mode) · Select Deselect · Common signal · Segment signal
Page 260 of the NEC PD78F9489 user manual — COM1
Page 260 · click to enlarge
Page 260

CHAPTER 13 LCD CONTROLLER/DRIVER

13.7 Display Modes

13.7.1 Three-time-slice display example

Figure 13-10 shows how a nine-digit LCD panel having the display pattern shown in Figure 13-9 is connected to

the segment signals (S0 to S26) and the common signals (COM0 to COM2) of the µPD789489 Subseries chip. This

example displays the data "123456.789" in the LCD panel. The contents of the display data memory (addresses

FA00H to FA1AH) correspond to this display.

The following description focuses on numeral "6." ( ) displayed as the fourth digit from the right. To display "6." in

the LCD panel, it is necessary to apply the select or deselect voltage to the S9 to S11 pins according to Table 13-5 at

the timing of the common signals COM0 to COM2; see Figure 13-9 for the relationship between the segment signals

and LCD segments.

Table 13-5. Select and Deselect Voltages (COM0 to COM2)

Segment S9 S10 S11

COM0 Deselect Select Select

COM1 Select Select Select

COM2 Select Select −

According to Table 13-5, it is determined that the display data memory location (FA09H) that corresponds to S9

must contain x110.

Figure 13-11 shows an example of LCD drive waveforms between the S9 signal and each common signal. When

the select voltage is applied to S9 at the timing of COM1 or COM2, an alternate rectangle waveform, +VLCD/-VLCD, is

generated to turn on the corresponding LCD segment.

Figure 13-9. Three-Time-Slice LCD Display Pattern and Electrode Connections

COM0

S3n+2 S3n

COM1

COM2

Remark n = 0 to 8

Show 17 more labels / short text on this page
Common · · S3n+1 · · · · · · · · · · · · · ·
Page 261 of the NEC PD78F9489 user manual — CHAPTER 13 LCD CONTROLLER/DRIVER
Page 261 · click to enlarge
Page 261

CHAPTER 13 LCD CONTROLLER/DRIVER

Figure 13-10. Example of Connecting Three-Time-Slice LCD Panel

NEC PD78F9489 — CHAPTER 13 LCD CONTROLLER/DRIVER diagram (page 261)
Fig. 89

×

x’ 0 0 x’ 1 0 x’ 1 0 x’ 0 0 x’ 1 0 x’ 1 1 x’ 0 0 x’ 1 0 x’ 0 0

0 1 1 0 1 0 1

0 0 1 0 1 1 0 1 1 1 0 1 1 1 0 1 1 0 1

0 1 0 0 0 1 0 1 0

x’: Can be used to store any data because there is no corresponding segment in the LCD panel.

×: Can always be used to store any data because the three-time-slice mode is being used.

Data memory address · LCD panel

Page 262 of the NEC PD78F9489 user manual — CHAPTER 13 LCD CONTROLLER/DRIVER
Page 262 · click to enlarge
Page 262

CHAPTER 13 LCD CONTROLLER/DRIVER

Figure 13-11. Three-Time-Slice LCD Drive Waveform Examples (1/3 Bias Method)

T F

V LC2 COM0

V SS

V LC2 COM1

V SS

V LC2 COM2

V SS

V LC2 S9

V SS

+V LCD

+1/3V LCD

0 COM0-S9

-1/3V LCD

-V LCD

+V LCD

+1/3V LCD

0 COM1-S9

-1/3V LCD

-V LCD

+V LCD

+1/3V LCD

0 COM2-S9

-1/3V LCD

-V LCD

Page 263 of the NEC PD78F9489 user manual — Figure 13-12. Four-Time-Slice LCD Display Pattern and Electrode Connections
Page 263 · click to enlarge
Page 263

CHAPTER 13 LCD CONTROLLER/DRIVER

13.7.2 Four-time-slice display example

Figure 13-13 shows how a 14-digit LCD panel having the display pattern shown in Figure 13-12 is connected to the

segment signals (S0 to S27) and the common signals (COM0 to COM3) of the µPD789489 Subseries chip. This

example displays the data "123456.78901234" in the LCD panel. The contents of the display data memory

(addresses FA00H to FA1BH) correspond to this display.

The following description focuses on numeral "6." ( ) displayed as the ninth digit from the right. To display "6." in

the LCD panel, it is necessary to apply the select or deselect voltage to the S16 and S17 pins according to Table 13-6

at the timing of the common signals COM0 to COM3; see Figure 13-12 for the relationship between the segment

signals and LCD segments.

Table 13-6. Select and Deselect Voltages (COM0 to COM3)

According to Table 13-7, it is determined that the display data memory location (FA10H) that corresponds to S16

must contain 1101.

Figure 13-14 shows examples of LCD drive waveforms between the S16 signal and the common signals. When

the select voltage is applied to S16 at the timing of COM0, an alternate rectangle waveform, +VLCD/-VLCD, is generated

to turn on the corresponding LCD segment.

Figure 13-12. Four-Time-Slice LCD Display Pattern and Electrode Connections

COM0

COM1

COM2

COM3

Remark n = 0 to 13

Show 16 more labels / short text on this page
Segment S16 S17 · Common · COM0 Select Select · COM1 Deselect Select · COM2 Select Select · COM3 Select Select · · S2n · · · · · · · · S2n+1
Page 264 of the NEC PD78F9489 user manual — CHAPTER 13 LCD CONTROLLER/DRIVER
Page 264 · click to enlarge
Page 264

CHAPTER 13 LCD CONTROLLER/DRIVER

Figure 13-13. Example of Connecting Four-Time-Slice LCD Panel

NEC PD78F9489 — CHAPTER 13 LCD CONTROLLER/DRIVER diagram (page 264)
Fig. 90

0 0 1 0 1 0 0 0 1 0 1 1 0 0 1 0 0 0 1 0 0 0 1 0 1 0 0 0

0 1 1 0 0 1 0 1 0 1 1 1 0 1 1 1 0 1 1 1 0 1 1 0 0 1 0 1

0 1 0 1 0 0 1 0 1 0 1

0 0 0 1 0 1 1 0 1 0 0 0 1 0 1 1 0

Data memory address · LCD panel

Page 265 of the NEC PD78F9489 user manual — CHAPTER 13 LCD CONTROLLER/DRIVER
Page 265 · click to enlarge
Page 265

CHAPTER 13 LCD CONTROLLER/DRIVER

Figure 13-14. Four-Time-Slice LCD Drive Waveform Examples (1/3 Bias Method)

T F

V LC2 COM0

V SS

V LC2 COM1

V SS

V LC2 COM2

V SS

V LC2 COM3

V SS

V LC2 S16

V SS

+V LCD

+1/3V LCD

0 COM0-S16

-1/3V LCD

-V LCD

+V LCD

+1/3V LCD

0 COM1-S16

-1/3V LCD

-V LCD

Remark The waveforms of COM2-S16 and COM3-S16 are omitted.

Page 266 of the NEC PD78F9489 user manual — Figure 13-15. Example of Connecting Pins for LCD Driver
Page 266 · click to enlarge
Page 266

CHAPTER 13 LCD CONTROLLER/DRIVER

13.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2

The µPD789489 Subseries contains a booster circuit (×3 only) to generate a supply voltage to drive the LCD. The

internal LCD reference voltage is output from the VLC2 pin. A voltage two times higher than that on VLC2 is output from

the VLC1 pin and a voltage three times higher than that on VLC2 is output from the VLC0 pin.

The LCD reference voltage (VLC2) can be specified by setting LCD boost control register 0 (LCDVA0).

The µPD789489 Subseries requires an external capacitor (recommended value: 0.47 µF) because it employs a

capacitance division method to generate a supply voltage to drive the LCD.

Table 13-7. Output Voltages of V LC0 to V LC2 Pins

LCDVA0 GAIN = 0 GAIN = 1

LCD drive power supply pin

V LC0 4.5 V 3.0 V

V LC1 3.0 V 2.0 V

VLC2 (LCD reference voltage) 1.5 V 1.0 V

Figure 13-15 for connection.

2. Since the LCD drive voltage is separate from the main power supply, a constant voltage

can be supplied regardless of VDD fluctuation.

Figure 13-15. Example of Connecting Pins for LCD Driver

C2 C3 C4

CAPH

CAPL

C1 = C2 = C3 = C4 = 0.47 F

Remark Use a capacitor with as little leakage as possible.

In addition, make C1 a nonpolar capacitor.

µ · External pin

Page 267 of the NEC PD78F9489 user manual — (2) Multiplication data registers A and B (MRA0 and MRB0)
Page 267 · click to enlarge
Page 267

CHAPTER 14 MULTIPLIER

14.1 Multiplier Function

The multiplier has the following function.

  • Calculation of 8 bits × 8 bits = 16 bits

14.2 Multiplier Configuration

(1) 16-bit multiplication result storage register 0 (MUL0)

This register stores the 16-bit result of multiplication.

This register holds the result of multiplication after 16 CPU clocks have elapsed.

MUL0 is set with a 16-bit memory manipulation instruction.

RESET input makes this register undefined.

also be manipulated with an 8-bit memory manipulation instruction. When using an 8-bit

memory manipulation instruction, however, access the register by means of direct

addressing.

(2) Multiplication data registers A and B (MRA0 and MRB0)

These are 8-bit multiplication data storage registers. The multiplier multiplies the values of MRA0 and MRB0.

MRA0 and MRB0 are set with an 8-bit memory manipulation instructions.

RESET input makes these registers undefined.

Figure 14-1 shows the block diagram of the multiplier.

Page 268 of the NEC PD78F9489 user manual — CHAPTER 14 MULTIPLIER
Page 268 · click to enlarge
Page 268

CHAPTER 14 MULTIPLIER

Figure 14-1. Block Diagram of Multiplier

Multiplication data register A (MRA0)

Multiplication data register B (MRB0)

16-bit multiplication result storage register 0 (Master) (MUL0)

16-bit multiplication result storage register 0 (Slave)

Multiplier control register 0 (MULC0)

Show 10 more labels / short text on this page
Internal bus · Counter value · Selector · 3 CPU clock · 3-bit counter · Start Clear · Counter output · 16-bit adder · MULST0 Reset · Internal bus
Page 269 of the NEC PD78F9489 user manual — FFD2H 00H R/W
Page 269 · click to enlarge
Page 269

CHAPTER 14 MULTIPLIER

14.3 Multiplier Control Register

The multiplier is controlled by the following register.

  • Multiplier control register 0 (MULC0)

(1) Multiplier control register 0 (MULC0)

MULC0 indicates the operating status of the multiplier after operation, as well as controls the multiplier.

MULC0 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input clears this register to 00H.

Figure 14-2. Format of Multiplier Control Register 0

Symbol Address After reset R/W

7 6 5 4 3 2 1

0 MULST0 MULC0

FFD2H 00H R/W

MULST0

Multiplier operation start control bit

Operating status of multiplier

Stop operation after resetting counter to 0.

Operation stopped · Enable operation · Operation in progress

Page 270 of the NEC PD78F9489 user manual — MRA0
Page 270 · click to enlarge
Page 270

CHAPTER 14 MULTIPLIER

14.4 Multiplier Operation

The multiplier of the µPD789489 Subseries can execute the calculation of 8 bits × 8 bits = 16 bits. Figure 14-3

shows the operation timing of the multiplier where MRA0 is set to AAH and MRB0 is set to D3H.

Counting is started by setting MULST0.

The data generated by the selector is added to the data of MUL0 at each CPU clock, and the counter value

is incremented by one.

If MULST0 is cleared when the counter value is 111B, the operation is stopped. At this time, MUL0 holds the

data.

While MULST0 is low, the counter and slave are cleared.

Figure 14-3. Multiplier Operation Timing (Example of AAH × D3H)

MRA0

AA

MRB0

D3

MULST0

000B

001B 010B 011B 100B 101B 110B 111B 000B

00AA

0154 0000 0000 0AA0 0000 2A80 5500 00AA

00AA 01FE 01FE 01FE 0C9E 0C9E 371E 8C1E

00AA 01FE 01FE 01FE 0C9E 0C9E 371E 0000

Show 5 more labels / short text on this page
CPU clock · Counter · Selector output · MUL0 (Master) · (Slave)
Page 271 of the NEC PD78F9489 user manual — Table 15-1. Remote Controller Receiver Configuration
Page 271 · click to enlarge
Page 271

CHAPTER 15 REMOTE CONTROLLER RECEIVER ( µ PD789489, 78F9489 ONLY)

15.1 Remote Controller Receiver Functions

The remote controller receiver uses the following remote controller modes.

  • Type A reception mode … Guide pulse (half clock) provided

15.2 Remote Controller Receiver Configuration

The remote controller receiver includes the following hardware.

Table 15-1. Remote Controller Receiver Configuration

Registers Remote controller receive shift register (RMSR)

Remote controller receive data register (RMDR)

Remote controller shift register receive counter register (RMSCR)

Remote controller receive GPHS compare register (RMGPHS)

Remote controller receive GPHL compare register (RMGPHL)

Remote controller receive DLS compare register (RMDLS)

Remote controller receive DLL compare register (RMDLL)

Remote controller receive DH0S compare register (RMDH0S)

Remote controller receive DH0L compare register (RMDH0L)

Remote controller receive DH1S compare register (RMDH1S)

Remote controller receive DH1L compare register (RMDH1L) Remote controller receive end width select register (RMER)

Control register Remote controller receive control register (RMCN)

Item Configuration

Page 272 of the NEC PD78F9489 user manual — Caution Reading RMSR is disabled during remote controller reception. Complete reception, then
Page 272 · click to enlarge
Page 272

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

Figure 15-1. Block Diagram of Remote Controller Receiver

INTRIN

RMIN RMEN NCW

Remote controller shift register receive counter register

RMGPHS RMGPHL

INTDFULL

RMDLS RMDLL

(RMSCR)

RMDH0S RMDH0L

INTGP

RMDH1S RMDH1L

INTRERR INTREND

End-width select register (RMER)

NCW RMEN

RMIN PRSEN RMCK1 RMCK0

Remote controller receive control register (RMCN)

(1) Remote controller receive shift register (RMSR)

This is an 8-bit register for reception of remote controller data.

Data is stored in bit 7 first. Each time new data is stored, the stored data is shifted to the lower bits. Therefore,

the latest data is stored in bit 7, and the first data is stored in bit 0.

RMSR is read with an 8-bit memory manipulation instruction.

RESET input sets RMSR to 00H.

Also, RMSR is cleared to 00H under any of the following conditions.

  • Remote controller stops operation (RMEN = 0).
  • Error is detected (INTRERR is generated).
  • INTDFULL is generated.
  • RMSR is read after INTREND has been generated.

Caution Reading RMSR is disabled during remote controller reception. Complete reception, then

read RMSR. When the reading operation is complete, RMSR is cleared. Therefore, values

once read are not guaranteed.

Show 20 more labels / short text on this page
Input control · RIN/P34 Noise canceler · Edge detection · Remote controller receive · data register (RMDR) · Clock counter · Remote controller receive · shift register (RMSR) · Data detection · Compare register · Comparator · Register selection · fX/2 · Selector · fX/2 · fX/2 · fXT · Selection control · signal · Internal bus
Page 273 of the NEC PD78F9489 user manual — Figure 15-2. Operation Examples of RMSR, RMSCR, and RMDR Registers
Page 273 · click to enlarge
Page 273

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

(2) Remote controller receive data register (RMDR)

This register holds the remote controller reception data. When the remote controller receive shift register

(RMSR) overflows, the data in RMSR is transferred to RMDR. Bit 7 stores the last data, and bit 0 stores the

first data. INTDFULL is generated at the same time as data is transferred from RMSR to RMDR.

RMDR is read with an 8-bit memory manipulation instruction.

RESET input sets RMDR to 00H.

When the remote controller operation is disabled (RMEN = 0), RMDR is cleared to 00H.

next INTDFULL is generated before the read operation is complete, RMDR is overwritten.

(3) Remote controller shift register receive counter register (RMSCR)

This is an 8-bit counter register used to indicate the number of valid bits remaining in the remote controller

receive shift register (RMSR) when remote controller reception is complete (INTREND is generated). Reading

the values of this register allows confirmation of the number of bits, even if the received data is in a format

other than an integral multiple of 8 bits.

RMSCR is read with an 8-bit memory manipulation instruction.

RESET input sets RMSCR to 00H.

It is cleared to 00H under any of the following conditions.

  • Remote controller stops operation (RMEN = 0).
  • Error is detected (INTRERR is generated).
  • RMSR is read after INTREND has been generated.

reading occurs at another timing, the value is not guaranteed.

Figure 15-2. Operation Examples of RMSR, RMSCR, and RMDR Registers

When Receiving 1010101011111111B (16 Bits)

NEC PD78F9489 — Figure 15-2. Operation Examples of RMSR, RMSCR, and RMDR Registers diagram (page 273)
Fig. 91 · Figure 15-2. Operation Examples of RMSR, RMSCR, and…

After reset 00H 00000000B

Receiving 1 bit 1 01H 00000000B

Receiving 2 bits 0 1 02H 00000000B

Receiving 3 bits 1 0 1 03H 00000000B

Receiving 7 bits 1 0 1 0 1 0 1 0 07H 00000000B

Receiving 9 bits 1 01H 01010101B

Receiving 10 bits 1 1 02H 01010101B

Show 4 more labels / short text on this page
Receiving 8 bits · ↓ RMDR transfer · Receiving 16 bits · ↓ RMDR transfer
Page 274 of the NEC PD78F9489 user manual — RIN
Page 274 · click to enlarge
Page 274

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

(4) Remote controller receive GPHS compare register (RMGPHS)

This register is used to detect the high level of a remote controller guide pulse (short side).

RMGPHS is set with an 8-bit memory manipulation instruction.

RESET input sets RMGPHS to 00H.

(5) Remote controller receive GPHL compare register (RMGPHL)

This register is used to detect the high level of a remote controller guide pulse (long side).

RMGPHL is set with an 8-bit memory manipulation instruction.

RESET input sets RMGPHL to 00H.

RIN

Guide pulse If RMGPHS ≤ counter value < RMGPHL is satisfied, it is assumed that the high level of the guide pulse has been successfully received.

(6) Remote controller DLS compare register (RMDLS)

This register is used to detect the low level of a remote controller data (short side).

RMDLS is set with an 8-bit memory manipulation instruction.

RESET input sets RMDLS to 00H.

(7) Remote controller receive DLL compare register (RMDLL)

This register is used to detect the low level of a remote controller data (long side).

RMDLL is set with an 8-bit memory manipulation instruction.

RESET input sets RMDLL to 00H.

RIN

If RMDLS ≤ counter value < RMDLL is satisfied, it is assumed that the low level of data 0 or data 1 has been successfully received.

Show 11 more labels / short text on this page
Counter value · RMGPHS register value · RMGPHL register value · Allowable · range · Counter value · Data 0/data 1 · RMDLS register value · RMDLL register value · Allowable · range
Page 275 of the NEC PD78F9489 user manual — RIN
Page 275 · click to enlarge
Page 275

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

(8) Remote controller receive DH0S compare register (RMDH0S)

This register is used to detect the high level of remote controller data 0 (short side).

RMDH0S is set with an 8-bit memory manipulation instruction.

RESET input sets RMDH0S to 00H.

(9) Remote controller receive DH0L compare register (RMDH0L)

This register is used to detect the high level of remote controller data 0 (long side).

RMDH0L is set with an 8-bit memory manipulation instruction.

RESET input sets RMDH0L to 00H.

RIN

Data 0 If RMDH0S ≤ counter value < RMDH0L is satisfied, it is assumed that the high level of data 0 has been successfully received, and therefore RMSR receives the data.

(10) Remote controller receive DH1S compare register (RMDH1S)

This register is used to detect the high level of remote controller data 1 (short side).

RMDH1S is set with an 8-bit memory manipulation instruction.

RESET input sets RMDH1S to 00H.

(11) Remote controller receive DH1L compare register (RMDH1L)

This register is used to detect the high level of remote controller data 1 (long side).

RMDH1L is set with an 8-bit memory manipulation instruction.

RESET input sets RMDH1L to 00H.

RIN

Data 1 If RMDH1S ≤ counter value < RMDH1L is satisfied, it is assumed that the high level of data 1 has been successfully received, and therefore RMSR receives the data.

Show 10 more labels / short text on this page
Counter value · RMDH0S register value · RMDH0L register value · Allowable · range · Counter value · RMDH1S register value · RMDH1L register value · Allowable · range
Page 276 of the NEC PD78F9489 user manual — RMDLS, RMDLL, RMDH0S, RMDH0L, RMDH1S, and RMDH1L), disable remote controller
Page 276 · click to enlarge
Page 276

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

(12) Remote controller receive end-width select register (RMER)

This register determines the interval between the timing at which the INTREND signal is output.

RMER is set with an 8-bit memory manipulation instruction.

RESET input sets RMER to 00H.

RIN

Counter value = RMER Data

RMDLL

INTREND

RMDLS, RMDLL, RMDH0S, RMDH0L, RMDH1S, and RMDH1L), disable remote controller

reception (bit 7 (RMEN) of the remote controller receive control register (RMCN) = 0) first,

and then change the value.

Counter

Page 277 of the NEC PD78F9489 user manual — Figure 15-3. Format of Remote Controller Receive Control Register (1/2)
Page 277 · click to enlarge
Page 277

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

15.3 Registers to Control Remote Controller Receiver

The remote controller receiver is controlled by the following register.

  • Remote controller receive control register (RMCN)

(1) Remote controller receive control register (RMCN)

This register is used to enable/disable remote controller reception and to set the noise elimination width, clock

internal division, input invert signal, and source clock.

RMCN is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets RMCN to 00H.

Figure 15-3. Format of Remote Controller Receive Control Register (1/2)

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W

NEC PD78F9489 — Figure 15-3. Format of Remote Controller Receive Control Register (1/2) diagram (page 277)
Fig. 92 · Figure 15-3. Format of Remote Controller Receive Con…

RMCN RMEN NCW PRSEN RMIN 0 0 RMCK1 RMCK0 FF60H 00H R/W

NEC PD78F9489 — Figure 15-3. Format of Remote Controller Receive Control Register (1/2) diagram (page 277)
Fig. 93 · Figure 15-3. Format of Remote Controller Receive Con…

0 Clock not divided internally (fPRS = fREM)

1 Clock internally divided into two (fPRS = fREM/2)

2. To change the values of NCW, PRSEN, RMIN, RMCK1, and RMCK0, disable remote

controller reception (RMEN = 0) first.

Remarks 1. fREM: Source clock of remote controller counter (selected by bits 0 and 1 (RMCK0 and RMCK1)

2. f PRS : Operation clock inside remote controller receiver
Page 278 of the NEC PD78F9489 user manual — Figure 15-3. Format of Remote Controller Receive Control Register (2/2)
Page 278 · click to enlarge
Page 278

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

Figure 15-3. Format of Remote Controller Receive Control Register (2/2)

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W

RMCN RMEN NCW PRSEN RMIN 0 0 RMCK1 RMCK0 FF60H 00H R/W

RMCK1 RMCK0 Selection of source clock (fREM) of remote controller counter

0 0 fX/2

0 1 fX/2

1 0 fX/2

1 1 fXT (32.768 kHz)

2. To change the values of NCW, PRSEN, RMIN, RMCK1, and RMCK0, disable remote

controller reception (RMEN = 0) first.

Remarks 1. f XOscillation frequency of main system clock
2. f XT : Oscillation frequency of subsystem clock
3. The parenthesized values apply to operation at f X = 4.0 MHz and f XT = 32.768 kHz.

6 (625 kHz) · 7 (313 kHz) · 8 (156 kHz)

Page 279 of the NEC PD78F9489 user manual — RIN
Page 279 · click to enlarge
Page 279

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

15.4 Operation of Remote Controller Receiver

The following remote controller reception mode is used for this remote controller receiver.

  • Type A reception mode with guide pulse (half clock)

15.4.1 Format of type A reception mode

Figure 15-4 shows the data format for type A.

Figure 15-4. Example of Type A Data Format

0.6 ms 1.8 ms 1.2 ms 2.4 ms

RIN

INTRIN

INTGP

INTDFULL

INTREND

RMDLL

RMER

15.4.2 Operation flow of type A reception mode

Figure 15-5 shows the operation flow.

2. When data has been set to all the bits of RMSR, the following processing is automatically

performed.

  • The value of RMSR is transferred to RMDR.
  • INTDFULL is generated.
  • RMSR is cleared.

RMDR must then be read before the next data is set to all the bits of RMSR.

3. When INTREND has been generated, read RMSCR first followed by RMSR.

When RMSR has been read, RMSCR and RMSR are automatically cleared.

If INTREND is generated, the next data cannot be received until RMSR is read.

4. RMSR, RMSCR, and RMDR are cleared simultaneously to operation termination (RMEN = 0).
Show 19 more labels / short text on this page
Data · Data · Data · Data · Data · Data · Data · Data · Guide pulse · Data · “0” · “1” · “1” · “0” · “0” · “0” · “0” · “0” · “0”
Page 280 of the NEC PD78F9489 user manual — END
Page 280 · click to enlarge
Page 280

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

Figure 15-5. Operation Flow of Type A Reception Mode

Operation enabled (RMEN = 1)

Clear RMSR and RMSCR

Set data to RMSR

of RMSR OK? No

Set data to all bits

RMSR → RMDR

Clear RMSR and RMSCR

: Software processing (User executes via program)

Terminate operation (RMEN = 0)

: Hardware processing (Macro automatically performs)

END

Show 35 more labels / short text on this page
Start · Set compare registers · No · Guide pulse high · level width OK? · Yes · Generate INTGP · No · Data low level · width OK? · Generate INTRERR · Read RMDR · Yes · Data high level · No · width OK? · No · Yes · Longer than END · interval? · Yes · Generate INTREND · Yes · Read RMSCR · Yes · Read RMSR · Generate INTDFULL · Clear RMSR · Process received data · No · Receive operation · completed · Yes · Clear RMSR, RMSCR, · and RMDR
Page 281 of the NEC PD78F9489 user manual — RIN
Page 281 · click to enlarge
Page 281

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

15.4.3 Timing

Operation varies depending on the positions of the RIN input waveform below.

(1) Guide pulse high level width determination

NEC PD78F9489 — (1) Guide pulse high level width determination diagram (page 281)
Fig. 94 · (1) Guide pulse high level width determination

RIN

RIN

RIN

NEC PD78F9489 — RIN diagram (page 281)
Fig. 95
Counter < PMGPHS <1>Short Measuring guide pulse high-level width is started

PMGPHS ≤ counter < PMGPHL : Within the range INTGP is generated.

PMGPHL ≤ counter <3>Long Measuring guide pulse high-level width is started

(2) Data low level width determination

NEC PD78F9489 — (2) Data low level width determination diagram (page 281)
Fig. 96 · (2) Data low level width determination

RIN

RIN

RIN

NEC PD78F9489 — RIN diagram (page 281)
Fig. 97

Counter < RMDLS : Short Error interrupt INTRERR is generated. Measuring guide pulse high-level width is started.

RMDLS ≤ counter < RMDLL : Within the range Measuring data high-level width is started.

RMDLL ≤ counter : Long Measuring the end width is started from the ∆ point.

Show 4 more labels / short text on this page
<1> <2> <3> · range · <1> <2> <3> · ∆
Page 282 of the NEC PD78F9489 user manual — (3) Data high level width determination
Page 282 · click to enlarge
Page 282

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

(3) Data high level width determination

RIN

RIN

RIN

RIN

RIN

RMDH0S

RMDH0L

RMDH1S

RMDH1L

Position of Waveform Corresponding Operation

Counter < RMDH0S : Short Error interrupt INTRERR is generated.

Measuring the guide pulse high-level width is started at the next rising edge.

RMDH0S ≤ counter < RMDH0L : Within the range Data 0 is received.

Measuring data low-level width is started.

RMDH0L ≤ counter < RMDH1S : Outside of the

Error interrupt INTRERR is generated.

Measuring the guide pulse high-level width is started at the next rising edge.

RMDH1S ≤ counter < RMDH1L : Within the range Data 1 is received.

Measuring the data low-level width is started.

RMDH1L ≤ counter : Long Error interrupt INTRERR is generated at the ∆ point.

Measuring the guide pulse high-level width is started at the next rising edge.

Show 8 more labels / short text on this page
<1> <2> <3> · <5> <4> · Allowable · Allowable · range · range ∆ · Relationship Between RMDH0S/RMDH0L/RMDH1S/RMDH1L/Counter · range
Page 283 of the NEC PD78F9489 user manual — 15.4.4 Compare register setting
Page 283 · click to enlarge
Page 283

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

(4) End width determination

RIN

RIN

RMDLS

RMDLL

RMER

Relationship Between RMER/Counter Position of Waveform Corresponding Operation

Counter < RMER : Short Error interrupt INTRERR is generated.

Measuring the guide pulse high-level width is started.

RMER ≤ counter : Long INTREND is generated at the ∆ point.

Reception via circuit stops until RMSR is read.

15.4.4 Compare register setting

This remote controller receiver has the following 9 types of compare registers.

  • Remote controller receive GPHS compare register (RMGPHS)
  • Remote controller receive GPHL compare register (RMGPHL)
  • Remote controller receive DLS compare register (RMDLS)
  • Remote controller receive DLL compare register (RMDLL)
  • Remote controller receive DH0S compare register (RMDH0S)
  • Remote controller receive DH0L compare register (RMDH0L)
  • Remote controller receive DH1S compare register (RMDH1S)
  • Remote controller receive DH1L compare register (RMDH1L)
  • Remote controller receive end width select register (RMER)

Use formulas (1) to (3) below to set the value of each compare register.

Making allowances for tolerance enables a normal reception operation, even if the RIN input waveform is RIN_1 or

RIN_2 shown in Figure 15-6 due to the effect of noise.

2. Set the set values so that they satisfy all the following three conditions.
  • RMGPHS < RMGPHL
  • RMDLS < RMDLL
  • RMDH0S < RMDH0L ≤ RMDH1S < RMDH1L

· ∆

Page 284 of the NEC PD78F9489 user manual — (3) Formula for RMER
Page 284 · click to enlarge
Page 284

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

Figure 15-6. Setting Example (Where n1 = 1, n2 = 2)

RIN

T W

T WE

RMGPHS/RMDH0S/RMDH1S

RMDLS

RMDLL

RMER

RMGPHL/RMDH0L/RMDH1L

RIN_1

RIN_2

(1) Formula for RMGPHS, RMDLS, RMDH0S, and RMDH1S

TW × (1 − a/100)

− 2 − n1

(2) Formula for RMGPHL, RMDLL, RMDH0L, and RMDH1L

TW × (1 + a/100)

+ 1 + n2

(3) Formula for RMER

TWE × (1 − a/100)

T WWidth of RIN input waveform
1/f PRSWidth of internal operation clock cycle after division control by PRSEN

a: Tolerance (%)

[ ] INT: Round down the fractional portion of the value produced by the formula in the brackets.

n1, n2Variables of waveform change caused by noise Note1
T WEEnd width of RIN input Note2
2. This end width is counted after RMDLL.

The low-level width actually required after the last data has been received is as follows:

(RMDLL + 1 + RMER + 1) × (width of internal operation clock cycle after division control by PRSEN)

Show 7 more labels / short text on this page
Clock · n1 · n2 · 1/fPRS INT · 1/fPRS INT · − 1 · 1/fPRS INT
Page 285 of the NEC PD78F9489 user manual — 15.4.5 Error interrupt generation timing
Page 285 · click to enlarge
Page 285

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

15.4.5 Error interrupt generation timing

After the guide pulse has been detected normally, the INTRERR signal is generated under any of the following

conditions.

  • Counter < RMDLS at the rising edge of RIN
  • RMDLL ≤ counter and counter after RMDLL < RMER at the rising edge of RIN
  • Counter < RMDH0S at the falling edge of RIN
  • RMDH0L ≤ counter < RMDH1S at the falling edge of RIN
  • Register changes so that RMDH1L ≤ counter while RIN is at high level

The INTRERR signal is not generated until the guide pulse is detected.

Once the INTRERR signal has been generated, it will not be generated again until the next guide pulse is detected.

The generation timing of the INTRERR signal is shown in Figure 15-7.

Page 286 of the NEC PD78F9489 user manual — INTRERR
Page 286 · click to enlarge
Page 286

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

Figure 15-7. Generation Timing of INTRERR Signal

RMGPHL

RMDLL

RMDH1L

RMDH1S RMDH0L

RMDLS

RMER

RMGPHS

RMDH0S

RIN

INTRERR

RIN

Example 1 Counter < RMGPHS → INTRERR is not generated.

INTRERR

RIN

Example 2 RMGPHL ≤ counter → INTRERR is not generated.

INTRERR

RIN

Example 3 Counter < RMDLS → INTRERR is generated.

INTRERR

RIN

Example 4 RMDLL ≤ counter and counter < RMER → INTRERR is generated.

INTRERR

RIN

Example 5 RMDLL ≤ counter and RMER ≤ counter → INTRERR is not generated. → INTREND is generated.

INTRERR

INTREND

RIN

Example 6 Counter < RMDH0S → INTRERR is generated.

INTRERR

RIN

Example 7 RMDH0L ≤ counter ≤ RMDH1S → INTRERR is generated.

INTRERR

RIN

Example 8 RMDH1L ≤ counter → INTRERR is generated.

INTRERR

Show 4 more labels / short text on this page
Basic waveform · · ·
Page 287 of the NEC PD78F9489 user manual — Table 15-2. Noise Elimination Width
Page 287 · click to enlarge
Page 287

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

15.4.6 Noise elimination

This remote controller receiver provides a function that supplies the signals input from the outside to the RIN pin

after eliminating noise.

Noise width can be eliminated by setting bit 5 (PRSEN) and bit 6 (NCW) of the remote controller receive control

register (RMCN) as shown in Figure 15-2.

Table 15-2. Noise Elimination Width

NCW Noise Elimination Width Control

Internal Operation Clock Cycle After

Division Control by PRSEN (1/fPRS)

0 0 1/fREM Less than 1/fREM

0 1 1/fREM Less than 2/fREM

1 0 2/fREM Less than 2/fREM

1 1 2/fREM Less than 4/fREM

Remark f REMSource clock of remote controller counter

A noise elimination operation is performed by using the internal operation clock after division control by PRSEN.

Then, after the external input signal from RIN pin has been synchronized with the clock,

If NCW = 0, the signal after sampling is performed twice is processed as a RIN input in the circuit.

If NCW = 1, the signal after sampling is performed three times is processed as a RIN input in the circuit.

The following shows the flow of a noise elimination operation.

Select whether or not the internal operation clock is divided by PRSEN.

PRSEN = 0Not divided (f PRS = f REM )
PRSEN = 1Divided (f PRS = f REM /2)

Synchronize the external input signal from the RIN pin with the internal operation clock.

Generate a signal (samp1) sampling the synchronized signal for the first time.

(The signal is later than the synchronized signal by one clock.)

Generate a signal (samp2) sampling the synchronized signal and samp1 for the second time.

(When synchronized signal = samp1 = H, samp1 is latched.)

Generate a signal (samp3) sampling the synchronized signal and samp2 for the third time.

(When synchronized signal = samp2 = H, samp2 is latched.)

Select a signal to be the RIN input in the circuit using NCW.

NCW = 0: samp2 is processed as the RIN input in the circuit.

NCW = 1: samp3 is processed as the RIN input in the circuit.

Figure 15-8 shows an example of a noise elimination operation.

Show 5 more labels / short text on this page
PRSEN Division · Eliminatable Noise · Control Signal · Signal · Width
Page 288 of the NEC PD78F9489 user manual — (b) 2-clock noise elimination (PRSEN = 0, NCW = 1)
Page 288 · click to enlarge
Page 288

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

Figure 15-8. Noise Elimination Operation Example (1/2)

(a) 1-clock noise elimination (PRSEN = 0, NCW = 0)

RIN

H

Since synchronized signal = samp1 = H is not satisfied, samp1 is not latched. L

Delayed by 2 to 3 clocks

Remark Internal RIN is a signal after synchronization and sampling are performed twice, and is therefore later

than the actual signal input from the outside to the RIN pin by two to three clocks.

(b) 2-clock noise elimination (PRSEN = 0, NCW = 1)

RIN

H

H

H

Since synchronized signal = samp1 = H, samp1 is latched from this point and later.

Since synchronized signal = samp2 = H is not satisfied, samp2 is not latched.

Delayed by 3 to 4 clocks

Remark Internal RIN is a signal after synchronization and sampling are performed three times, and is therefore

later than the actual signal input from the outside to the RIN pin by 3 to 4 clocks.

Show 15 more labels / short text on this page
Clock · RIN (ideal) · Noise · Synchronization · samp1 · samp2 · Internal RIN · Clock · Clock RIN (ideal) · Noise · Synchronization · samp1 · samp2 · samp3 · Internal RIN
Page 289 of the NEC PD78F9489 user manual — (d) 4-clock noise elimination (PRSEN = 1, NCW = 1)
Page 289 · click to enlarge
Page 289

CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

Figure 15-8. Noise Elimination Operation Example (2/2)

(c) 2-clock noise elimination (PRSEN = 1, NCW = 0)

RIN

H

Since synchronized signal = samp1 = H is not satisfied, samp1 is not latched. L

Delayed by 4 to 6 clocks

Remark Internal RIN is a signal after synchronization and sampling are performed twice, and is therefore later

than the actual signal input from the outside to the RIN pin by 4 to 6 clocks.

(d) 4-clock noise elimination (PRSEN = 1, NCW = 1)

RIN

H

H

H

Since synchronized signal = samp1 = H, samp1 is latched.

Since synchronized signal = samp2 = H is not satisfied, samp2 is not latched.

Delayed by 6 to 8 clocks

Remark Internal RIN is a signal after synchronization and sampling are performed three times, and is therefore

later than the actual signal input from the outside to the RIN pin by 6 to 8 clocks.

Show 17 more labels / short text on this page
Clock · Clock divider · RIN (ideal) · Noise · Synchronization · samp1 · samp2 · Internal RIN · Clock · Clock divider · RIN (ideal) · Noise · Synchronization · samp1 · samp2 · samp3 · Internal RIN
Page 290 of the NEC PD78F9489 user manual — 16.2 Interrupt Sources and Configuration
Page 290 · click to enlarge
Page 290

CHAPTER 16 INTERRUPT FUNCTIONS

16.1 Interrupt Function Types

The following two types of interrupt functions are used.

(1) Non-maskable interrupt

This interrupt is acknowledged unconditionally. It does not undergo interrupt priority control and is given top

priority over all other interrupt requests.

A standby release signal is generated.

One interrupt source from the watchdog timer is incorporated as a non-maskable interrupt.

(2) Maskable interrupt

This interrupt undergoes mask control. If two or more interrupts with the same priority are simultaneously

generated, each interrupt has a predetermined priority as shown in Tables 16-1 and 16-2.

A standby release signal is generated.

For the µPD789488 and 78F9488, 5 external and 11 internal interrupt sources are incorporated as maskable

interrupts.

For the µPD789489 and 78F9489, 6 external and 16 internal interrupt sources are incorporated as maskable

interrupts.

16.2 Interrupt Sources and Configuration

A total of 17 non-maskable and maskable interrupts are incorporated as interrupt sources for the µPD789488 and

78F9488, and a total of 23 for the µPD789489 and 78F9489 (Tables 16-1 and 16-2).

Page 291 of the NEC PD78F9489 user manual — CHAPTER 16 INTERRUPT FUNCTIONS
Page 291 · click to enlarge
Page 291

CHAPTER 16 INTERRUPT FUNCTIONS

Table 16-1. Interrupt Sources (µPD789488, 78F9488)

NEC PD78F9489 — CHAPTER 16 INTERRUPT FUNCTIONS diagram (page 291)
Fig. 98

Non-maskable − INTWDT Watchdog timer overflow (with watchdog timer mode 1 selected)

0 INTWDT Watchdog timer overflow (with interval timer mode selected)

INTCSI20 End of 3-wire SIO transfer for serial interface 20

6 INTCSI10 End of 3-wire SIO transfer for serial interface 1A0

7 INTST20 End of UART transmission for serial interface 20

8 INTWTI Reference time interval signal of watch timer (WT)

11 INTTM60 Match between TM60 and CR60 (in 8-bit counter mode), and between TM50, TM60 and CR50, CR60 (in 16-bit timer mode)

15 INTKR00 Key return signal detection External 0024H (C)

− 0026H to 002CH Note 3

time. 0 is the highest priority and 15 is the lowest.

2. Basic configuration types (A), (B), and (C) correspond to (A), (B), and (C) in Figure 16-1.
3. There is no interrupt source that applies to 000EH and 0026H to 002CH of vector table address.

Remark Only one of the two watchdog timer interrupt (INTWDT) sources, non-maskable or maskable (internal),

can be selected.

Page 292 of the NEC PD78F9489 user manual — CHAPTER 16 INTERRUPT FUNCTIONS
Page 292 · click to enlarge
Page 292

CHAPTER 16 INTERRUPT FUNCTIONS

Table 16-2. Interrupt Sources (µPD789489, 78F9489)

NEC PD78F9489 — CHAPTER 16 INTERRUPT FUNCTIONS diagram (page 292)
Fig. 99

Non-maskable − INTWDT Watchdog timer overflow (with watchdog timer mode 1 selected)

0 INTWDT Watchdog timer overflow (with interval timer mode selected)

INTCSI20 End of 3-wire SIO transfer for serial interface 20

7 INTCSI10 End of 3-wire SIO transfer for serial interface 1A0

8 INTST20 End of UART transmission for serial interface 20

9 INTWTI Reference time interval signal of watch timer (WT)

12 INTTM60 Match between TM60 and CR60 (in 8-bit counter mode), and between TM50, TM60 and CR50, CR60 (in 16-bit timer mode)

16 INTKR00 Key return signal detection External 0024H (C)

20 INTDFULL Read request for remote controller 8-bit shift data

21 INTKR01 Key return signal detection External 002EH (C)

time. 0 is the highest priority and 21 is the lowest.

2. Basic configuration types (A), (B), and (C) correspond to (A), (B), and (C) in Figure 16-1.

Remark Only one of the two watchdog timer interrupt (INTWDT) sources, non-maskable or maskable (internal),

can be selected.

Page 293 of the NEC PD78F9489 user manual — IF
Page 293 · click to enlarge
Page 293

CHAPTER 16 INTERRUPT FUNCTIONS

Figure 16-1. Basic Configuration of Interrupt Function

(A) Internal non-maskable interrupt

Interrupt request Vector table address generator

(B) Internal maskable interrupt

MK

IE

Vector table address generator

IF

(C) External maskable interrupt

INTM0, INTM1, KRM00, KRM01

MK

IE

Vector table address generator

IF

INTM0External interrupt mode register 0
INTM1External interrupt mode register 1
KRM00Key return mode register 00
KRM01Key return mode register 01
IFInterrupt request flag
IEInterrupt enable flag
MKInterrupt mask flag
Show 9 more labels / short text on this page
Internal bus · Standby release signal · Internal bus · Interrupt request · Standby release signal · Internal bus · Interrupt request · Edge detector · Standby release signal
Page 294 of the NEC PD78F9489 user manual — KRMK01
Page 294 · click to enlarge
Page 294

CHAPTER 16 INTERRUPT FUNCTIONS

16.3 Registers Controlling Interrupt Function

The following five types of registers are used to control the interrupt functions.

  • Interrupt request flag registers (IF0 to IF2)
  • Interrupt mask flag registers (MK0 to MK2)
  • External interrupt mode registers (INTM0 and INTM1)
  • Program status word (PSW)
  • Key return mode registers (KRM00, KRM01)

Table 16-3 gives a listing of interrupt request flag and interrupt mask flag names corresponding to interrupt

requests.

Table 16-3. Flags Corresponding to Interrupt Request Signal Names

Interrupt Request Signal Name Interrupt Request Flag Interrupt Mask Flag

INTWDT

WDTIF

WDTMK

INTP0

PIF0

PMK0

INTP1

PIF1

PMK1

INTP2

PIF2

PMK2

INTP3

PIF3

PMK3

INTRIN

RINIF

RINMK

INTSR20/INTCSI20

SRIF20

SRMK20

INTCSI10

CSIIF10

CSIMK10

INTST20

STIF20

STMK20

INTWTI

WTIIF

WTIMK

INTTM20

TMIF20

TMMK20

INTTM50

TMIF50

TMMK50

INTTM60

TMIF60

TMMK60

INTTM61

TMIF61

TMMK61

INTAD0

ADIF0

ADMK0

INTWT

WTIF

WTMK

INTKR00

KRIF00

KRMK00

INTRERR

RERRIF

RERRMK

INTGP

GPIF

GPMK

INTREND

RENDIF

RENDMK

INTDFULL

DFULLIF

DFULLMK

INTKR01

KRIF01

KRMK01

Page 295 of the NEC PD78F9489 user manual — IF2 0 0 KRIF01
Page 295 · click to enlarge
Page 295

CHAPTER 16 INTERRUPT FUNCTIONS

(1) Interrupt request flag registers (IF0 to IF2)

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 to IF2 are set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets these registers to 00H.

Figure 16-2. Format of Interrupt Request Flag Registers

Symbol Address After reset R/W

IF0 CSIIF10 SRIF20 RINIF

Symbol Address After reset R/W

IF1 WTIF ADIF0 TMIF61 TMIF60 TMIF50 TMIF20 WTIIF STIF20 FFE1H 00H R/W

Symbol 7 6 Address After reset R/W

IF2 0 0 KRIF01

NEC PD78F9489 — IF2 0 0 KRIF01 diagram (page 295)
Fig. 100

1 An interrupt request signal is generated and an interrupt request made

interval timer. It must be cleared to 0 if the watchdog timer is used in watchdog timer

mode 1 or 2.

2. Because P30 to P33 function alternately as external interrupts, 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

to PMK3) before using the port in output mode.

Show 5 more labels / short text on this page
Not · DFULLIFNot · RENDIFNote GPIF · e · e
Page 296 of the NEC PD78F9489 user manual — GPMK
Page 296 · click to enlarge
Page 296

CHAPTER 16 INTERRUPT FUNCTIONS

(2) Interrupt mask flag registers (MK0 to MK2)

Interrupt mask flags are used to enable and disable the corresponding maskable interrupts.

MK0 to MK2 are set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets these registers to FFH.

Figure 16-3. Format of Interrupt Mask Flag Registers

Symbol Address After reset R/W

MK0 CSIMK10 SRMK20 RINMK

Symbol Address After reset R/W

MK1 WTMK ADMK0 TMMK61 TMMK60 TMMK50 TMMK20 WTIMK STMK20 FFE5H FFH R/W

Symbol 7 6 Address After reset R/W

MK2 1 1 KRMK01Note DFULLMKNot

GPMK

KRMK00 FFE6H FFH R/W

NEC PD78F9489 — GPMK diagram (page 296)
Fig. 101

read the WDTMK flag results in an undefined value being detected.

2. Because P30 to P33 function alternately as external interrupts, 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

to PMK3) before using the port in output mode.

Show 4 more labels / short text on this page
RENDMKNot · e · e · e
Page 297 of the NEC PD78F9489 user manual — Figure 16-4. Format of External Interrupt Mode Registers
Page 297 · click to enlarge
Page 297

CHAPTER 16 INTERRUPT FUNCTIONS

(3) External interrupt mode registers (INTM0, INTM1)

These registers are used to specify the valid edge for INTP0 to INTP3.

INTM0 and INTM1 are set with an 8-bit memory manipulation instruction.

RESET input sets these registers to 00H.

Figure 16-4. Format of External Interrupt Mode Registers

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W

INTM0 ES21 ES20 ES11 ES10 ES01 ES00 0 0 FFECH 00H R/W

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W

INTM1 0 ES31 ES30 FFEDH 00H R/W

NEC PD78F9489 — Figure 16-4. Format of External Interrupt Mode Registers diagram (page 297)
Fig. 102 · Figure 16-4. Format of External Interrupt Mode Regis…

Remark n = 0, 1, 2, and 3

2. Before setting INTM0 and INTM1, set (1) the interrupt mask flags (PMK0 to PMK3) to

disable interrupts.

To enable interrupts, clear (0) the interrupt request flags (PIF0 to PIF3), then clear (0) the

interrupt mask flags (PMK0 to PMK3).

Page 298 of the NEC PD78F9489 user manual — IE
Page 298 · click to enlarge
Page 298

CHAPTER 16 INTERRUPT FUNCTIONS

(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, and can be manipulated by using bit manipulation

instructions and dedicated instructions (EI and DI). When a vectored 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 16-5. Program Status Word Configuration

7 6 5 4 3 2 1 0

IE Z 0 AC 0 0 1 CY PSW

02H

Used in the execution of ordinary instructions

IE

Show 4 more labels / short text on this page
Symbol After reset · Interrupt acknowledgment enable/disable · Disabled · Enabled
Page 299 of the NEC PD78F9489 user manual — INTKR00
Page 299 · click to enlarge
Page 299

CHAPTER 16 INTERRUPT FUNCTIONS

(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 0).

KRM00 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Figure 16-6. Format of Key Return Mode Register 00

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W

KRM00 KRM007 KRM006 KRM005 KRM004 0 0 0 KRM000 FFF5H 00H R/W

NEC PD78F9489 — Figure 16-6. Format of Key Return Mode Register 00 diagram (page 299)
Fig. 103 · Figure 16-6. Format of Key Return Mode Register 00

1 Key return signal detected (P00 to P03 falling edge detection)

NEC PD78F9489 — Figure 16-6. Format of Key Return Mode Register 00 diagram (page 299)
Fig. 104 · Figure 16-6. Format of Key Return Mode Register 00

1 Key return signal detected (P0n falling edge detection)

Remark n = 4 to 7

2. Before setting KRM00, set (1) bit 0 (KRMK00) of MK2 to disable interrupts. To enable

interrupts, clear (0) KRMK00 after clearing (0) bit 0 (KRIF00) of IF2.

3. On-chip pull-up resistors are not automatically connected in input mode even when key

return signal detection is specified. Therefore, when detecting the key return signal,

connect the pull-up resistor of the corresponding bit using pull-up resistor option

register B0 (PUB0). Although these resistors are disconnected when the mode changes

to output, key return signal detection continues unchanged.

Figure 16-7. Block Diagram of Falling Edge Detector

NEC PD78F9489 — Figure 16-7. Block Diagram of Falling Edge Detector diagram (page 299)
Fig. 105 · Figure 16-7. Block Diagram of Falling Edge Detector

INTKR00

2. For selecting the pin to be used as falling edge input.

Standby release signal

Page 300 of the NEC PD78F9489 user manual — P64/ANI4/KR14 P65/ANI5/KR15
Page 300 · click to enlarge
Page 300

CHAPTER 16 INTERRUPT FUNCTIONS

(6) Key return mode register 01 (KRM01) ( µ PD789489, 78F9489 only)

This register is used to set the pin that is to detect the key return signal (falling edge of port 6).

KRM01 is set with a 1-bit or 8-bit memory manipulation instruction.

RESET input sets this register to 00H.

Figure 16-8. Format of Key Return Mode Register 01

Symbol 7 6 5 4 3 2 1 0 Address After reset R/W

KRM01 KRM017 KRM016 KRM015 KRM014 0 0 0 KRM010 FFF4H 00H R/W

KRM010 Control of key return signal detection

0 Key return signal not detected

1 Key return signal detected (P60 to P63 falling edge detection)

KRM01n Control of key return signal detection

0 Key return signal not detected

1 Key return signal detected (P6n falling edge detection)

Remark n = 4 to 7

2. Before setting KRM01, set bit 5 of MK2 (KRMK01 = 1) to disable interrupts. To enable

interrupts, clear KRMK01 after clearing bit 5 of IF2 (KRIF01 = 0)

3. If any of the pins specified for key return signal detection is low level, the key return

signal cannot be detected even if a falling edge is generated at other key return pins.

4. When even one of the P60/ANI0/KR10 to P67/ANI7/KR17 pins is used as an A/D input, set

KRM010 and KRM014 to KRM017 to 0.

Figure 16-9. Block Diagram of Falling Edge Detector

Key return mode register 01 (KRM01)

P60/ANI0/KR10 P61/ANI1/KR11

P62/ANI2/KR12

P63/ANI3/KR13

INTKR01 Falling edge detector

P64/ANI4/KR14 P65/ANI5/KR15

P66/ANI6/KR16

P67/ANI7/KR17 KRMK01

SelectorNote · Standby release signal

Page 301 of the NEC PD78F9489 user manual — Caution During non-maskable interrupt service program execution, do not input another non-maskable
Page 301 · click to enlarge
Page 301

CHAPTER 16 INTERRUPT FUNCTIONS

16.4 Interrupt Servicing Operation

16.4.1 Non-maskable interrupt request acknowledgment operation

The non-maskable interrupt request is unconditionally acknowledged even when interrupts are disabled. It is not

subject to interrupt priority control and takes precedence over all other interrupts.

When the non-maskable interrupt request is acknowledged, the PSW and PC are saved to the stack in that order,

the IE flag is reset to 0, the contents of the vector table are loaded to the PC, and then program execution branches.

Figure 16-10 shows the flow from non-maskable interrupt request generation to acknowledgment, Figure 16-11

shows the timing of non-maskable interrupt acknowledgment, and Figure 16-12 shows the acknowledgment operation

when a number of non-maskable interrupts are generated.

Caution During non-maskable interrupt service program execution, do not input another non-maskable

interrupt request; if it is input, the service program will be interrupted and the new non-

maskable interrupt request will be acknowledged.

Page 302 of the NEC PD78F9489 user manual — WDTIF
Page 302 · click to enlarge
Page 302

CHAPTER 16 INTERRUPT FUNCTIONS

Figure 16-10. Flow from Generation of Non-Maskable Interrupt Request to Acknowledgment

WDTM4 = 1 (watchdog timer mode

WDTM3 = 0 (non-maskable interrupt

Interrupt request is generated

WDTMWatchdog timer mode register
WDTWatchdog timer

Figure 16-11. Timing of Non-Maskable Interrupt Request Acknowledgment

Instruction Instruction Saving PSW and PC, and jump to interrupt servicing Interrupt servicing program CPU processing

WDTIF

Figure 16-12. Non-Maskable Interrupt Request Acknowledgment

NMI request (second) NMI request (first)

Show 16 more labels / short text on this page
Start · No · is selected) · Interval timer · Yes · No · WDT overflows · Yes · No · is selected) · Reset processing · Yes · Interrupt servicing starts · Main routine · First interrupt servicing · Second interrupt servicing
Page 303 of the NEC PD78F9489 user manual — IE = 1 ?
Page 303 · click to enlarge
Page 303

CHAPTER 16 INTERRUPT FUNCTIONS

16.4.2 Maskable interrupt request acknowledgment operation

A maskable interrupt request can be acknowledged when the interrupt request flag is set to 1 and the

corresponding interrupt mask flag is cleared to 0. A vectored interrupt is acknowledged in the interrupt enabled status

(when the IE flag is set to 1).

The time required to start the interrupt servicing after a maskable interrupt request has been generated is shown in

Table 16-4.

Refer to Figures 16-14 and 16-15 for the timing of interrupt request acknowledgement.

Table 16-4. Time from Generation of Maskable Interrupt Request to Servicing

Minimum Time Maximum Time

9 clocks 19 clocks

the BT or BF instruction.

Remark 1 clock(f CPU : CPU clock)

When two or more maskable interrupt requests are generated at the same time, they are acknowledged starting

from the one assigned the highest priority by the priority specification flag.

A pending interrupt is acknowledged when the status in which it can be acknowledged is set.

Figure 16-13 shows the algorithm of interrupt request acknowledgment.

When a maskable interrupt request is acknowledged, the PSW and PC are saved to the stack in that order, the IE

flag is reset to 0, the data in the vector table determined for each interrupt request is loaded to the PC, and execution

branches.

To return from interrupt servicing, use the RETI instruction.

Figure 16-13. Interrupt Request Acknowledgment Program Algorithm

xxIFx = 1 ?

Yes (Interrupt request generated)

xxMKx = 0 ?

IE = 1 ?

xxIFxInterrupt request flag
xxMKxInterrupt mask flag
IEFlag to control maskable interrupt request acknowledgment (1 = enable, 0 = disable)
Show 11 more labels / short text on this page
fCPU · Start · No · No · Yes · Interrupt request pending · No · Yes · Interrupt request pending · Vectored interrupt · servicing
Page 304 of the NEC PD78F9489 user manual — 16.4.3 Multiple interrupt servicing
Page 304 · click to enlarge
Page 304

CHAPTER 16 INTERRUPT FUNCTIONS

Figure 16-14. Interrupt Request Acknowledgment Timing (Example: MOV A, r)

CPU MOV A, r Saving PSW and PC, and jump to interrupt servicing

If the interrupt request has generated an interrupt request flag (xxIFx) by the time the instruction clocks under

execution, n clocks (n = 4 to 10), are n − 1, interrupt request acknowledgment processing will start following the

completion of the instruction under execution. Figure 16-14 shows an example using the 8-bit data transfer instruction

MOV A, r. Because this instruction is executed in 4 clocks, if an interrupt request is generated between the start of

execution and the 3rd clock, interrupt request acknowledgment processing will take place following the completion of

MOV A, r.

Figure 16-15. Interrupt Request Acknowledgment Timing

(When Interrupt Request Flag Is Generated in Final Clock Under Execution)

CPU NOP MOV A, r Saving PSW and PC, and jump to interrupt servicing

If the interrupt request flag (xxIFx) is generated in the final clock of the instruction, interrupt request

acknowledgment processing will begin after execution of the next instruction is complete.

Figure 16-15 shows an example whereby an interrupt request was generated in the 2nd clock of NOP (a 2-clock

instruction). In this case, the interrupt request will be processed after execution of MOV A, r, which follows NOP, is

complete.

are being accessed, interrupt requests will be held pending.

16.4.3 Multiple interrupt servicing

Multiple interrupt servicing, in which an interrupt request is acknowledged while another interrupt request being

serviced, can be executed using the priority order. If multiple interrupts are generated at the same time, they are

serviced in the order according to the priority assigned to each interrupt request in advance (refer to Tables 16-1 and

16-2).

Show 8 more labels / short text on this page
8 clocks · Clock · Interrupt servicing program · Interrupt · 8 clocks · Clock · Interrupt servicing program · Interrupt
Page 305 of the NEC PD78F9489 user manual — RETI
Page 305 · click to enlarge
Page 305

CHAPTER 16 INTERRUPT FUNCTIONS

Figure 16-16. Example of Multiple Interrupt Servicing

Example 1. Acknowledging multiple interrupts

INTyy servicing INTxx servicing

IE = 0

IE = 0

EI

EI

RETI

RETI

The interrupt request INTyy is acknowledged during the servicing of interrupt INTxx and multiple interrupts are

performed. Before each interrupt request is acknowledged, the EI instruction is issued and the interrupt request is

enabled.

Example 2. Multiple interrupt servicing is not performed because interrupts are disabled

INTyy servicing INTxx servicing

IE = 0

INTyy is held pending

RETI

IE = 0

RETI

Because interrupt requests are disabled (the EI instruction has not been issued) in the INTxx interrupt servicing,

the interrupt request INTyy is not acknowledged and multiple interrupt servicing is not performed. INTyy is held

pending and is acknowledged after INTxx servicing is completed.

IE = 0Interrupt requests disabled
Show 6 more labels / short text on this page
Main servicing · INTxx · INTyy · Main servicing · INTyy EI · INTxx
Page 306 of the NEC PD78F9489 user manual — CHAPTER 16 INTERRUPT FUNCTIONS
Page 306 · click to enlarge
Page 306

CHAPTER 16 INTERRUPT FUNCTIONS

16.4.4 Putting interrupt requests on hold

If an interrupt request (such as a maskable, non-maskable, or external interrupt) is generated when a certain type

of instruction is being executed, the interrupt request will not be acknowledged until the instruction is completed. Such

instructions (interrupt request pending instructions) are as follows.

  • Instructions that manipulate interrupt request flag registers (IF0 to IF2)
  • Instructions that manipulate interrupt mask flag registers (MK0 to MK2)
Page 307 of the NEC PD78F9489 user manual — (2) STOP mode
Page 307 · click to enlarge
Page 307

CHAPTER 17 STANDBY FUNCTION

17.1 Standby Function and Configuration

17.1.1 Standby function

The standby function is used to reduce the power consumption of the system and can be effected in the following

two modes.

(1) HALT mode

This mode is set when the HALT instruction is executed. The HALT mode stops the operation clock of the

CPU. The system clock oscillator continues oscillating. This mode does not reduce the power consumption

as much as the STOP mode, but is useful for resuming processing immediately when an interrupt request is

generated, or for intermittent operations.

(2) STOP mode

This mode is set when the STOP instruction is executed. The STOP mode stops the main system clock

oscillator and stops the entire system. The power consumption of the CPU can be substantially reduced in

this mode.

The data memory can be retained at a low voltage (VDD = 1.8 V). Therefore, this mode is useful for retaining

the contents of the data memory at an extremely low current.

The STOP mode can be released by an interrupt request, so that this mode can be used for intermittent

operation. However, some time is required until the system clock oscillator stabilizes after the STOP mode

has been released. If processing must be resumed immediately by using an interrupt request, therefore, use

the HALT mode.

In both modes, the previous contents of the registers, flags, and data memory before setting the standby mode are

all retained. In addition, the statuses of the output latches of the I/O ports and output buffers are also retained.

execute the STOP instruction.

Page 308 of the NEC PD78F9489 user manual — FFFAH 04H R/W
Page 308 · click to enlarge
Page 308

CHAPTER 17 STANDBY FUNCTION

17.1.2 Register controlling standby function

The wait time after the STOP mode is released upon interrupt request generation until oscillation stabilizes is

controlled by the oscillation stabilization time selection register (OSTS).

OSTS is set with an 8-bit memory manipulation instruction.

RESET input sets OSTS to 04H. However, it takes 215/fX, not 217/fX, to stabilize oscillation after RESET input.

Figure 17-1. Format of Oscillation Stabilization Time Selection Register

Symbol Address After reset

7 6 5 4 3 2 1 0

R/W

0 OSTS2 OSTS1 OSTS0 OSTS

FFFAH 04H R/W

OSTS2

OSTS1

OSTS0

Oscillation stabilization time selection

212/fX

215/fX

(6.55 ms)

217/fX

(26.2 ms)

release to clock oscillation start (“a” in the figure below), regardless of whether STOP mode is

released by RESET input or by interrupt generation.

X1 pin voltage waveform

Remarks 1. f XMain system clock oscillation frequency
2. The parenthesized values apply to operation at f X = 5.0 MHz.
Show 6 more labels / short text on this page
(819 s) · µ · Other than above · Setting prohibited · STOP mode release · a
Page 309 of the NEC PD78F9489 user manual — Table 17-1. Operation Statuses in HALT Mode
Page 309 · click to enlarge
Page 309

CHAPTER 17 STANDBY FUNCTION

17.2 Standby Function Operation

17.2.1 HALT mode

(1) HALT mode

The HALT mode is set by executing the HALT instruction.

The operation statuses in the HALT mode are shown in the following table.

Table 17-1. Operation Statuses in HALT Mode

NEC PD78F9489 — Table 17-1. Operation Statuses in HALT Mode diagram (page 309)
Fig. 106 · Table 17-1. Operation Statuses in HALT Mode

Clock generator Oscillation enabled for both main system clock and subsystem clock, but clock supply to CPU is

Ports (output latches) Status before HALT mode setting retained

2. Operation is enabled when either the subsystem clock or the input signal from timer 60 (when timer 60

is operable) is selected as the count clock.

3. Operation is enabled only when the external input clock is selected as the count clock.
4. Operation is enabled when the main system clock is selected.
5. Operation is enabled when the subsystem clock is selected.
6. Operation is enabled only when an external clock is selected.
7. The HALT instruction can be set after display instruction execution.
8. µ PD789489 and 78F9489 only.
9. Operation is enabled only for a maskable interrupt that is not masked.
Page 310 of the NEC PD78F9489 user manual — (b) Release by non-maskable interrupt request
Page 310 · click to enlarge
Page 310

CHAPTER 17 STANDBY FUNCTION

(2) Releasing HALT mode

The HALT mode can be released by the following three sources.

(a) Release by unmasked interrupt request

The HALT mode is released by an unmasked interrupt request. In this case, if interrupts are enabled to

be acknowledged, vectored interrupt servicing is performed. If interrupts are disabled, the instruction at

the next address is executed.

Figure 17-2. Releasing HALT Mode by Interrupt

Wait HALT mode Operation

Remarks 1. The broken lines indicate the case where the interrupt request that released the standby mode is

acknowledged.

2. The wait time is as follows:
  • When vectored interrupt servicing is performed: 9 to 10 clocks
  • When vectored interrupt servicing is not performed: 1 to 2 clocks

(b) Release by non-maskable interrupt request

The HALT mode is released regardless of whether interrupts are enabled or disabled, and vectored

interrupt servicing is performed.

Show 5 more labels / short text on this page
HALT instruction · Wait · Standby release signal · mode Operation mode · Clock Oscillation
Page 311 of the NEC PD78F9489 user manual — Table 17-2. Operation After Releasing HALT Mode
Page 311 · click to enlarge
Page 311

CHAPTER 17 STANDBY FUNCTION

(c) Release by RESET input

When the HALT mode is released by the RESET signal, execution branches to the reset vector address

in the same manner as the ordinary reset operation, and program execution is started.

Figure 17-3. Releasing HALT Mode by RESET Input

Wait (2 15 /f X6.55 ms)

RESET

Reset period HALT mode Operation

Remark f XMain system clock oscillation frequency

Table 17-2. Operation After Releasing HALT Mode

Releasing Source MKxx IE Operation

0 0 Executes next address instruction

0 1 Executes interrupt servicing

1 x Retains HALT mode

Non-maskable interrupt request − x Executes interrupt servicing

RESET input -−- − Reset processing

x: don’t care

mode with the subclock multiplied by 4 as the CPU clock. For details, refer to 19.2 Cautions on

µPD78F9488 and 78F9489.

Show 11 more labels / short text on this page
HALT instruction · signal · Oscillation stabilization · Operation · mode · wait status · mode · Oscillation · stops Oscillation Oscillation · Clock · Maskable interrupt request
Page 312 of the NEC PD78F9489 user manual — Table 17-3. Operation Statuses in STOP Mode
Page 312 · click to enlarge
Page 312

CHAPTER 17 STANDBY FUNCTION

17.2.2 STOP mode

(1) Setting and operation status of STOP mode

The STOP mode is set by executing the STOP instruction.

mode is released as soon as it is set if there is an interrupt source whose interrupt request

flag is set and interrupt mask flag is reset. When the STOP mode is set, therefore, the

HALT mode is set immediately after the STOP instruction has been executed, the wait time

set by the oscillation stabilization time selection register (OSTS) elapses, and then the

operation mode is set.

The operation statuses in the STOP mode are shown in the following table.

Table 17-3. Operation Statuses in STOP Mode

STOP Mode Operation Status During Main System Clock Operation Item

Subsystem Clock Operating Subsystem Clock Stopped

Main system clock Oscillation stopped

Subsystem clock ×4 multiplication circuit

Ports (output latches) Status before STOP mode setting retained

16-bit timer 20 Operation stopped

8-bit timer 50 Operable

8-bit timer 60 Operable

8-bit timer 61 Operable

Watchdog timer Operation stopped

Key return circuit Operable

Serial interface 20 Operable

Serial interface 1A0 Operable

A/D converter Operation stopped

60 is operable) is selected as the count clock.

2. Operation is enabled when the input signal from timer 60 (when timer 60 is operable) is selected as the

count clock.

3. Operation is enabled when the external input clock is selected as the count clock.
4. Operation is enabled when the subsystem clock is selected.
5. Operation is enabled only for a maskable interrupt that is not masked.
6. µ PD789489 and 78F9489 only
7. Operation is enabled only for a maskable interrupt that is not masked.
Show 8 more labels / short text on this page
Operation stopped · CPU Operation stopped · Watch timer Operable · LCD controller/driver Operable · Multiplier Operation stopped · Remote controller receiver · Operable · External interrupts Operable
Page 313 of the NEC PD78F9489 user manual — Figure 17-4. Releasing STOP Mode by Interrupt
Page 313 · click to enlarge
Page 313

CHAPTER 17 STANDBY FUNCTION

(2) Releasing STOP mode

The STOP mode can be released by the following two sources.

(a) Release by unmasked interrupt request

The STOP mode can be released by an unmasked interrupt request. In this case, if interrupts are

enabled to be acknowledged, vectored interrupt servicing is performed, after the oscillation stabilization

time has elapsed. If interrupts are disabled, the instruction at the next address is executed.

Figure 17-4. Releasing STOP Mode by Interrupt

Wait (set time by OSTS)

Remark The broken lines indicate the case where the interrupt request that released the standby mode is

acknowledged.

Show 11 more labels / short text on this page
STOP instruction · Standby release signal · STOP mode Operation · Oscillation stabilization · Operation · mode · wait status · mode · Oscillation · stops Oscillation Oscillation · Clock
Page 314 of the NEC PD78F9489 user manual — Table 17-4. Operation After Releasing STOP Mode
Page 314 · click to enlarge
Page 314

CHAPTER 17 STANDBY FUNCTION

(b) Release by RESET input

When the STOP mode is released by the RESET signal, the reset operation is performed after the

oscillation stabilization time has elapsed.

Figure 17-5. Releasing STOP Mode by RESET Input

Wait (2 15 /f X6.55 ms)

RESET

Remark f XMain system clock oscillation frequency

Table 17-4. Operation After Releasing STOP Mode

Releasing Source MKxx IE Operation

0 0 Executes next address instruction

0 1 Executes interrupt servicing

1 x Retains STOP mode

RESET input − -−- Reset processing

x: don’t care

Show 13 more labels / short text on this page
STOP instruction · signal · Oscillation stabilization · STOP mode Operation · Reset period · Operation · mode · wait status · mode · Oscillation · stops Oscillation Oscillation · Clock · Maskable interrupt request
Page 315 of the NEC PD78F9489 user manual — Figure 18-1. Block Diagram of Reset Function
Page 315 · click to enlarge
Page 315

CHAPTER 18 RESET FUNCTION

The following two operations are available to generate reset signals.

(1) External reset input by RESET pin

(2) Internal reset by watchdog timer program loop time detection

External and internal reset have no functional differences. In both cases, program execution starts at the address

at 0000H and 0001H by RESET input.

When a low level is input to the RESET pin or the watchdog timer overflows, a reset is applied and each hardware

is set to the status shown in Table 18-1. Each pin is high impedance during reset input or during oscillation

stabilization time just after reset release.

When a high level is input to the RESET pin, the reset is released and program execution is started after the

oscillation stabilization time (215/fX) has elapsed. The reset applied by the watchdog timer overflow is automatically

released after reset, and program execution is started after the oscillation stabilization time (215/fX) has elapsed (see

Figures 18-2 to 18-4.)

2. When the STOP mode is released by reset, the STOP mode contents are held during reset

input. However, the port pins become high impedance.

Figure 18-1. Block Diagram of Reset Function

RESET

Interrupt function Count clock

Show 5 more labels / short text on this page
Reset controller · Reset signal · Over- flow · Watchdog timer · Stop
Page 316 of the NEC PD78F9489 user manual — RESET
Page 316 · click to enlarge
Page 316

CHAPTER 18 RESET FUNCTION

Figure 18-2. Reset Timing by RESET Input

Oscillation stabilization time wait

Reset period (oscillation stops)

Normal operation (reset processing)

RESET

Figure 18-3. Reset Timing by Overflow in Watchdog Timer

Oscillation stabilization time wait

Reset period (oscillation continues)

Normal operation (reset processing)

Overflow in watchdog timer

Figure 18-4. Reset Timing by RESET Input in STOP Mode

STOP instruction execution During normal operation

Oscillation stabilization time wait

Reset period (oscillation stops) Stop status (oscillation stops)

Normal operation (reset processing)

RESET

Show 13 more labels / short text on this page
During normal operation · Internal reset signal · Delay Delay · Hi-Z · Port pin · During normal operation · Internal reset signal · Hi-Z · Port pin · Internal reset signal · Delay Delay · Hi-Z · Port pin
Page 317 of the NEC PD78F9489 user manual — CHAPTER 18 RESET FUNCTION
Page 317 · click to enlarge
Page 317

CHAPTER 18 RESET FUNCTION

Table 18-1. Status of Hardware After Reset (1/2)

NEC PD78F9489 — CHAPTER 18 RESET FUNCTION diagram (page 317)
Fig. 107

PC will be undefined; the remainder of the hardware will be the same state as after reset.

2. In standby mode, RAM enters the hold state after reset.
3. Port 8 is used only when the port function is specified by a mask option or port function register (refer

to CHAPTER 20 MASK OPTIONS and 4.3 (3) Port function registers).

4. The register is set to 00H only by RESET input.
Page 318 of the NEC PD78F9489 user manual — CHAPTER 18 RESET FUNCTION
Page 318 · click to enlarge
Page 318

CHAPTER 18 RESET FUNCTION

Table 18-1. Status of Hardware After Reset (2/2)

NEC PD78F9489 — CHAPTER 18 RESET FUNCTION diagram (page 318)
Fig. 108

Automatic data transmit/receive transfer interval specification register (ADTI0) 00H

Page 319 of the NEC PD78F9489 user manual — CHAPTER 19 FLASH MEMORY VERSION
Page 319 · click to enlarge
Page 319

CHAPTER 19 FLASH MEMORY VERSION

The µPD78F9488 is available as the flash memory version of the µPD789488 (mask ROM version).

The µPD78F9489 is available as the flash memory version of the µPD789489 (mask ROM version).

The differences between the µPD78F9488, 78F9489, and the mask ROM version are shown in Table 19-1.

Table 19-1. Differences Between µPD78F9488, 78F9489, and Mask ROM Version

NEC PD78F9489 — CHAPTER 19 FLASH MEMORY VERSION diagram (page 319)
Fig. 109

Internal RAM 1024 bytes 1536 bytes 1024 bytes 1536 bytes

Circuit to multiply subsystem clock by ×4 Use enabled/disabled by subclock select

Pull-up resistor of port 5 None Selectable by a mask option in 1-bit

Remote controller receiver Not provided Provided Not provided Provided

Electrical specifications Refer to CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488,

ROM versions. When pre-producing an application set with the flash memory version and then

mass-producing it with the mask ROM version, be sure to conduct sufficient evaluations for the

commercial samples (not engineering samples) of the mask ROM version.

Page 320 of the NEC PD78F9489 user manual — Figure 19-1. Environment for Writing Program to Flash Memory
Page 320 · click to enlarge
Page 320

CHAPTER 19 FLASH MEMORY VERSION

19.1 Flash Memory Characteristics

Flash memory programming is performed by connecting a dedicated flash programmer (Flashpro III (part no. FL-

PR3, PG-FP3)/Flashpro IV (part no. FL-PR4, PG-FP4)) to the target system with the µPD78F9488 or 78F9489

mounted on the target system (on-board). A flash memory program adapter (FA adapter), which is a target board used

exclusively for programming, is also provided.

Remark FL-PR3, FL-PR4, and the program adapter are products of Naito Densei Machida Mfg. Co., Ltd. (TEL

+81-45-475-4191).

Programming using flash memory has the following advantages.

  • Software can be modified after the microcontroller is solder-mounted on the target system.
  • Distinguishing software facilities low-quantity, varied model production
  • Easy data adjustment when starting mass production

19.1.1 Programming environment

The following shows the environment required for µPD78F9488 and 78F9489 flash memory programming.

When Flashpro III (part no. FL-PR3, PG-FP3) or Flashpro IV (part no. FL-PR4, PG-FP4) is used as a dedicated

flash programmer, a host machine is required to control the dedicated flash programmer. Communication between the

host machine and flash programmer is performed via RS-232C/USB (Rev. 1.1).

For details, refer the manuals of Flashpro III/Flashpro IV.

Remark USB is supported by Flashpro IV only.

Figure 19-1. Environment for Writing Program to Flash Memory

NEC PD78F9489 — Figure 19-1. Environment for Writing Program to Flash Memory diagram (page 320)
Fig. 110 · Figure 19-1. Environment for Writing Program to Flas…

programmer · Host machine

Page 321 of the NEC PD78F9489 user manual — V DD V PP
Page 321 · click to enlarge
Page 321

CHAPTER 19 FLASH MEMORY VERSION

19.1.2 Communication mode

Use the communication mode shown in Table 19-2 to perform communication between the dedicated flash

programmer and µPD78F9488 or 78F9489.

Table 19-2. Communication Mode List

NEC PD78F9489 — Table 19-2. Communication Mode List diagram (page 321)
Fig. 111 · Table 19-2. Communication Mode List

PG-FP3)/Flashpro IV (part no. FL-PR4, PG-FP4)).

2. The possible setting range differs depending on the voltage. For details, refer to CHAPTER 22

ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489).

3. Only 2 MHz or 4 MHz can be selected for Flashpro III.
4. Because signal wave slew also affects UART communication, in addition to the baud rate error,

thoroughly evaluate the slew.

5. Flashpro IV only. However, when using Flashpro III, be sure to select the clock of the resonator on the

board. UART cannot be used with the clock supplied by Flashpro III.

Figure 19-2. Communication Mode Selection Format

NEC PD78F9489 — Figure 19-2. Communication Mode Selection Format diagram (page 321)
Fig. 112 · Figure 19-2. Communication Mode Selection Format

V DD V PP

V SS

V DD

V SS RESET

Page 322 of the NEC PD78F9489 user manual — GND
Page 322 · click to enlarge
Page 322

CHAPTER 19 FLASH MEMORY VERSION

Figure 19-3. Example of Connection with Dedicated Flash Programmer

(a) 3-wire serial I/O

PD78F9488 PD78F9489

VPP1

V PP

VDD

V DD

RESET

RESET

SCK

SCK20

SO

SI20

SI

SO20

GND

V SS

(b) 3-wire serial I/O with handshake

Dedicated flash programmer PD78F9488 PD78F9489

µ

VPP1

V PP

VDD

V DD

RESET

RESET

SCK

SCK20

SO

SI20

SI

SO20

HS

P11 (HS)

CLKNote 1 X1

GND

V SS

(c) UART

Dedicated flash programmer PD78F9488 PD78F9489

VPP1

V PP

VDD

V DD

RESET

RESET

SO

R X D20

SI

T X D20

CLKNotes 1, 2

GND

V SS

pin and disconnect the on-board resonator. When using the clock of the on-board resonator, do not

connect the CLK pin.

2. When using UART with Flashpro III, the clock of the resonator connected to the X1 pin must be used, do

not connect the CLK pin.

dedicated flash programmer. Before using the power supply connected to the VDD pin, supply

voltage before starting programming.

Show 4 more labels / short text on this page
Dedicated flash programmer · µ µ · CLKNote 1 · µ µ
Page 323 of the NEC PD78F9489 user manual — CHAPTER 19 FLASH MEMORY VERSION
Page 323 · click to enlarge
Page 323

CHAPTER 19 FLASH MEMORY VERSION

If Flashpro III/Flashpro IV is used as a dedicated flash programmer, the following signals are generated for the

µPD78F9488 and 78F9489. For details, refer to the manual of Flashpro III/Flashpro IV.

Table 19-3. Pin Connection List

NEC PD78F9489 — CHAPTER 19 FLASH MEMORY VERSION diagram (page 323)
Fig. 113

Signal Name I/O Pin Function Pin Name 3-Wire Serial I/O 3-Wire Serial I/O

Remark : Pin must be connected.

: If the signal is supplied on the target board, pin does not need to be connected.

× : Pin does not need to be connected.

Page 324 of the NEC PD78F9489 user manual — V PP
Page 324 · click to enlarge
Page 324

CHAPTER 19 FLASH MEMORY VERSION

19.1.3 On-board pin processing

When performing programming on the target system, provide a connector on the target system to connect the

dedicated flash programmer.

An on-board function that allows switching between normal operation mode and flash memory programming mode

may be required in some cases.

In normal operation mode, input 0 V to the VPP pin. In flash memory programming mode, a write voltage of 10.0 V

(TYP.) is supplied to the VPP pin, so perform either of the following.

(1) Connect a pull-down resistor (RVPP = 10 kΩ) to the VPP pin.

(2) Use the jumper on the board to switch the VPP pin input to either the programmer or directly to GND.

A VPP pin connection example is shown below.

Figure 19-4. V PP Pin Connection Example

PD78F9488, PD78F9489

Connection pin of dedicated flash programmer

V PP

Pull-down resistor (RVPP)

The following shows the pins used by the serial interface.

Serial Interface Pins Used

3-wire serial I/O SI20, SO20, SCK20

3-wire serial I/O with handshake SI20, SO20, SCK20, P11 (HS)

When connecting the dedicated flash programmer to a serial interface pin that is connected to another device on-

board, signal conflict or abnormal operation of the other device may occur. Care must therefore be taken with such

connections.

Show 5 more labels / short text on this page
<VPP pin> · µ · µ · <Serial interface pin> · UART RxD20, TxD20
Page 325 of the NEC PD78F9489 user manual — Figure 19-6. Abnormal Operation of Other Device
Page 325 · click to enlarge
Page 325

CHAPTER 19 FLASH MEMORY VERSION

(1) Signal conflict

If the dedicated flash programmer (output) is connected to a serial interface pin (input) that is connected to

another device (output), a signal conflict occurs. To prevent this, isolate the connection with the other device

or set the other device to the output high impedance status.

Figure 19-5. Signal Conflict (Input Pin of Serial Interface)

Connection pin of dedicated flash programmer

In the flash memory programming mode, the signal output by another device and the signal sent by the dedicated flash programmer conflict, therefore, isolate the signal of the other device.

(2) Abnormal operation of other device

If the dedicated flash programmer (output or input) is connected to a serial interface pin (input or output) that

is connected to another device (input), a signal is output to the device, and this may cause an abnormal

operation. To prevent this abnormal operation, isolate the connection with the other device or set so that the

input signals to the other device are ignored.

Figure 19-6. Abnormal Operation of Other Device

Connection pin of dedicated flash programmer

If the signal output by the PD78F9488, 78F9489 affects another device in the flash memory programming mode, isolate the signals of the other device.

Connection pin of dedicated flash programmer

If the signal output by the dedicated flash programmer affects another device in the flash memory programming mode, isolate the signals of the other device.

Show 17 more labels / short text on this page
PD78F9488, PD78F9489 µ · µ · Signal conflict · Input pin · Other device · Output pin · PD78F9488, PD78F9489 µ · µ · Pin · Other device · Input pin · µ · PD78F9488, PD78F9489 µ · µ · Pin · Other device · Input pin
Page 326 of the NEC PD78F9489 user manual — RESET
Page 326 · click to enlarge
Page 326

CHAPTER 19 FLASH MEMORY VERSION

If the reset signal of the dedicated flash programmer is connected to the RESET pin connected to the reset signal

generator on-board, a signal conflict occurs. To prevent this, isolate the connection with the reset signal generator.

If the reset signal is input from the user system in the flash memory programming mode, a normal programming

operation cannot be performed. Therefore, do not input reset signals from other than the dedicated flash

programmer.

Figure 19-7. Signal Conflict (RESET Pin)

Connection pin of dedicated flash programmer

RESET

The signal output by the reset signal generator and the signal output from the dedicated flash programmer conflict in the flash memory programming mode, so isolate the signal of the reset signal generator.

When the µPD78F9488 or 78F9489 enters the flash memory programming mode, all the pins other than those that

communicate with flash programmer are in the same status as immediately after reset.

If the external device does not recognize initial statuses such as the output high impedance status, therefore,

connect the external device to VDD or VSS via a resistor.

When using the on-board clock, connect X1, X2, XT1, and XT2 as required in the normal operation mode.

When using the clock output of the flash programmer, connect it directly to X1, disconnecting the main resonator

on-board, and leave the X2 pin open. The subsystem clock conforms to the normal operation mode.

To use the power output from the flash programmer, connect the VDD pin to VDD of the flash programmer, and VSS

pin to GND of the flash programmer, respectively.

To use the on-board power supply, make connection in accordance with the normal operation mode. However,

because the voltage is monitored by the flash programmer, be sure to connect VDD of the flash programmer.

Supply the same power as in the normal operation mode to the other power pins (AVDD and AVSS).

Process the other pins (S0 to S27, COM0 to COM3, VLC0 to VLC2, CAPH, and CAPL) in the same manner as in the

normal operation mode.

Show 10 more labels / short text on this page
<RESET pin> · PD78F9488, PD78F9489 µ · µ · Signal conflict · Reset signal generator · Output pin · <Port pins> · <Resonator> · <Power supply> · <Other pins>
Page 327 of the NEC PD78F9489 user manual — GND
Page 327 · click to enlarge
Page 327

CHAPTER 19 FLASH MEMORY VERSION

19.1.4 Connection of adapter for flash writing

The following figure shows an example of recommended connection when the adapter for flash writing is used.

Figure 19-8. Wiring Example for Flash Writing Adapter with 3-Wire Serial I/O

VDD (2.7 to 5.5 V)

GND

80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61

60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

PD78F9488, PD78F9489 µ µ

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

GND

VDD

VDD2 (LVDD)

SI SO SCK CLKOUT RESET VPP RESERVE/HS

WRITER INTERFACE

Page 328 of the NEC PD78F9489 user manual — GND
Page 328 · click to enlarge
Page 328

CHAPTER 19 FLASH MEMORY VERSION

Figure 19-9. Wiring Example for Flash Writing Adapter with 3-Wire Serial I/O with Handshake

VDD (2.7 ‘ 5.5 V)

GND

80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41

PD78F9488, PD78F9489

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

GND

VDD VDD2 (LVDD)

SI SO SCK CLKOUT RESET VPP RESERVE/HS

WRITER INTERFACE

µ µ

Page 329 of the NEC PD78F9489 user manual — GND
Page 329 · click to enlarge
Page 329

CHAPTER 19 FLASH MEMORY VERSION

Figure 19-10. Wiring Example for Flash Writing Adapter with UART

VDD (2.7 to 5.5 V)

GND

80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41

PD78F9488, PD78F9489 µ µ

21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

GND

VDD

VDD2 (LVDD)

SI SO SCK CLKOUT RESET VPP RESERVE/HS

WRITER INTERFACE

Page 330 of the NEC PD78F9489 user manual — CHAPTER 19 FLASH MEMORY VERSION
Page 330 · click to enlarge
Page 330

CHAPTER 19 FLASH MEMORY VERSION

19.2 Cautions on µ PD78F9488 and 78F9489

(1) When using HALT mode with subclock multiplied by four

Observe the following constraints when using the flash version (µPD78F9488 and 78F9489) in the HALT

mode with the subclock multiplied by 4 as the CPU clock.

  • Be sure to insert the following number of NOP instructions immediately after the HALT instruction.

Operating Temperature Number of NOP Instructions

TA = −40 to +45°C 2

TA = −40 to +80°C 3

TA = −40 to +85°C 4

  • Save the value of the A register to the internal high-speed RAM area before the HALT instruction is

executed (because the value of the A register may be changed when the HALT mode is released).

Page 331 of the NEC PD78F9489 user manual — CHAPTER 20 MASK OPTIONS
Page 331 · click to enlarge
Page 331

CHAPTER 20 MASK OPTIONS

The µPD789488 and 789489 have the following mask options.

  • Pin function

The segment pins of the LCD and port 7 (input port) can be selected in 1-bit units.

S (16 + n)

P7n (n = 0 to 3)

The segment pins of the LCD and port 8 (I/O port) can be selected in 1-bit units.

S (20 + m)

P8m (m = 0 to 7)

  • Subsystem clock × 4 multiplication circuit

The use of a circuit to multiply the subsystem clock (32.768 kHz) by 4 (131 kHz) is selected.

×4 multiplication circuit is used

×4 multiplication circuit is not used

  • Pull-up resistor

The connection of on-chip pull-up resistors for port 5 (I/O port) can be switched in 1-bit units.

Pull-up resistor is connected

Pull-up resistor is not connected

Page 332 of the NEC PD78F9489 user manual — AX (RP0), BC (RP1), DE (RP2), HL (RP3)
Page 332 · click to enlarge
Page 332

CHAPTER 21 INSTRUCTION SET

This chapter lists the instruction set of the µPD789489 Subseries. For details of the operation and machine

language (instruction code) of each instruction, refer to 78K/0S Series Instructions User’s Manual (U11047E).

21.1 Operation

21.1.1 Operand identifiers and description methods

Operands are described in the “Operand” column of each instruction in accordance with the description method of

the instruction operand identifier (refer to the assembler specifications for details). When there are two or more

description methods, select one of them. Uppercase letters and the symbols #, !, $, and [ ] are keywords and are

described as they are. Each symbol has the following meaning.

  • #: Immediate data specification
  • $: Relative address specification
  • !: Absolute address specification
  • [ ]: Indirect address specification

In the case of immediate data, describe an appropriate numeric value or a label. When using a label, be sure to

describe the #, !, $ and [ ] symbols.

For operand register identifiers, r and rp, either functional names (X, A, C, etc.) or absolute names (names in

parenthesis in the table below, R0, R1, R2, etc.) can be used for description.

Table 21-1. Operand Identifiers and Description Methods

X (R0), A (R1), C (R2), B (R3), E (R4), D (R5), L (R6), H (R7)

AX (RP0), BC (RP1), DE (RP2), HL (RP3)

Special function register symbol

FE20H to FF1FH Immediate data or labels

FE20H to FF1FH Immediate data or labels (even addresses only)

0000H to FFFFH Immediate data or labels (only even addresses for 16-bit data transfer instructions)

0040H to 007FH Immediate data or labels (even addresses only)

16-bit immediate data or label

8-bit immediate data or label

3-bit immediate data or label

Remark See Table 3-4 Special Function Registers for symbols of special function registers.

Show 11 more labels / short text on this page
Identifier Description Method · r · rp · sfr · saddr · saddrp · addr16 · addr5 · word · byte · bit
Page 333 of the NEC PD78F9489 user manual — 21.1.3 Description of “Flag” column
Page 333 · click to enlarge
Page 333

CHAPTER 21 INSTRUCTION SET

21.1.2 Description of “Operation” column

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

AXAX register pair; 16-bit accumulator
BCBC register pair
DEDE register pair
HLHL register pair
PCProgram counter
SPStack pointer
PSWProgram status word
CYCarry flag
ACAuxiliary carry flag

Z: Zero flag

IEInterrupt request enable flag
( )Memory contents indicated by address or register contents in parenthesis
X H , X LHigher 8 bits and lower 8 bits of 16-bit register
∧Logical product (AND)
∨Logical sum (OR)

V: Exclusive logical sum (exclusive OR)

: Inverted data

addr1616-bit immediate data or label
jdisp8Signed 8-bit data (displacement value)

21.1.3 Description of “Flag” column

(Blank)Unchanged
0. Cleared to 0
1. Set to 1

x: Set/cleared according to the result

R: Previously saved value is restored

Page 334 of the NEC PD78F9489 user manual — CHAPTER 21 INSTRUCTION SET
Page 334 · click to enlarge
Page 334

CHAPTER 21 INSTRUCTION SET

21.2 Operation List

NEC PD78F9489 — CHAPTER 21 INSTRUCTION SET diagram (page 334)
Fig. 114

PSW, #byte 3 6 PSW ← byte x x x

PSW, A 2 4 PSW ← A x x x

A, [HL+byte] 2 6 A ← (HL + byte)

[HL+byte], A 2 6 (HL + byte) ← A

A, [HL+byte] 2 8 A ↔ (HL + byte)

2. Except r = A, X.

Remark One instruction clock cycle is one CPU clock cycle (fCPU) selected by the processor clock control

register (PCC).

Page 335 of the NEC PD78F9489 user manual — Z AC CY
Page 335 · click to enlarge
Page 335

CHAPTER 21 INSTRUCTION SET

Mnemonic Operands Bytes Clocks Operation Flag

Z AC CY

MOVW rp, #word 3 6 rp ← word

AX, saddrp 2 6 AX ← (saddrp)

saddrp, AX 2 8 (saddrp) ← AX

ADD A, #byte 2 4 A, CY ← A + byte x x x

saddr, #byte 3 6 (saddr), CY ← (saddr) + byte x x x

A, r 2 4 A, CY ← A + r x x x

A, saddr 2 4 A, CY ← A + (saddr) x x x

A, !addr16 3 8 A, CY ← A + (addr16) x x x

A, [HL] 1 6 A, CY ← A + (HL) x x x

A, [HL+byte] 2 6 A, CY ← A + (HL + byte) x x x

ADDC A, #byte 2 4 A, CY ← A + byte + CY x x x

saddr, #byte 3 6 (saddr), CY ← (saddr) + byte + CY x x x

A, r 2 4 A, CY ← A + r + CY x x x

A, saddr 2 4 A, CY ← A + (saddr) + CY x x x

A, !addr16 3 8 A, CY ← A + (addr16) + CY x x x

A, [HL] 1 6 A, CY ← A + (HL) + CY x x x

A, [HL+byte] 2 6 A, CY ← A + (HL + byte) + CY x x x

SUB A, #byte 2 4 A, CY ← A − byte x x x

saddr, #byte 3 6 (saddr), CY ← (saddr) − byte x x x

A, r 2 4 A, CY ← A − r x x x

A, saddr 2 4 A, CY ← A − (saddr) x x x

A, !addr16 3 8 A, CY ← A − (addr16) x x x

A, [HL] 1 6 A, CY ← A − (HL) x x x

A, [HL+byte] 2 6 A, CY ← A − (HL + byte) x x x

Remark One instruction clock cycle is one CPU clock cycle (fCPU) selected by the processor clock control

register (PCC).

AX, rp · rp, AX · XCHW AX, rp

Page 336 of the NEC PD78F9489 user manual — CHAPTER 21 INSTRUCTION SET
Page 336 · click to enlarge
Page 336

CHAPTER 21 INSTRUCTION SET

NEC PD78F9489 — CHAPTER 21 INSTRUCTION SET diagram (page 336)
Fig. 115

SUBC A, #byte 2 4 A, CY ← A − byte − CY x x x

saddr, #byte 3 6 (saddr), CY ← (saddr) − byte − CY x x x

A, r 2 4 A, CY ← A − r − CY x x x

A, saddr 2 4 A, CY ← A − (saddr) − CY x x x

A, !addr16 3 8 A, CY ← A − (addr16) − CY x x x

A, [HL] 1 6 A, CY ← A − (HL) − CY x x x

A, [HL+byte] 2 6 A, CY ← A − (HL + byte) − CY x x x

AND A, #byte 2 4 A ← A ∧ byte x

saddr, #byte 3 6 (saddr) ← (saddr) ∧ byte x

A, r 2 4 A ← A ∧ r x

A, saddr 2 4 A ← A ∧ (saddr) x

A, !addr16 3 8 A ← A ∧ (addr16) x

A, [HL] 1 6 A ← A ∧ (HL) x

A, [HL+byte] 2 6 A ← A ∧ (HL + byte) x

OR A, #byte 2 4 A ← A ∨ byte x

saddr, #byte 3 6 (saddr) ← (saddr) ∨ byte x

A, r 2 4 A ← A ∨ r x

A, saddr 2 4 A ← A ∨ (saddr) x

A, !addr16 3 8 A ← A ∨ (addr16) x

A, [HL] 1 6 A ← A ∨ (HL) x

A, [HL+byte] 2 6 A ← A ∨ (HL + byte) x

XOR A, #byte 2 4 A ← A V byte x

saddr, #byte 3 6 (saddr) ← (saddr) V byte x

A, r 2 4 A ← A V r x

A, saddr 2 4 A ← A V (saddr) x

A, !addr16 3 8 A ← A V (addr16) x

A, [HL] 1 6 A ← A V (HL) x

A, [HL+byte] 2 6 A ← A V (HL + byte) x

Remark One instruction clock cycle is one CPU clock cycle (fCPU) selected by the processor clock control

register (PCC).

Page 337 of the NEC PD78F9489 user manual — CHAPTER 21 INSTRUCTION SET
Page 337 · click to enlarge
Page 337

CHAPTER 21 INSTRUCTION SET

NEC PD78F9489 — CHAPTER 21 INSTRUCTION SET diagram (page 337)
Fig. 116

CMP A, #byte 2 4 A − byte x x x

saddr, #byte 3 6 (saddr) − byte x x x

A, r 2 4 A − r x x x

A, saddr 2 4 A − (saddr) x x x

A, !addr16 3 8 A − (addr16) x x x

A, [HL] 1 6 A − (HL) x x x

A, [HL+byte] 2 6 A − (HL + byte) x x x

ADDW AX, #word 3 6 AX, CY ← AX + word x x x

SUBW AX, #word 3 6 AX, CY ← AX − word x x x

CMPW AX, #word 3 6 AX − word x x x

INC r 2 4 r ← r + 1 x x

saddr 2 4 (saddr) ← (saddr) + 1 x x

DEC r 2 4 r ← r − 1 x x

saddr 2 4 (saddr) ← (saddr) − 1 x x

INCW rp 1 4 rp ← rp + 1

DECW rp 1 4 rp ← rp − 1

ROR A, 1 1 2 (CY, A7 ← A0, Am−1 ← Am) × 1 x

ROL A, 1 1 2 (CY, A0 ← A7, Am+1 ← Am) × 1 x

RORC A, 1 1 2 (CY ← A0, A7 ← CY, Am−1 ← Am) × 1 x

ROLC A, 1 1 2 (CY ← A7, A0 ← CY, Am+1 ← Am) × 1 x

PSW.bit 3 6 PSW.bit ← 1 x x x

PSW.bit 3 6 PSW.bit ← 0 x x x

Remark One instruction clock cycle is one CPU clock cycle (fCPU) selected by the processor clock control

register (PCC).

Page 338 of the NEC PD78F9489 user manual — MOVW SP, AX 2 8 SP ← AX
Page 338 · click to enlarge
Page 338

CHAPTER 21 INSTRUCTION SET

Mnemonic Operands Bytes Clocks Operation Flag

Z AC CY

CALL !addr16 3 6 (SP − 1) ← (PC + 3)H, (SP − 2) ← (PC + 3)L,

PC ← addr16, SP ← SP − 2

CALLT [addr5] 1 8 (SP − 1) ← (PC + 1)H, (SP − 2) ← (PC + 1)L,

PCH ← (00000000, addr5 + 1),

PCL ← (00000000, addr5), SP ← SP − 2

RET 1 6 PCH ← (SP + 1), PCL ← (SP), SP ← SP + 2

RETI 1 8 PCH ← (SP + 1), PCL ← (SP),

R R R

PSW ← (SP + 2), SP ← SP + 3

PUSH PSW 1 2 (SP − 1) ← PSW, SP ← SP − 1

rp 1 4 (SP − 1) ← rpH, (SP − 2) ← rpL, SP ← SP − 2

POP PSW 1 4 PSW ← (SP), SP ← SP + 1 R R R

rp 1 6 rpH ← (SP + 1), rpL ← (SP), SP ← SP + 2

MOVW SP, AX 2 8 SP ← AX

AX, SP 2 6 AX ← SP

BR !addr16 3 6 PC ← addr16

$addr16 2 6 PC ← PC + 2 + jdisp8

AX 1 6 PCH ← A, PCL ← X

BC $saddr16 2 6 PC ← PC + 2 + jdisp8 if CY = 1

BNC $saddr16 2 6 PC ← PC + 2 + jdisp8 if CY = 0

BZ $saddr16 2 6 PC ← PC + 2 + jdisp8 if Z = 1

BNZ $saddr16 2 6 PC ← PC + 2 + jdisp8 if Z = 0

BT saddr.bit, $addr16 4 10 PC ← PC + 4 + jdisp8 if (saddr.bit) = 1

sfr.bit, $addr16 4 10 PC ← PC + 4 + jdisp8 if sfr.bit = 1

A.bit, $addr16 3 8 PC ← PC + 3 + jdisp8 if A.bit = 1

PSW.bit, $addr16 4 10 PC ← PC + 4 + jdisp8 if PSW.bit = 1

BF saddr.bit, $addr16 4 10 PC ← PC + 4 + jdisp8 if (saddr.bit) = 0

sfr.bit, $addr16 4 10 PC ← PC + 4 + jdisp8 if sfr.bit = 0

A.bit, $addr16 3 8 PC ← PC + 3 + jdisp8 if A.bit = 0

PSW.bit, $addr16 4 10 PC ← PC + 4 + jdisp8 if PSW.bit = 0

DBNZ B, $addr16 2 6 B ← B − 1, then PC ← PC + 2 + jdisp8 if B ≠ 0

C, $addr16 2 6 C ← C − 1, then PC ← PC + 2 + jdisp8 if C ≠ 0

saddr, $addr16 3 8 (saddr) ← (saddr) − 1, then

PC ← PC + 3 + jdisp8 if (saddr) ≠ 0

NOP 1 2 No Operation

EI 3 6 IE ← 1 (Enable interrupt)

DI 3 6 IE ← 0 (Disable interrupt)

HALT 1 2 Set HALT mode

STOP 1 2 Set STOP mode

Remark One instruction clock cycle is one CPU clock cycle (fCPU) selected by the processor clock control

register (PCC).

Page 339 of the NEC PD78F9489 user manual — POP, DBNZ
Page 339 · click to enlarge
Page 339

CHAPTER 21 INSTRUCTION SET

21.3 Instructions Listed by Addressing Type

(1) 8-bit instructions

MOV, XCH, ADD, ADDC, SUB, SUBC, AND, OR, XOR, CMP, INC, DEC, ROR, ROL, RORC, ROLC, PUSH,

POP, DBNZ

NEC PD78F9489 — POP, DBNZ diagram (page 339)
Fig. 117

#byte A r sfr saddr !addr16 PSW [DE] [HL] [HL+byte] $addr1

Page 340 of the NEC PD78F9489 user manual — CHAPTER 21 INSTRUCTION SET
Page 340 · click to enlarge
Page 340

CHAPTER 21 INSTRUCTION SET

(2) 16-bit instructions

MOVW, XCHW, ADDW, SUBW, CMPW, PUSH, POP, INCW, DECW

NEC PD78F9489 — CHAPTER 21 INSTRUCTION SET diagram (page 340)
Fig. 118
Page 341 of the NEC PD78F9489 user manual — CALLT BR
Page 341 · click to enlarge
Page 341

CHAPTER 21 INSTRUCTION SET

(4) Call instructions/branch instructions

CALL, CALLT, BR, BC, BNC, BZ, BNZ, DBNZ

AX !addr16 [addr5] $addr16

Basic Instructions BR CALL

CALLT BR

BR

BC

BNC

BZ

BNZ

(5) Other instructions

RET, RETI, NOP, EI, DI, HALT, STOP

2nd Operand · 1st Operand · Compound Instructions DBNZ

Page 342 of the NEC PD78F9489 user manual — 1.8 V V DD
Page 342 · click to enlarge
Page 342

CHAPTER 22 ELECTRICAL SPECIFICATIONS ( µ PD789488, 78F9488, 789489, 78F9489)

Absolute Maximum Ratings (T A = 25 ° C)

NEC PD78F9489 — CHAPTER 22 ELECTRICAL SPECIFICATIONS ( µ PD789488, 78F9488, 789489, 78F9489) diagram (page 342)
Fig. 119 · CHAPTER 22 ELECTRICAL SPECIFICATIONS ( µ PD789488, 7…

VDD = AVDD −0.3 to +6.5 V

VPP µPD78F9488, 78F9489 only, Note 1 −0.3 to +10.5 V

VI1 P00 to P07, P10, P11, P20 to P25, P30 to

On-chip pull-up resistor −0.3 to VDD + 0.3

P30 to P34, P50 to P53, P80 to P87

Per pin −10 mA Output current, high IOH

Per pin 30 mA Output current, low IOL

Operating ambient temperature TA Normal operation −40 to +85 °C

Storage temperature Tstg µPD789488, 789489 −65 to +150 °C

memory is written.

  • When supply voltage rises

VPP must exceed VDD 10 µs or more after VDD has reached the lower-limit value (1.8 V) of the operating

voltage range (see a in the figure below).

  • When supply voltage drops

VDD must be lowered 10 µs or more after VPP falls below the lower-limit value (1.8 V) of the operating

voltage range of VDD (see b in the figure below).

NEC PD78F9489 — CHAPTER 22 ELECTRICAL SPECIFICATIONS ( µ PD789488, 78F9488, 789489, 78F9489) diagram (page 342)
Fig. 120 · CHAPTER 22 ELECTRICAL SPECIFICATIONS ( µ PD789488, 7…

1.8 V V DD

V PP

2. Only when selected by a mask option or port function register
3. 6.5 V or less
Page 343 of the NEC PD78F9489 user manual — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)
Page 343 · click to enlarge
Page 343

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

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 otherwise specified, the characteristics of alternate-function pins are the same as those of port

pins.

Page 344 of the NEC PD78F9489 user manual — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)
Page 344 · click to enlarge
Page 344

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

Main System Clock Oscillator Characteristics (TA = –40 to +85°C, VDD = 1.8 to 5.5 V)

NEC PD78F9489 — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489) diagram (page 344)
Fig. 121 · CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F…

Resonator Recommended Circuit Parameter Conditions MIN. TYP. MAX. Unit

VDD = 4.5 to 5.5 V 10 ms

VDD = 2.7 to 5.5 V 85 500 ns

2. Time required to stabilize oscillation after reset or STOP mode release.

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 SS .
  • 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.

Remark For the resonator selection and oscillator constant, customers are required to either evaluate the

oscillation themselves or apply to the resonator manufacturer for evaluation.

Page 345 of the NEC PD78F9489 user manual — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)
Page 345 · click to enlarge
Page 345

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

Subsystem Clock Oscillator Characteristics (TA = –40 to +85°C, VDD = 1.8 to 5.5 V)

NEC PD78F9489 — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489) diagram (page 345)
Fig. 122 · CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F…

Resonator Recommended Circuit Parameter Conditions MIN. TYP. MAX. Unit

VDD = 4.5 to 5.5 V 1.2 2

2. Time required to stabilize oscillation after V DD reaches oscillation voltage range MIN.

broken lines in the above figure 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 SS .
  • Do not ground the capacitor to a ground pattern through which a high current flows.
  • Do not fetch signals from the oscillator.
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.

Remark For the resonator selection and oscillator constant, customers are required to either evaluate the

oscillation themselves or apply to the resonator manufacturer for evaluation.

Page 346 of the NEC PD78F9489 user manual — 1.8 ≤ V DD < 4.5 V,
Page 346 · click to enlarge
Page 346

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

DC Characteristics (TA = –40 to +85°C, VDD = 1.8 to 5.5 V) (1/6)

Parameter Symbol Conditions MIN. TYP. MAX. Unit

Per pin 10 mA Output current, low IOL

All pins 80 mA

Per pin –1 mA Output current, high IOH

All pins –15 mA

VDD = 2.7 to 5.5 V 0.7VDD VDD V VIH1 P10, P11, P60 to P67

VDD = 1.8 to 5.5 V 0.9VDD VDD V

VIH2 P50 to

VDD = 2.7 to 5.5 V 0.7VDD 12 V N-ch open

P53

drain VDD = 1.8 to 5.5 V 0.9VDD 12 V

VDD = 2.7 to 5.5 V 0.7VDD VDD V

up resistor VDD = 1.8 to 5.5 V 0.9VDD VDD V

VDD = 2.7 to 5.5 V 0.8VDD VDD V VIH3 RESET, P00 to P07,

P20 to P25, P30 to P34,

VDD = 1.8 to 5.5 V 0.9VDD VDD V

P87

V IH4 X1, X2, XT1, XT2

VDD = 4.5 to 5.5 V VDD – 0.5 VDD V

VDD = 1.8 to 5.5 V VDD – 0.1 VDD V

VDD = 2.7 to 5.5 V 0 0.3VDD V VIL1 P10, P11, P60 to P67

VDD = 1.8 to 5.5 V 0 0.1VDD V

VDD = 2.7 to 5.5 V 0 0.3VDD V VIL2 P50 to P53

VDD = 1.8 to 5.5 V 0 0.1VDD V

VDD = 2.7 to 5.5 V 0 0.2VDD V VIL3 RESET, P00 to P07,

P20 to P25, P30 to P34,

VDD = 1.8 to 5.5 V 0 0.1VDD V

P87

V IL4 X1, X2, XT1, XT2

VDD = 4.5 to 5.5 V 0 0.4 V

VDD = 1.8 to 5.5 V 0 0.1 V

VDD = 4.5 to 5.5 V, IOH = –1 mA VDD – 1.0 V Output voltage, high VOH

VDD = 1.8 to 5.5 V, IOH = –100 µA VDD – 0.5 V

1.0 V VOL1 P00 to P07, P10, P11,

4.5 ≤ V DD ≤ 5.5 V,

P20 to P25, P30 to P34,

IOL = 10 mA

IOL = 400 µA

VOL2 P50 to P53

4.5 ≤ V DD ≤ 5.5 V,

IOL = 10 mA

1.8 ≤ V DD < 4.5 V,

IOL = 1.6 mA

Remark Unless otherwise specified, the characteristics of alternate-function pins are the same as those of port

pins.

Show 7 more labels / short text on this page
Input voltage, high · On-chip pull- · P70 to P73 · Input voltage, low · P70 to P73 · Output voltage, low · P80 to P87
Page 347 of the NEC PD78F9489 user manual — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)
Page 347 · click to enlarge
Page 347

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

DC Characteristics (TA = –40 to +85°C, VDD = 1.8 to 5.5 V) (2/6)

NEC PD78F9489 — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489) diagram (page 347)
Fig. 123 · CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F…

ILIH3 VI = 12 V P50 to P53

ILIL2 X1, X2, XT1, XT2 –20 µA

ILOH VO = VDD 3 µA

ILOL VO = 0 V –3 µA

R1 VI = 0 V P00 to P07, P10, P11,

R2 VI = 0 V P50 to P53 10 30 60 kΩ

2. If there is no on-chip pull-up resistor for P50 to P53 (specified by a mask option) and if P50 to P53

have been set to input mode when a read instruction is executed to read from P50 to P53, a low-level

input leakage current of up to –60 µA flows during only one cycle. At all other times, the maximum

leakage current is –3 µA.

3. Mask ROM version only

Remark Unless otherwise specified, the characteristics of alternate-function pins are the same as those of port

pins.

Page 348 of the NEC PD78F9489 user manual — V DD = 2.0 V ± 10%
Page 348 · click to enlarge
Page 348

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

DC Characteristics (TA = –40 to +85°C, VDD = 1.8 to 5.5 V) (3/6)

Parameter Symbol Conditions MIN. TYP. MAX. Unit

IDD1 5.0 MHz crystal oscillation operation mode (C1 = C2 = 22 pF)

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

IDD2 5.0 MHz crystal oscillation HALT mode

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

I DD3

32.768 kHz crystal oscillation operation mode

VDD = 5.0 V ±10% 33 67 µA

VDD = 3.0 V ±10% 10 31 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

VDD = 2.0 V ±10% 5 16 µA

32.768 kHz crystal oscillation operation × 4 multiplication operation mode

VDD = 5.0 V ±10% 130 200 µA

VDD = 3.0 V ±10% 50 110 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

I DD4

32.768 kHz crystal oscillation HALT mode

VDD = 5.0 V ±10% 25 60 µA

VDD = 3.0 V ±10% 8 28 µA

VDD = 2.0 V ±10% 5 13 µA

VDD = 5.0 V ±10% 28 69 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

VDD = 3.0 V ±10% 10 36 µA

VDD = 2.0 V ±10% 7 20 µA

32.768 kHz crystal oscillation × 4 multiplication HALT mode

VDD = 5.0 V ±10% 25 60 µA LCD not operating

VDD = 5.0 V ±10% 28 69 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

IDD5 STOP mode

VDD = 5.0 V ±10% 0.1 10 µA

VDD = 3.0 V ±10% 0.05 5 µA

VDD = 2.0 V ±10% 0.05 3 µA

IDD6 5.0 MHz crystal oscillation A/D operating mode

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

Notes 1. The port current (including the current that flows to on-chip pull-up resistors) is not included. 2. High-speed mode operation (when the processor clock control register (PCC) is set to 00H) 3. Low-speed mode operation (when PCC is set to 02H) 4. When the LCD is not operating and the booster circuit is operating (LCDON0 = 0, VAON0 = 1, LIPS0 = 1). 5. When the main system clock is stopped 6. When the LCD is not operating (LCDON0 = 0, VAON0 = 0, LIPS0 = 0) 7. Then the LCD is operating (LCDON0 = 1, VAON0 = 1, LIPS0 = 1) 8. This is the total current that flows to VDD and AVDD. Remark Unless otherwise specified, the characteristics of alternate-function pins are the same as those of port

pins.

Show 5 more labels / short text on this page
Power supply current · (µPD789488) · LCD not operating · LCD operating · LCD operating
Page 349 of the NEC PD78F9489 user manual — V DD = 2.0 V ± 10%
Page 349 · click to enlarge
Page 349

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

DC Characteristics (TA = –40 to +85°C, VDD = 1.8 to 5.5 V) (4/6)

Parameter Symbol Conditions MIN. TYP. MAX. Unit

IDD1 5.0 MHz crystal oscillation operation mode (C1 = C2 = 22 pF)

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

IDD2 5.0 MHz crystal oscillation HALT mode

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

I DD3

32.768 kHz crystal oscillation operation mode

VDD = 5.0 V ±10% 115 200 µA

VDD = 3.0 V ±10% 85 140 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

VDD = 2.0 V ±10% 70 110 µA

32.768 kHz crystal oscillation operation × 4 multiplication operation mode

V DD = 5.0 V ± 10%

315 480 µA

VDD = 3.0 V ±10% 200 300 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

I DD4

32.768 kHz crystal oscillation HALT mode

VDD = 5.0 V ±10% 25 65 µA

VDD = 3.0 V ±10% 8 29 µA

VDD = 2.0 V ±10% 5 20 µA

VDD = 5.0 V ±10% 28 70 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

VDD = 3.0 V ±10% 10 34 µA

VDD = 2.0 V ±10% 7 25 µA

32.768 kHz crystal oscillation × 4 multiplication HALT mode

VDD = 5.0 V ±10% 25 65 µA LCD not operating

VDD = 5.0 V ±10% 28 70 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

IDD5 STOP mode

VDD = 5.0 V ±10% 0.1 10 µA

VDD = 3.0 V ±10% 0.05 5 µA

VDD = 2.0 V ±10% 0.05 3 µA

IDD6 5.0 MHz crystal oscillation A/D operating mode

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

Notes 1. The port current (including the current that flows to on-chip pull-up resistors) is not included. 2. High-speed mode operation (when the processor clock control register (PCC) is set to 00H) 3. Low-speed mode operation (when PCC is set to 02H) 4. When the LCD is not operating and the booster circuit is operating (LCDON0 = 0, VAON0 = 1, LIPS0 = 1). 5. When the main system clock is stopped 6. When the LCD is not operating (LCDON0 = 0, VAON0 = 0, LIPS0 = 0) 7. Then the LCD is operating (LCDON0 = 1, VAON0 = 1, LIPS0 = 1) 8. This is the total current that flows to VDD and AVDD. Remark Unless otherwise specified, the characteristics of alternate-function pins are the same as those of port

pins.

Show 5 more labels / short text on this page
Power supply current · (µPD78F9488) · LCD not operating · LCD operating · LCD operating
Page 350 of the NEC PD78F9489 user manual — V DD = 2.0 V ± 10%
Page 350 · click to enlarge
Page 350

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

DC Characteristics (TA = –40 to +85°C, VDD = 1.8 to 5.5 V) (5/6)

Parameter Symbol Conditions MIN. TYP. MAX. Unit

IDD1 5.0 MHz crystal oscillation operation mode (C1 = C2 = 22 pF)

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

IDD2 5.0 MHz crystal oscillation HALT mode

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

I DD3

32.768 kHz crystal oscillation operation mode

VDD = 5.0 V ±10% 38 100 µA

VDD = 3.0 V ±10% 13 50 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

VDD = 2.0 V ±10% 7 25 µA

32.768 kHz crystal oscillation operation × 4 multiplication operation mode

VDD = 5.0 V ±10% 150 250 µA

VDD = 3.0 V ±10% 75 160 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

I DD4

32.768 kHz crystal oscillation HALT mode

VDD = 5.0 V ±10% 25 70 µA

VDD = 3.0 V ±10% 8 32 µA

VDD = 2.0 V ±10% 5 15 µA

VDD = 5.0 V ±10% 28 79 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

VDD = 3.0 V ±10% 10 40 µA

VDD = 2.0 V ±10% 7 27 µA

32.768 kHz crystal oscillation × 4 multiplication HALT mode

VDD = 5.0 V ±10% 25 70 µA LCD not operating

VDD = 5.0 V ±10% 28 79 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

IDD5 STOP mode

VDD = 5.0 V ±10% 0.1 10 µA

VDD = 3.0 V ±10% 0.05 5 µA

VDD = 2.0 V ±10% 0.05 3 µA

IDD6 5.0 MHz crystal oscillation A/D operating mode

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

Notes 1. The port current (including the current that flows to on-chip pull-up resistors) is not included. 2. High-speed mode operation (when the processor clock control register (PCC) is set to 00H) 3. Low-speed mode operation (when PCC is set to 02H) 4. When the LCD is not operating and the booster circuit is operating (LCDON0 = 0, VAON0 = 1, LIPS0 = 1). 5. When the main system clock is stopped 6. When the LCD is not operating (LCDON0 = 0, VAON0 = 0, LIPS0 = 0) 7. Then the LCD is operating (LCDON0 = 1, VAON0 = 1, LIPS0 = 1) 8. This is the total current that flows to VDD and AVDD. Remark Unless otherwise specified, the characteristics of alternate-function pins are the same as those of port

pins.

Show 5 more labels / short text on this page
Power supply current · (µPD789489) · LCD not operating · LCD operating · LCD operating
Page 351 of the NEC PD78F9489 user manual — V DD = 2.0 V ± 10%
Page 351 · click to enlarge
Page 351

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

DC Characteristics (TA = –40 to +85°C, VDD = 1.8 to 5.5 V) (6/6)

Parameter Symbol Conditions MIN. TYP. MAX. Unit

IDD1 5.0 MHz crystal oscillation operation mode (C1 = C2 = 22 pF)

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

IDD2 5.0 MHz crystal oscillation HALT mode

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

I DD3

32.768 kHz crystal oscillation operation mode

VDD = 5.0 V ±10% 130 250 µA

VDD = 3.0 V ±10% 90 180 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

VDD = 2.0 V ±10% 80 160 µA

32.768 kHz crystal oscillation operation × 4 multiplication operation mode

V DD = 5.0 V ± 10%

330 550 µA

VDD = 3.0 V ±10% 250 400 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

I DD4

32.768 kHz crystal oscillation HALT mode

VDD = 5.0 V ±10% 25 70 µA

VDD = 3.0 V ±10% 8 32 µA

VDD = 2.0 V ±10% 5 15 µA

VDD = 5.0 V ±10% 28 79 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

VDD = 3.0 V ±10% 10 40 µA

VDD = 2.0 V ±10% 7 27 µA

32.768 kHz crystal oscillation × 4 multiplication HALT mode

VDD = 5.0 V ±10% 25 70 µA LCD not operating

VDD = 5.0 V ±10% 28 79 µA

(C3 = C4 = 22 pF, R1 = 220kΩ)

IDD5 STOP mode

VDD = 5.0 V ±10% 0.1 10 µA

VDD = 3.0 V ±10% 0.05 5 µA

VDD = 2.0 V ±10% 0.05 3 µA

IDD6 5.0 MHz crystal oscillation A/D operating mode

V DD = 5.0 V ± 10%

V DD = 3.0 V ± 10%

V DD = 2.0 V ± 10%

Notes 1. The port current (including the current that flows to on-chip pull-up resistors) is not included. 2. High-speed mode operation (when the processor clock control register (PCC) is set to 00H) 3. Low-speed mode operation (when PCC is set to 02H) 4. When the LCD is not operating and the booster circuit is operating (LCDON0 = 0, VAON0 = 1, LIPS0 = 1). 5. When the main system clock is stopped 6. When the LCD is not operating (LCDON0 = 0, VAON0 = 0, LIPS0 = 0) 7. Then the LCD is operating (LCDON0 = 1, VAON0 = 1, LIPS0 = 1) 8. This is the total current that flows to VDD and AVDD. Remark Unless otherwise specified, the characteristics of alternate-function pins are the same as those of port

pins.

Show 5 more labels / short text on this page
Power supply current · (µPD78F9489) · LCD not operating · LCD operating · LCD operating
Page 352 of the NEC PD78F9489 user manual — T CY vs. V DD (main system clock)
Page 352 · click to enlarge
Page 352

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

AC Characteristics

(1) Basic operation (TA = –40 to +85°C, VDD = 1.8 to 5.5 V)

NEC PD78F9489 — AC Characteristics diagram (page 352)
Fig. 124 · AC Characteristics

VDD = 2.7 to 5.5 V 0.4 8.0 µs Operating with main system

clock VDD = 1.8 to 5.5 V 1.6 8.0 µs

VDD = 1.8 to 5.5 V 114 122 125 µs

VDD = 2.7 to 5.5 V 14.3 15.3 15.6 µs

VDD = 2.7 to 5.5 V 0 4 MHz TMI60, TMI61 input

VDD = 1.8 to 5.5 V 0 275 kHz

VDD = 2.7 to 5.5 V 0.125 µs TMI60, TMI61 input

tTIL VDD = 1.8 to 5.5 V 1.8 µs

KR0 to KR7(µPD789488, 78F9488) 10 µs Key return input low-

KR00 to KR07, KR10 to KR17 (µ789489,

T CY vs. V DD (main system clock)

NEC PD78F9489 — T CY vs. V DD (main system clock) diagram (page 352)
Fig. 125 · T CY vs. V DD (main system clock)

Cycle time TCY [ s] µ

1 2 3 4 5 6 0.1

Power supply voltage VDD (V)

Page 353 of the NEC PD78F9489 user manual — (c) UART mode (dedicated baud rate generator output)
Page 353 · click to enlarge
Page 353

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

(2) Serial interface 20 (SIO20) (TA = –40 to +85°C, VDD = 1.8 to 5.5 V)

(a) 3-wire serial I/O mode (internal clock output)

Parameter Symbol Conditions MIN. TYP. MAX. Unit

VDD = 2.7 to 5.5 V 800 ns SCK20 cycle time tKCY1

VDD = 1.8 to 5.5 V 3200 ns

VDD = 2.7 to 5.5 V tKCY1/2–50 ns SCK20 high-/low-level

tKL1 VDD = 1.8 to 5.5 V tKCY1/2–150 ns

VDD = 2.7 to 5.5 V 150 ns SI20 setup time

(to SCK20↑)

VDD = 1.8 to 5.5 V 500 ns

VDD = 2.7 to 5.5 V 400 ns SI20 hold time

(from SCK20↑)

VDD = 1.8 to 5.5 V 600 ns

VDD = 2.7 to 5.5 V 0 250 ns Delay time from SCK20↓

tKSO1 R = 1 kΩ, C = 100 pF

VDD = 1.8 to 5.5 V 0 1000 ns

(b) 3-wire serial I/O mode (external clock input)

Parameter Symbol Conditions MIN. TYP. MAX. Unit

VDD = 2.7 to 5.5 V 800 ns SCK20 cycle time tKCY2

VDD = 1.8 to 5.5 V 3200 ns

VDD = 2.7 to 5.5 V 400 ns SCK20 high-/low-level

tKL2 VDD = 1.8 to 5.5 V 1600 ns

VDD = 2.7 to 5.5 V 100 ns SI20 setup time

(to SCK20↑)

VDD = 1.8 to 5.5 V 150 ns

VDD = 2.7 to 5.5 V 400 ns SI20 hold time

(from SCK20↑)

VDD = 1.8 to 5.5 V 600 ns

VDD = 2.7 to 5.5 V 0 300 ns Delay time from SCK20↓

tKSO2 R = 1 kΩ, C = 100 pF

VDD = 1.8 to 5.5 V 0 1000 ns

(c) UART mode (dedicated baud rate generator output)

NEC PD78F9489 — (c) UART mode (dedicated baud rate generator output) diagram (page 353)
Fig. 126 · (c) UART mode (dedicated baud rate generator output)

VDD = 2.7 to 5.5 V 78125 bps Transfer rate

VDD = 1.8 to 5.5 V 19531 bps

Show 10 more labels / short text on this page
tKH1, · width · tSIK1 · tKSI1 · to SO20 output · tKH2, · width · tSIK2 · tKSI2 · to SO20 output
Page 354 of the NEC PD78F9489 user manual — (d) UART mode (external clock input)
Page 354 · click to enlarge
Page 354

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

(d) UART mode (external clock input)

NEC PD78F9489 — (d) UART mode (external clock input) diagram (page 354)
Fig. 127 · (d) UART mode (external clock input)

VDD = 2.7 to 5.5 V 800 ns ASCK20 cycle time tKCY3

VDD = 1.8 to 5.5 V 3200 ns

VDD = 2.7 to 5.5 V 400 ns ASCK20 high-/low-level

tKL3 VDD = 1.8 to 5.5 V 1600 ns

VDD = 2.7 to 5.5 V 39063 bps Transfer rate

VDD = 1.8 to 5.5 V 9766 bps

Page 355 of the NEC PD78F9489 user manual — (external clock input)
Page 355 · click to enlarge
Page 355

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

(3) Serial interface 1A0 (SIO1A0) (TA = –40 to +85°C, VDD = 1.8 to 5.5 V)

(a) 3-wire serial I/O mode, 3-wire serial I/O mode with automatic transmit/receive function

(internal clock output)

Parameter Symbol Conditions MIN. TYP. MAX. Unit

VDD = 2.7 to 5.5 V 800 ns SCK10 cycle time tKCY4

VDD = 1.8 to 5.5 V 3200 ns

VDD = 2.7 to 5.5 V tKCY4/2–50 ns SCK10 high-/low-level

tKL4 VDD = 1.8 to 5.5 V tKCY4/2–150 ns

VDD = 2.7 to 5.5 V 150 ns SI10 setup time

(to SCK10↑)

VDD = 1.8 to 5.5 V 500 ns

VDD = 2.7 to 5.5 V 400 ns SI10 hold time

(from SCK10↑)

VDD = 1.8 to 5.5 V 600 ns

VDD = 2.7 to 5.5 V 0 250 ns Delay time from SCK10↓

tKSO4 R = 1 kΩ, C = 100 pF

VDD = 1.8 to 5.5 V 0 1000 ns

(b) 3-wire serial I/O mode, 3-wire serial I/O mode with automatic transmit/receive function

(external clock input)

Parameter Symbol Conditions MIN. TYP. MAX. Unit

VDD = 2.7 to 5.5 V 800 ns SCK10 cycle time tKCY5

VDD = 1.8 to 5.5 V 3200 ns

VDD = 2.7 to 5.5 V 400 ns SCK10 high-/low-level

tKL5 VDD = 1.8 to 5.5 V 1600 ns

VDD = 2.7 to 5.5 V 100 ns SI10 setup time

(to SCK10↑)

VDD = 1.8 to 5.5 V 150 ns

VDD = 2.7 to 5.5 V 400 ns SI10 hold time

(from SCK10↑)

VDD = 1.8 to 5.5 V 600 ns

VDD = 2.7 to 5.5 V 0 300 ns Delay time from SCK10↓

tKSO5 R = 1 kΩ, C = 100 pF

VDD = 1.8 to 5.5 V 0 1000 ns

Show 10 more labels / short text on this page
tKH4, · width · tSIK4 · tKSI4 · to SO10 output · tKH5, · width · tSIK5 · tKSI5 · to SO10 output
Page 356 of the NEC PD78F9489 user manual — TMI60, TMI61
Page 356 · click to enlarge
Page 356

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

AC Timing Measurement Points (Excluding X1 and XT1 Inputs)

0.8V DD

0.8V DD

0.2VDD Point of measurement

0.2V DD

Clock Timing

tXL tXH

V IH4 (MIN.)

V IL4 (MAX.)

tXTL tXTH

V IH4 (MIN.)

V IL4 (MAX.)

Capture Input Timing

tCPTL tCPTH

CPT20

TMI Timing

tTIL tTIH

TMI60, TMI61

Interrupt Input Timing

tINTL tINTH

Show 6 more labels / short text on this page
1/fX · X1 input · 1/fXT · XT1 input · 1/fTI · INTP0 to INTP3
Page 357 of the NEC PD78F9489 user manual — ASCK20
Page 357 · click to enlarge
Page 357

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

Key Return Input Timing

KR0 to KR7 ( PD789488, 78F9488) , KR00 to KR07, KR10 to KR17 ( PD789489, 78F9489) µ

RESET Input Timing

RESET

Serial Transfer Timing

3-wire serial I/O mode:

tKLm tKHm

SCK10, SCK20

tSIKm tKSIm

SI10, SI20

SO10, SO20

Remark m = 1, 2, 4, 5

UART mode (external clock input):

tKL3 tKH3

tR tF

ASCK20

Show 8 more labels / short text on this page
tKRL · µ · tRSL · tKCYm · Input data · tKSOm · Output data · tKCY3
Page 358 of the NEC PD78F9489 user manual — DNL
Page 358 · click to enlarge
Page 358

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

10-Bit A/D Converter Characteristics

(TA = –40 to +85°C, 1.8 V ≤ AVDD = VDD ≤ 5.5 V, AVSS = VSS = 0 V)

Parameter Symbol Conditions MIN. TYP. MAX. Unit

Resolution 10 10 10 bit

4.5 V ≤ AVDD ≤ 5.5 V ±0.2 ±0.4 %FSR

2.7 V ≤ AVDD < 4.5 V ±0.4 ±0.6 %FSR

1.8 V ≤ AVDD < 2.7 V ±0.8 ±1.2 %FSR

Conversion time tCONV

4.5 V ≤ AVDD ≤ 5.5 V 14 100 µs

2.7 V ≤ AVDD < 4.5 V 14 100 µs

1.8 V ≤ AVDD < 2.7 V 28 100 µs

4.5 V ≤ AVDD ≤ 5.5 V ±0.4 %FSR

2.7 V ≤ AVDD < 4.5 V ±0.6 %FSR

1.8 V ≤ AVDD < 2.7 V ±1.2 %FSR

4.5 V ≤ AVDD ≤ 5.5 V ±0.4 %FSR

2.7 V ≤ AVDD < 4.5 V ±0.6 %FSR

1.8 V ≤ AVDD < 2.7 V ±1.2 %FSR

4.5 V ≤ AVDD ≤ 5.5 V ±2.5 LSB

2.7 V ≤ AVDD < 4.5 V ±4.5 LSB

1.8 V ≤ AVDD < 2.7 V ±8.5 LSB

DNL

4.5 V ≤ AVDD ≤ 5.5 V ±1.5 LSB

2.7 V ≤ AVDD < 4.5 V ±2.0 LSB

1.8 V ≤ AVDD < 2.7 V ±3.5 LSB

Analog input voltage VIAN 0 AVDD V

Remark FSRFull scale range
Show 6 more labels / short text on this page
Overall error · Zero-scale error · Full-scale error · Non-integral linearity · Non-differential · linearity
Page 359 of the NEC PD78F9489 user manual — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)
Page 359 · click to enlarge
Page 359

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

LCD Characteristics (TA = –40 to +85°C, VDD = 1.8 to 5.5 V)

NEC PD78F9489 — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489) diagram (page 359)
Fig. 128 · CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F…

GAIN = 1 0.84 1.0 1.165 V LCD output voltage

GAIN = 0 1.8 ≤ VDD < 5.5 V 0.5 s

5.0 ≤ VDD ≤ 5.5 V 2.0 s

4.5 ≤ VDD < 5.0 V 1.0 s

1.8 ≤ VDD < 4.5 V 0.5 s

VODC IO = ±5 µA 0 ±0.2 V

VODS IO = ±1 µA 0 ±0.2 V

C1A capacitor connected between CAPH and CAPL
C2A capacitor connected between V LC0 and V SS
C3A capacitor connected between V LC1 and V SS
C4A capacitor connected between V LC2 and V SS
2. This is the wait time from when voltage boosting is started (VAON0 = 1) until display is enabled

(LCDON0 = 1).

3. The voltage differential is the difference between the segment and common signal output’s actual and

ideal output voltages.

Data Memory STOP Mode Low Supply Voltage Data Retention Characteristics (TA = –40 to +85°C)

NEC PD78F9489 — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489) diagram (page 359)
Fig. 129 · CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F…

Release signal set time tSREL 0 µs

Page 360 of the NEC PD78F9489 user manual — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)
Page 360 · click to enlarge
Page 360

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

NEC PD78F9489 — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489) diagram (page 360)
Fig. 130 · CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F…

Data Retention Timing (Standby Release Signal: STOP Mode Release by Interrupt Request Signal)

Oscillation Stabilization Wait Time (TA = –40 to +85°C, VDD = 1.8 to 5.5 V)

Release by RESET 2 15/fX s Oscillation stabilization wait

2. Selection of 2 12 /f X , 2 15 /f X , or 2 17 /f X is possible with bits 0 to 2 (OSTS0 to OSTS2) of the oscillation

stabilization time selection register (OSTS).

Remark f XMain system clock oscillation frequency
Page 361 of the NEC PD78F9489 user manual — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)
Page 361 · click to enlarge
Page 361

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

Flash Memory Writing and Erasing Characteristics (TA = 10 to 40°C, VDD = 1.8 to 5.5 V)

(µPD78F9488, 78F9489 only)

NEC PD78F9489 — CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489) diagram (page 361)
Fig. 131 · CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F…

Write/erase operating frequency fX 2.7 V ≤ VDD ≤ 5.5 V 1.0 5 MHz

1.8 V ≤ VDD ≤ 5.5 V 1.0 1.25 MHz

Unit erase time ter 0.5 1 1 s

Number of overwrites Erase and write is considered as 1 cycle

VPP0 Normal operation 0 0.2VDD V VPP supply voltage

VPP1 Flash memory programming 9.7 10.0 10.3 V

Page 362 of the NEC PD78F9489 user manual — V LCD0
Page 362 · click to enlarge
Page 362

CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)

(1) Characteristics curves of voltage boosting stabilization time

The following shows the characteristics curves of the time from the start of voltage boosting (VAON0 = 1) and

the changes in the LCD output voltage (when GAIN is set as 1 (using the 3 V display panel)).

LCD output voltage/Voltage boosting time

VDD = 4.5 V VDD = 5 V VDD = 5.5 V

LCD output voltage [V]

V LCD0

V LCD1

V LCD2

0 500 1000 1500 2000 2500 3000 3500 4000

Voltage boosting time [ms]

Page 363 of the NEC PD78F9489 user manual — V LCD2 V LCD1 V LCD0
Page 363 · click to enlarge
Page 363

CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)

(2) Temperature characteristics of LCD output voltage

The following shows the temperature characteristics curves of LCD output voltage.

LCD output voltage/Temperature (When GAIN = 1)

V LCD2 V LCD1 V LCD0

LCD output voltage [V]

−40 −30 −20 −10 0 10 20 30 40 50 60 70 80

LCD output voltage/Temperature (When GAIN = 0)

V LCD2 V LCD1 V LCD0

LCD output voltage [V]

−40 −30 −20 −10 0 10 20 30 40 50 60 70 80

Temperature [˚C] · Temperature [˚C]

Page 364 of the NEC PD78F9489 user manual — P80GC-65-8BT-1
Page 364 · click to enlarge
Page 364

CHAPTER 24 PACKAGE DRAWINGS

80-PIN PLASTIC QFP (14x14)

NEC PD78F9489 — CHAPTER 24 PACKAGE DRAWINGS diagram (page 364)
Fig. 132

detail of lead end

S

R

Q

ITEM MILLIMETERS

Each lead centerline is located within 0.13 mm of its true position (T.P.) at maximum material condition.

17.20±0.20

A

B

14.00±0.20

C 14.00 ± 0.20

D

17.20±0.20

F 0.825

G

H 0.32 ± 0.06

J

0.65 (T.P.) K 1.60 ± 0.20

L 0.80 ± 0.20

M 0.17 + 0.03 − 0.07

N 0.10

P 1.40 ± 0.10 Q 0.125 ± 0.075

R 3°+7° −3°

S 1.70 MAX.

P80GC-65-8BT-1

Page 365 of the NEC PD78F9489 user manual — S 1.1 ± 0.1
Page 365 · click to enlarge
Page 365

CHAPTER 24 PACKAGE DRAWINGS

80-PIN PLASTIC TQFP (FINE PITCH) (12x12)

A

B

detail of lead end

S

C D

P

T

R

U

F Q

G I

H

M

J

K

S

N M

S

NOTE

ITEM MILLIMETERS

Each lead centerline is located within 0.08 mm of its true position (T.P.) at maximum material condition.

A 14.0 ± 0.2

B 12.0 ± 0.2

C 12.0 ± 0.2

D F 1.25 14.0 ± 0.2

G

H 0.22 ± 0.05

J 0.5 (T.P.)

K L 0.5 1.0 ± 0.2

M

0.145±0.05

N 0.08

P

Q 0.1 ± 0.05

R 3°+4° −3°

S 1.1 ± 0.1

T 0.25

U 0.6 ± 0.15

P80GK-50-9EU-1

60 41 40 · 80 1 20

Page 366 of the NEC PD78F9489 user manual — VP15-107-2
Page 366 · click to enlarge
Page 366

CHAPTER 25 RECOMMENDED SOLDERING CONDITIONS

The µPD789489 subseries should be soldered and mounted under the following recommended conditions.

For soldering methods and conditions other than those recommended below, contact an NEC Electronics sales

representative.

For technical information, see the following website.

Semiconductor Device Mount Manual (http://www.necel.com/pkg/en/mount/index.html)

Table 25-1. Surface Mounting Type Soldering Conditions (1/3)

(1) µ PD789488GC- ××× -8BT80-pin plastic QFP (14x14)
µ PD78F9488GC-8BT80-pin plastic QFP (14x14)
µ PD789489GC- ××× -8BT80-pin plastic QFP (14x14)

Soldering Method Soldering Conditions Recommended

Infrared reflow Package peak temperature235°C, Time: 30 seconds max. (at 210°C or higher),

IR35-00-2

CountTwice or less
VPS Package peak temperature215°C, Time: 40 seconds max. (at 200°C or higher),

VP15-00-2

CountTwice or less
Wave soldering Solder bath temperature260°C max., Time: 10 seconds max., Count: Once,

WS60-00-1

Preheating temperature120°C max. (package surface temperature)
Partial heating Pin temperature350°C max., Time: 3 seconds max. (per pin row) –
(2) µ PD789488GK- ××× -9EU80-pin plastic TQFP (fine pitch) (12x12)
µ PD78F9488GK-9EU80-pin plastic TQFP (fine pitch) (12x12)
µ PD789489GK- ××× -9EU80-pin plastic TQFP (fine pitch) (12x12)

Soldering Method Soldering Conditions Recommended

Interface reflow Package peak temperature: 235°C, Time:30 seconds max. (at 210°C or higher),

IR35-107-2

CountTwice or less, Exposure limit: 7 days
VPS Package peak temperature215 ° C, Time:40 seconds max. (at 200 ° C or higher),

VP15-107-2

CountTwice or less, Exposure limit: 7 days
Partial heating Pin temperature350 ° C max., Time: 3 seconds max. (per pin row) −
Show 4 more labels / short text on this page
Condition Symbol · Condition Symbol · 10 hours) · 10 hours)
Page 367 of the NEC PD78F9489 user manual — VP15-103-2
Page 367 · click to enlarge
Page 367

CHAPTER 25 RECOMMENDED SOLDERING CONDITIONS

Table 25-1. Surface Mounting Type Soldering Conditions (2/3)

(3) µ PD78F9489GC-8BT80-pin plastic QFP (14x14)

Soldering Method Soldering Conditions Recommended

Interface reflow Package peak temperature: 235°C, Time:30 seconds max. (at 210°C or higher),

IR35-107-2

CountTwice or less, Exposure limit: 7 days
VPS Package peak temperature215 ° C, Time:40 seconds max. (at 200 ° C or higher),

VP15-107-2

CountTwice or less, Exposure limit: 7 days
Wave soldering Solder bath temperature260°C max., Time: 10 seconds max., Count: Once,

WS60-107-1

Preheating temperature120°C max. (package surface temperature)
Partial heating Pin temperature350°C max., Time: 3 seconds max. (per pin row) –
(4) µ PD78F9489GK-9EU80-pin plastic TQFP (fine pitch) (12x12)

Soldering Method Soldering Conditions Recommended

Interface reflow Package peak temperature: 235°C, Time:30 seconds max. (at 210°C or higher),

IR35-103-2

CountTwice or less, Exposure limit: 3 days
VPS Package peak temperature215 ° C, Time:40 seconds max. (at 200 ° C or higher),

VP15-103-2

CountTwice or less, Exposure limit: 3 days
Partial heating Pin temperature350°C max., Time: 3 seconds max. (per pin row) –
Show 6 more labels / short text on this page
Condition Symbol · 10 hours) · 10 hours) · Condition Symbol · 10 hours) · 10 hours)
Page 368 of the NEC PD78F9489 user manual — IR60-207-3
Page 368 · click to enlarge
Page 368

CHAPTER 25 RECOMMENDED SOLDERING CONDITIONS

Table 25-1. Surface Mounting Type Soldering Conditions (3/3)

(5) µ PD789488GC- ××× -8BT-A80-pin plastic QFP (14x14)
µ PD78F9488GC-8BT-A80-pin plastic QFP (14x14)
µ PD789489GC- ××× -8BT-A80-pin plastic QFP (14x14)
µ PD78F9489GC-8BT-A80-pin plastic QFP (14x14)
µ PD789488GK- ××× -9EU-A80-pin plastic TQFP (fine pitch) (12x12)
µ PD78F9488GK-9EU-A80-pin plastic TQFP (fine pitch) (12x12)
µ PD789489GK- ××× -9EU-A80-pin plastic TQFP (fine pitch) (12x12)
µ PD78F9489GK-9EU-A80-pin plastic TQFP (fine pitch) (12x12)

Soldering Method Soldering Conditions Recommended Condition

Infrared reflow Package peak temperature: 260°C, Time: 60 seconds max. (at 220°C or higher), Count: Three times or less, Exposure limit: 7 daysNote (after

IR60-207-3

that, prebake at 125°C for 20 to 72 hours)

Wave soldering When the pin pitch of the package is 0.65 mm or more, wave soldering

can also be performed.

For details, contact an NEC Electronics sales representative.

Partial heating Pin temperature350 ° C max., Time: 3 seconds max. (per pin row) −

Remarks 1. Products that have the part numbers suffixed by "-A" are lead-free products.

2. For soldering methods and conditions other than those recommended above, contact an NEC

Electronics sales representative.

Symbol · −

Page 369 of the NEC PD78F9489 user manual — APPENDIX A DEVELOPMENT TOOLS
Page 369 · click to enlarge
Page 369

APPENDIX A DEVELOPMENT TOOLS

The following development tools are available for development of systems using the µPD789489 Subseries.

Figure A-1 shows development tools.

  • Support for PC98-NX Series

Unless specified otherwise, the products supported by IBM PC/AT™ compatibles can be used in the PC98-NX

Series. When using the PC98-NX Series, refer to the explanation of IBM PC/AT compatibles.

  • Windows™

Unless specified otherwise, “Windows” indicates the following operating systems.

  • Windows 3.1
  • Windows 95
  • Windows 98
  • Windows 2000
  • Windows NT™ Ver.4.0
  • Windows XP
Page 370 of the NEC PD78F9489 user manual — · Integrated debugger · System simulator
Page 370 · click to enlarge
Page 370

APPENDIX A DEVELOPMENT TOOLS

Figure A-1. Development Tools

· Software package

· Assembler package · C compiler package · Device file · C library source fileNote 1

· Integrated debugger · System simulator

Control software · Project manager

(Windows version only)Note 2

Flash memory writing environment

Flash memory writing adapter

Conversion socket or conversion adapter

2. The project manager is included in the assembler package.

The project manager is used only in the Windows environment.

Show 13 more labels / short text on this page
Software package · Language processing software · Debugging software · Host machine · (PC or EWS) · Interface adapter · Power supply unit · In-circuit emulator · Flash programmer · Emulation board · Flash memory · Emulation probe · Target system
Page 371 of the NEC PD78F9489 user manual — CC78K0S-L
Page 371 · click to enlarge
Page 371

APPENDIX A DEVELOPMENT TOOLS

A.1 Software Package

NEC PD78F9489 — APPENDIX A DEVELOPMENT TOOLS diagram (page 371)
Fig. 133

Software tools for development of the 78K/0S Series are combined in this package.

Remark ×××× in the part number differs depending on the OS used

µS××××SP78K0S

NEC PD78F9489 — APPENDIX A DEVELOPMENT TOOLS diagram (page 371)
Fig. 134

A.2 Language Processing Software

RA78K0S

Program that converts program written in mnemonic into object codes that can be executed

by a microcontroller.

In addition, automatic functions to generate symbol tables and optimize branch instructions

are also provided.

Used in combination with a device file (DF789488) (sold separately).

<Caution when used in PC environment>

The assembler package is a DOS-based application but may be used in the Windows

environment by using the project manager of Windows (included in the assembler package).

Part numberµ S ×××× RA78K0S

CC78K0S

Program that converts program written in C language into object codes that can be executed

by a microcontroller.

Used in combination with an assembler package (RA78K0S) and device file (DF789488)

(both sold separately).

<Caution when used in PC environment>

The C compiler package is a DOS-based application but may be used in the Windows

environment by using the project manager of Windows (included in the assembler package).

Part numberµ S ×××× CC78K0S

DF789488

File containing information inherent to the device.

Used in combination with the RA78K0S, CC78K0S, ID78K0S-NS, and SM78K0S (all sold

separately).

Part numberµ S ×××× DF789488

CC78K0S-L

Source file of functions for generating object library included in the C compiler package.

C library source file

Necessary for changing the object library included in the C compiler package according to

the customer’s specifications. Since this is a source file, its working environment does not

depend on any particular operating system.

Part numberµ S ×××× CC78K0S-L

SM78K0S.

2. CC78K0S-L is not included in the software package (SP78K0S).

Assembler package · C compiler package · Device file

Page 372 of the NEC PD78F9489 user manual — A.4 Flash Memory Writing Tools
Page 372 · click to enlarge
Page 372

APPENDIX A DEVELOPMENT TOOLS

Remark ×××× in the part number differs depending on the host machine and operating system to be used.

µS××××RA78K0S

µS××××CC78K0S

NEC PD78F9489 — APPENDIX A DEVELOPMENT TOOLS diagram (page 372)
Fig. 135

A.3 Control Software

NEC PD78F9489 — A.3 Control Software diagram (page 372)
Fig. 136 · A.3 Control Software

Control software created for efficient development of the user program in the Windows

environment. User program development operations such as editor startup, build, and

debugger startup can be performed from the PM plus.

The PM plus is included in the assembler package (RA78K0S).

The PM plus is used only in the Windows environment.

A.4 Flash Memory Writing Tools

NEC PD78F9489 — A.4 Flash Memory Writing Tools diagram (page 372)
Fig. 137 · A.4 Flash Memory Writing Tools

Adapter for writing to flash memory and connected to Flashpro III or Flashpro IV.

Remark The FL-PR3, FL-PR4, FA-80GC-8BT, and FA-80GK-9EU are products made by Naito Densei Machida

Mfg. Co., Ltd. (TEL +81-45-475-4191).

Page 373 of the NEC PD78F9489 user manual — TGK-080SDW
Page 373 · click to enlarge
Page 373

APPENDIX A DEVELOPMENT TOOLS

A.5 Debugging Tools (Hardware)

IE-78K0S-NS

In-circuit emulator for debugging hardware and software of an application system using the

78K/0S Series. Can be used with the integrated the debugger ID78K0S-NS. Used in

combination with an AC adapter, emulation probe, and interface adapter for connecting the host

machine.

IE-78K0S-NS-A

The IE-78K0S-NS-A provides a coverage function in addition to the IE-78K0S-NS functions, thus

enhancing the debug functions, including the tracer and timer functions.

IE-70000-MC-PS-B

Adapter for supplying power from AC 100 to 240 V outlet.

IE-70000-98-IF-C

Adapter necessary when using a PC-9800 series PC (except notebook type) as the host machine

IE-70000-CD-IF-A

PC card and interface cable necessary when using a notebook PC as the host machine

IE-70000-PC-IF-C

Interface adapter necessary when using an IBM PC/AT compatible as the host machine (ISA bus

IE-70000-PCI-IF-A

Adapter necessary when using a personal computer incorporating a PCI bus as the host machine

IE-789488-NS-EM1

Board for emulating the peripheral hardware inherent to the device. Used in combination with an

in-circuit emulator.

NP-80GC

Cable to connect the in-circuit emulator and target system.

Used in combination with the EV-9200GC-80.

EV-9200GC-80

Conversion socket to connect the NP-80GC and a target system board on which an 80-pin plastic

QFP (GC-8BT type) can be mounted.

NP-80GC-TQ

Cable to connect the in-circuit emulator and target system.

NP-H80GC-TQ

Used in combination with the TGC-080SBP.

TGC-080SBP

Conversion adapter to connect the NP-80GC-TQ or NP-H80GC-TQ and a target system board on

which an 80-pin plastic QFP (GC-8BT type) can be mounted.

NP-80GK

Cable to connect the in-circuit emulator and target system.

NP-H80GK-TQ

Used in combination with the TGK-080SDW.

TGK-080SDW

Conversion adapter to connect the NP-80GK or NP-H80GK-TQ and a target system board on

which an 80-pin plastic TQFP (GK-9EU type) can be mounted

Remarks 1. The NP-80GC, NP-80GC-TQ, NP-H80GC-TQ, NP-80GK, and NP-H80GK-TQ are products of Naito

Densei Machida Mfg. Co., Ltd. (TEL +81-45-475-4191).

2. The TGC-080SBP and TGK-080SDW are products of TOKYO ELETECH CORPORATION.

For further information, contact: Daimaru Kogyo, Ltd.

Tokyo Electronics Department (TEL +81-3-3820-7112)

Osaka Electronics Department (TEL +81-6-6244-6672)

Show 20 more labels / short text on this page
In-circuit emulator · In-circuit emulator · AC adapter · Interface adapter · (C bus supported) · PC card interface · (PCMCIA socket supported) · Interface adapter · supported) · Interface adapter · Emulation board · Emulation probe · Conversion · socket · Emulation prove · Conversion · adapter · Emulation prove · Conversion · adapter
Page 374 of the NEC PD78F9489 user manual — 3.5" 2HD FD
Page 374 · click to enlarge
Page 374

APPENDIX A DEVELOPMENT TOOLS

A.6 Debugging Tools (Software)

This debugger supports the in-circuit emulators IE-78K0S-NS and IE-78K0S-NS-A for the 78K/0S Series. The ID78K0S-NS is Windows-based software. It has improved C-compatible debugging functions and can display the results of tracing with the source program using an integrating window function that associates the source program, disassemble display, and memory display with the trace result. Used in combination with a device file (DF789488) (sold separately).

Part numberµ S ×××× ID78K0S-NS

This is a system simulator for the 78K/0S Series. The SM78K0S is Windows-based software. It can be used to debug the target system at C source level or assembler level while simulating the operation of the target system on the host machine. Using SM78K0S, the logic and performance of the application can be verified independently of hardware development. Therefore, the development efficiency can be enhanced and the software quality can be improved. Used in combination with a device file (DF789488) (sold separately).

Part numberµ S ×××× SM78K0S

DF789488

File containing the information inherent to the device. Used in combination with the RA78K0S, CC78K0S, ID78K0S-NS, and SM78K0S (all sold separately).

Part numberµ S ×××× DF789488

Remark ×××× in the part number differs depending on the operating system and supply medium to be used.

µS××××ID78K0S-NS

µS××××SM78K0S

×××× Host Machine OS Supply Media

PC-9800 series IBM PC/AT compatibles

3.5" 2HD FD

CD-ROM

BB17

Show 6 more labels / short text on this page
ID78K0S-NS Integrated debugger · SM78K0S System simulator · AB13 Japanese Windows · BB13 English Windows · AB17 Japanese Windows · English Windows
Page 375 of the NEC PD78F9489 user manual — TGCN1
Page 375 · click to enlarge
Page 375

APPENDIX B NOTES ON TARGET SYSTEM DESIGN

Figures B-1 to B-6 show the conditions when connecting the emulation probe to the conversion adapter or

conversion socket. Follow the configuration below and consider the shape of parts to be mounted on the target

system when designing a system.

Of the products described in this chapter, the NP-80GC, NP-80GC-TQ, NP-H80GC-TQ, NP-80GK and NP-H80GK-

TQ are products of Naito Densei Machida Mfg. Co., Ltd, and the TGC-080SBP and TGK-080SDP are products of

TOKYO ELETECH CORPORATION.

Table B-1. Distance Between IE System and Conversion Adapter

Emulation Probe Conversion Adapter Distance Between IE System and Conversion Adapter

TGC-080SBP

NP-H80GC-TQ

TGK-080SDP

NP-H80GK-TQ

(1) NP-80GC, NP-80GC-TQ, NP-H80GC-TQ

Figure B-1. Distance Between In-Circuit Emulator and Conversion Socket (80GC)

In-circuit emulator IE-78K0S-NS or IE-78K0S-NS-A

TGCN1

Emulation probe NP-80GC-TQ NP-H80GC-TQ

Conversion adapterTGC-080SBP
Show 7 more labels / short text on this page
NP-80GC-TQ 170 mm · 370 mm · NP-80GK 170 mm · 370 mm · Target system · Emulation board IE-789488-NS-EM1 · 170 mm Note
Page 376 of the NEC PD78F9489 user manual — Figure B-3. Connection Conditions of Target System (When NP-H80GC-TQ Is Used)
Page 376 · click to enlarge
Page 376

APPENDIX B NOTES ON TARGET SYSTEM DESIGN

Figure B-2. Connection Conditions of Target System (When NP-80GC-TQ Is Used)

NEC PD78F9489 — APPENDIX B NOTES ON TARGET SYSTEM DESIGN diagram (page 376)
Fig. 138

Figure B-3. Connection Conditions of Target System (When NP-H80GC-TQ Is Used)

NEC PD78F9489 — Figure B-3. Connection Conditions of Target System (When NP-H80GC-TQ Is Used) diagram (page 376)
Fig. 139 · Figure B-3. Connection Conditions of Target System (…
Show 4 more labels / short text on this page
Emulation board IE-789488-NS-EM1 · Target system · Emulation board IE-789488-NS-EM1 · Target system
Page 377 of the NEC PD78F9489 user manual — TGCN1
Page 377 · click to enlarge
Page 377

APPENDIX B NOTES ON TARGET SYSTEM DESIGN

(2) NP-80GK, NP-H80GK-TQ

Figure B-4. Distance Between In-Circuit Emulator and Conversion Adapter (80GK)

In-circuit emulator IE-78K0S-NS or IE-78K0S-NS-A

TGCN1

Emulation probe NP-80GK, NP-H80GK-TQ

Show 4 more labels / short text on this page
Target system · Emulation board IE-789488-NS-EM1 · 170 mm Note · Conversion adapter TGK-080SDP
Page 378 of the NEC PD78F9489 user manual — Figure B-6. Connection Conditions of Target System (When NP-H80GK-TQ Is Used)
Page 378 · click to enlarge
Page 378

APPENDIX B NOTES ON TARGET SYSTEM DESIGN

Figure B-5. Connection Conditions of Target System (When NP-80GK Is Used)

NEC PD78F9489 — APPENDIX B NOTES ON TARGET SYSTEM DESIGN diagram (page 378)
Fig. 140

Figure B-6. Connection Conditions of Target System (When NP-H80GK-TQ Is Used)

NEC PD78F9489 — Figure B-6. Connection Conditions of Target System (When NP-H80GK-TQ Is Used) diagram (page 378)
Fig. 141 · Figure B-6. Connection Conditions of Target System (…

Emulation board IE-789488-NS-EM1 · Target system · Emulation board IE-789488-NS-EM1

Page 379 of the NEC PD78F9489 user manual — Table of contents
Page 379 · click to enlarge
Page 379

Table of contents

COVERp.1INTRODUCTIONp.8CHAPTER 1 GENERALp.261.1 Featuresp.261.2 Applicationsp.261.3 Ordering Informationp.271.4 Pin Configuration (Top View)p.281.5 78K/0S Series Lineupp.311.6 Block Diagramp.341.7 Overview of Functionsp.35CHAPTER 2 PIN FUNCTIONSp.372.1 List of Pin Functionsp.372.2 Description of Pin Functionsp.402.2.1 P00 to P07 (Port 0)p.402.2.2 P10, P11 (Port 1)p.402.2.3 P20 to P25 (Port 2)p.402.2.4 P30 to P34 (Port 3)p.412.2.5 P50 to P53 (Port 5)p.412.2.6 P60 to P67 (Port 6)p.422.2.7 P70 to P73 (Port 7)p.422.2.8 P80 to P87 (Port 8)p.422.2.9 S0 to S27p.422.2.10 COM0 to COM3p.422.2.11 VLC0 to VLC2p.422.2.12 CAPH, CAPLp.422.2.13 RESET#p.432.2.14 X1, X2p.432.2.15 XT1, XT2p.432.2.16 AVDDp.432.2.17 AVSSp.432.2.18 VDDp.432.2.19 VSSp.432.2.20 VPP (flash memory version only)p.432.2.21 IC0 (mask ROM version only)p.442.3 Pin I/O Circuits and Recommended Connection of Unused Pinsp.45CHAPTER 3 CPU ARCHITECTUREp.483.1 Memory Spacep.483.1.1 Internal program memory spacep.523.1.2 Internal data memory spacep.533.1.3 Special function register (SFR) areap.533.1.4 Data memory addressingp.543.2 Processor Registersp.583.2.1 Control registersp.583.2.2 General-purpose registersp.613.2.3 Special function registers (SFRs)p.623.3 Instruction Address Addressingp.663.3.1 Relative addressingp.663.3.2 Immediate addressingp.673.3.3 Table indirect addressingp.683.3.4 Register addressingp.683.4 Operand Address Addressingp.693.4.1 Direct addressingp.693.4.2 Short direct addressingp.703.4.3 Special function register (SFR) addressingp.713.4.4 Register addressingp.723.4.5 Register indirect addressingp.733.4.6 Based addressingp.743.4.7 Stack addressingp.74CHAPTER 4 PORT FUNCTIONSp.754.1 Port Functionsp.754.2 Port Configurationp.764.2.1 Port 0p.774.2.2 Port 1p.784.2.3 Port 2p.794.2.4 Port 3p.844.2.5 Port 5p.864.2.6 Port 6p.874.2.7 Port 7p.894.2.8 Port 8p.904.3 Registers Controlling Port Functionp.914.4 Port Function Operationp.944.4.1 Writing to I/O portp.944.4.2 Reading from I/O portp.944.4.3 Arithmetic operation of I/O portp.94CHAPTER 5 CLOCK GENERATORp.955.1 Clock Generator Functionsp.955.2 Clock Generator Configurationp.955.3 Registers Controlling Clock Generatorp.985.4 System Clock Oscillatorsp.1015.4.1 Main system clock oscillatorp.1015.4.2 Subsystem clock oscillatorp.1025.4.3 Example of incorrect resonator connectionp.1035.4.4 Divider circuitp.1045.4.5 When subsystem clock is not usedp.1045.4.6 Subsystem clock (4 multiplication circuitp.1045.5 Clock Generator Operationp.1055.6 Changing Setting of System Clock and CPU Clockp.1065.6.1 Time required for switching between system clock and CPU clockp.1065.6.2 Switching between system clock and CPU clockp.107CHAPTER 6 16-BIT TIMER 20p.1086.1 16-Bit Timer 20 Functionsp.1086.2 16-Bit Timer 20 Configurationp.1086.3 Registers Controlling 16-Bit Timer 20p.1106.4 16-Bit Timer 20 Operationp.1136.4.1 Operation as timer interruptp.1136.4.2 Operation as timer outputp.1156.4.3 Capture operationp.1166.4.4 16-bit timer counter 20 readoutp.1176.5 Cautions on Using 16-Bit Timer 20p.1186.5.1 Restrictions when rewriting 16-bit compare register 20p.118CHAPTER 7 8-BIT TIMERS 50, 60, AND 61p.1207.1 Functions of 8-Bit Timers 50, 60, and 61p.1207.2 Configuration of 8-Bit Timers 50, 60, and 61p.1227.3 Control Registers for 8-Bit Timers 50, 60, and 61p.1287.4 Operation of 8-Bit Timers 50, 60, and 61p.1347.4.1 Operation as 8-bit timer counterp.1347.4.2 Operation as 16-bit timer counterp.1437.4.3 Operation as carrier generatorp.1507.4.4 PWM output mode operation (timer 50)p.1547.4.5 PPG output mode operation (timer 60 and timer 61)p.1587.5 Cautions on Using 8-Bit Timers 50, 60, and 61p.160CHAPTER 8 WATCH TIMERp.1618.1 Watch Timer Functionsp.1618.2 Configuration of Watch Timerp.1628.3 Control Registers for Watch Timerp.1638.4 Watch Timer Operationp.1658.4.1 Operation as watch timerp.1658.4.2 Operation as interval timerp.165CHAPTER 9 WATCHDOG TIMERp.1679.1 Watchdog Timer Functionsp.1679.2 Watchdog Timer Configurationp.1689.3 Watchdog Timer Control Registersp.1699.4 Watchdog Timer Operationp.1719.4.1 Operation as watchdog timerp.1719.4.2 Operation as interval timerp.172CHAPTER 10 10-BIT A/D CONVERTERp.17310.1 10-Bit A/D Converter Functionsp.17310.2 10-Bit A/D Converter Configurationp.17310.3 10-Bit A/D Converter Control Registersp.17610.4 10-Bit A/D Converter Operationp.17810.4.1 Basic operation of 10-bit A/D converterp.17810.4.2 Input voltage and conversion resultp.17910.4.3 Operation mode of 10-bit A/D converterp.18110.5 Cautions Related to 10-Bit A/D Converterp.182CHAPTER 11 SERIAL INTERFACE 20p.18611.1 Serial Interface 20 Functionsp.18611.2 Serial Interface 20 Configurationp.18611.3 Serial Interface 20 Control Registersp.19011.4 Serial Interface 20 Operationp.19711.4.1 Operation stop modep.19711.4.2 Asynchronous serial interface (UART) modep.19911.4.3 3-wire serial I/O modep.211CHAPTER 12 SERIAL INTERFACE 1A0p.21612.1 Function of Serial Interface 1A0p.21612.2 Configuration of Serial Interface 1A0p.21712.3 Control Registers for Serial Interface 1A0p.21912.4 Serial Interface 1A0 Operationp.22412.4.1 Operation stop modep.22412.4.2 3-wire serial I/O modep.22512.4.3 3-wire serial I/O mode with automatic transmit/receive functionp.230CHAPTER 13 LCD CONTROLLER/DRIVERp.25013.1 LCD Controller/Driver Functionsp.25013.2 LCD Controller/Driver Configurationp.25013.3 Registers Controlling LCD Controller/Driverp.25313.4 Setting LCD Controller/Driverp.25713.5 LCD Display Data Memoryp.25713.6 Common and Segment Signalsp.25813.7 Display Modesp.26013.7.1 Three-time-slice display examplep.26013.7.2 Four-time-slice display examplep.26313.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2p.266CHAPTER 14 MULTIPLIERp.26714.1 Multiplier Functionp.26714.2 Multiplier Configurationp.26714.3 Multiplier Control Registerp.26914.4 Multiplier Operationp.270CHAPTER 15 REMOTE CONTROLLER RECEIVER (uPD789489, 78F9489 ONLY)p.27115.1 Remote Controller Receiver Functionsp.27115.2 Remote Controller Receiver Configurationp.27115.3 Registers to Control Remote Controller Receiverp.27715.4 Operation of Remote Controller Receiverp.27915.4.1 Format of type A reception modep.27915.4.2 Operation flow of type A reception modep.27915.4.3 Timingp.28115.4.4 Compare register settingp.28315.4.5 Error interrupt generation timingp.28515.4.6 Noise eliminationp.287CHAPTER 16 INTERRUPT FUNCTIONSp.29016.1 Interrupt Function Typesp.29016.2 Interrupt Sources and Configurationp.29016.3 Registers Controlling Interrupt Functionp.29416.4 Interrupt Servicing Operationp.30116.4.1 Non-maskable interrupt request acknowledgment operationp.30116.4.2 Maskable interrupt request acknowledgment operationp.30316.4.3 Multiple interrupt servicingp.30416.4.4 Putting interrupt requests on holdp.306CHAPTER 17 STANDBY FUNCTIONp.30717.1 Standby Function and Configurationp.30717.1.1 Standby functionp.30717.1.2 Register controlling standby functionp.30817.2 Standby Function Operationp.30917.2.1 HALT modep.30917.2.2 STOP modep.312CHAPTER 18 RESET FUNCTIONp.315CHAPTER 19 FLASH MEMORY VERSIONp.31919.1 Flash Memory Characteristicsp.32019.1.1 Programming environmentp.32019.1.2 Communication modep.32119.1.3 On-board pin processingp.32419.1.4 Connection of adapter for flash writingp.32719.2 Cautions on uPD78F9488 and 78F9489p.330CHAPTER 20 MASK OPTIONSp.331CHAPTER 21 INSTRUCTION SETp.33221.1 Operationp.33221.1.1 Operand identifiers and description methodsp.33221.1.2 Description of “Operation” columnp.33321.1.3 Description of “Flag” columnp.33321.2 Operation Listp.33421.3 Instructions Listed by Addressing Typep.339CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)p.342CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)p.362CHAPTER 24 PACKAGE DRAWINGSp.364CHAPTER 25 RECOMMENDED SOLDERING CONDITIONSp.366APPENDIX A DEVELOPMENT TOOLSp.369A.1 Software Packagep.371A.2 Language Processing Softwarep.371A.3 Control Softwarep.372A.4 Flash Memory Writing Toolsp.372A.5 Debugging Tools (Hardware)p.373A.6 Debugging Tools (Software)p.374APPENDIX B NOTES ON TARGET SYSTEM DESIGNp.375APPENDIX C REGISTER INDEXp.379APPENDIX D REVISION HISTORYp.385
Page 380 of the NEC PD78F9489 user manual — Table of contents
Page 380 · click to enlarge
Page 380

Table of contents

COVERp.1INTRODUCTIONp.8CHAPTER 1 GENERALp.261.1 Featuresp.261.2 Applicationsp.261.3 Ordering Informationp.271.4 Pin Configuration (Top View)p.281.5 78K/0S Series Lineupp.311.6 Block Diagramp.341.7 Overview of Functionsp.35CHAPTER 2 PIN FUNCTIONSp.372.1 List of Pin Functionsp.372.2 Description of Pin Functionsp.402.2.1 P00 to P07 (Port 0)p.402.2.2 P10, P11 (Port 1)p.402.2.3 P20 to P25 (Port 2)p.402.2.4 P30 to P34 (Port 3)p.412.2.5 P50 to P53 (Port 5)p.412.2.6 P60 to P67 (Port 6)p.422.2.7 P70 to P73 (Port 7)p.422.2.8 P80 to P87 (Port 8)p.422.2.9 S0 to S27p.422.2.10 COM0 to COM3p.422.2.11 VLC0 to VLC2p.422.2.12 CAPH, CAPLp.422.2.13 RESET#p.432.2.14 X1, X2p.432.2.15 XT1, XT2p.432.2.16 AVDDp.432.2.17 AVSSp.432.2.18 VDDp.432.2.19 VSSp.432.2.20 VPP (flash memory version only)p.432.2.21 IC0 (mask ROM version only)p.442.3 Pin I/O Circuits and Recommended Connection of Unused Pinsp.45CHAPTER 3 CPU ARCHITECTUREp.483.1 Memory Spacep.483.1.1 Internal program memory spacep.523.1.2 Internal data memory spacep.533.1.3 Special function register (SFR) areap.533.1.4 Data memory addressingp.543.2 Processor Registersp.583.2.1 Control registersp.583.2.2 General-purpose registersp.613.2.3 Special function registers (SFRs)p.623.3 Instruction Address Addressingp.663.3.1 Relative addressingp.663.3.2 Immediate addressingp.673.3.3 Table indirect addressingp.683.3.4 Register addressingp.683.4 Operand Address Addressingp.693.4.1 Direct addressingp.693.4.2 Short direct addressingp.703.4.3 Special function register (SFR) addressingp.713.4.4 Register addressingp.723.4.5 Register indirect addressingp.733.4.6 Based addressingp.743.4.7 Stack addressingp.74CHAPTER 4 PORT FUNCTIONSp.754.1 Port Functionsp.754.2 Port Configurationp.764.2.1 Port 0p.774.2.2 Port 1p.784.2.3 Port 2p.794.2.4 Port 3p.844.2.5 Port 5p.864.2.6 Port 6p.874.2.7 Port 7p.894.2.8 Port 8p.904.3 Registers Controlling Port Functionp.914.4 Port Function Operationp.944.4.1 Writing to I/O portp.944.4.2 Reading from I/O portp.944.4.3 Arithmetic operation of I/O portp.94CHAPTER 5 CLOCK GENERATORp.955.1 Clock Generator Functionsp.955.2 Clock Generator Configurationp.955.3 Registers Controlling Clock Generatorp.985.4 System Clock Oscillatorsp.1015.4.1 Main system clock oscillatorp.1015.4.2 Subsystem clock oscillatorp.1025.4.3 Example of incorrect resonator connectionp.1035.4.4 Divider circuitp.1045.4.5 When subsystem clock is not usedp.1045.4.6 Subsystem clock (4 multiplication circuitp.1045.5 Clock Generator Operationp.1055.6 Changing Setting of System Clock and CPU Clockp.1065.6.1 Time required for switching between system clock and CPU clockp.1065.6.2 Switching between system clock and CPU clockp.107CHAPTER 6 16-BIT TIMER 20p.1086.1 16-Bit Timer 20 Functionsp.1086.2 16-Bit Timer 20 Configurationp.1086.3 Registers Controlling 16-Bit Timer 20p.1106.4 16-Bit Timer 20 Operationp.1136.4.1 Operation as timer interruptp.1136.4.2 Operation as timer outputp.1156.4.3 Capture operationp.1166.4.4 16-bit timer counter 20 readoutp.1176.5 Cautions on Using 16-Bit Timer 20p.1186.5.1 Restrictions when rewriting 16-bit compare register 20p.118CHAPTER 7 8-BIT TIMERS 50, 60, AND 61p.1207.1 Functions of 8-Bit Timers 50, 60, and 61p.1207.2 Configuration of 8-Bit Timers 50, 60, and 61p.1227.3 Control Registers for 8-Bit Timers 50, 60, and 61p.1287.4 Operation of 8-Bit Timers 50, 60, and 61p.1347.4.1 Operation as 8-bit timer counterp.1347.4.2 Operation as 16-bit timer counterp.1437.4.3 Operation as carrier generatorp.1507.4.4 PWM output mode operation (timer 50)p.1547.4.5 PPG output mode operation (timer 60 and timer 61)p.1587.5 Cautions on Using 8-Bit Timers 50, 60, and 61p.160CHAPTER 8 WATCH TIMERp.1618.1 Watch Timer Functionsp.1618.2 Configuration of Watch Timerp.1628.3 Control Registers for Watch Timerp.1638.4 Watch Timer Operationp.1658.4.1 Operation as watch timerp.1658.4.2 Operation as interval timerp.165CHAPTER 9 WATCHDOG TIMERp.1679.1 Watchdog Timer Functionsp.1679.2 Watchdog Timer Configurationp.1689.3 Watchdog Timer Control Registersp.1699.4 Watchdog Timer Operationp.1719.4.1 Operation as watchdog timerp.1719.4.2 Operation as interval timerp.172CHAPTER 10 10-BIT A/D CONVERTERp.17310.1 10-Bit A/D Converter Functionsp.17310.2 10-Bit A/D Converter Configurationp.17310.3 10-Bit A/D Converter Control Registersp.17610.4 10-Bit A/D Converter Operationp.17810.4.1 Basic operation of 10-bit A/D converterp.17810.4.2 Input voltage and conversion resultp.17910.4.3 Operation mode of 10-bit A/D converterp.18110.5 Cautions Related to 10-Bit A/D Converterp.182CHAPTER 11 SERIAL INTERFACE 20p.18611.1 Serial Interface 20 Functionsp.18611.2 Serial Interface 20 Configurationp.18611.3 Serial Interface 20 Control Registersp.19011.4 Serial Interface 20 Operationp.19711.4.1 Operation stop modep.19711.4.2 Asynchronous serial interface (UART) modep.19911.4.3 3-wire serial I/O modep.211CHAPTER 12 SERIAL INTERFACE 1A0p.21612.1 Function of Serial Interface 1A0p.21612.2 Configuration of Serial Interface 1A0p.21712.3 Control Registers for Serial Interface 1A0p.21912.4 Serial Interface 1A0 Operationp.22412.4.1 Operation stop modep.22412.4.2 3-wire serial I/O modep.22512.4.3 3-wire serial I/O mode with automatic transmit/receive functionp.230CHAPTER 13 LCD CONTROLLER/DRIVERp.25013.1 LCD Controller/Driver Functionsp.25013.2 LCD Controller/Driver Configurationp.25013.3 Registers Controlling LCD Controller/Driverp.25313.4 Setting LCD Controller/Driverp.25713.5 LCD Display Data Memoryp.25713.6 Common and Segment Signalsp.25813.7 Display Modesp.26013.7.1 Three-time-slice display examplep.26013.7.2 Four-time-slice display examplep.26313.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2p.266CHAPTER 14 MULTIPLIERp.26714.1 Multiplier Functionp.26714.2 Multiplier Configurationp.26714.3 Multiplier Control Registerp.26914.4 Multiplier Operationp.270CHAPTER 15 REMOTE CONTROLLER RECEIVER (uPD789489, 78F9489 ONLY)p.27115.1 Remote Controller Receiver Functionsp.27115.2 Remote Controller Receiver Configurationp.27115.3 Registers to Control Remote Controller Receiverp.27715.4 Operation of Remote Controller Receiverp.27915.4.1 Format of type A reception modep.27915.4.2 Operation flow of type A reception modep.27915.4.3 Timingp.28115.4.4 Compare register settingp.28315.4.5 Error interrupt generation timingp.28515.4.6 Noise eliminationp.287CHAPTER 16 INTERRUPT FUNCTIONSp.29016.1 Interrupt Function Typesp.29016.2 Interrupt Sources and Configurationp.29016.3 Registers Controlling Interrupt Functionp.29416.4 Interrupt Servicing Operationp.30116.4.1 Non-maskable interrupt request acknowledgment operationp.30116.4.2 Maskable interrupt request acknowledgment operationp.30316.4.3 Multiple interrupt servicingp.30416.4.4 Putting interrupt requests on holdp.306CHAPTER 17 STANDBY FUNCTIONp.30717.1 Standby Function and Configurationp.30717.1.1 Standby functionp.30717.1.2 Register controlling standby functionp.30817.2 Standby Function Operationp.30917.2.1 HALT modep.30917.2.2 STOP modep.312CHAPTER 18 RESET FUNCTIONp.315CHAPTER 19 FLASH MEMORY VERSIONp.31919.1 Flash Memory Characteristicsp.32019.1.1 Programming environmentp.32019.1.2 Communication modep.32119.1.3 On-board pin processingp.32419.1.4 Connection of adapter for flash writingp.32719.2 Cautions on uPD78F9488 and 78F9489p.330CHAPTER 20 MASK OPTIONSp.331CHAPTER 21 INSTRUCTION SETp.33221.1 Operationp.33221.1.1 Operand identifiers and description methodsp.33221.1.2 Description of “Operation” columnp.33321.1.3 Description of “Flag” columnp.33321.2 Operation Listp.33421.3 Instructions Listed by Addressing Typep.339CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)p.342CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)p.362CHAPTER 24 PACKAGE DRAWINGSp.364CHAPTER 25 RECOMMENDED SOLDERING CONDITIONSp.366APPENDIX A DEVELOPMENT TOOLSp.369A.1 Software Packagep.371A.2 Language Processing Softwarep.371A.3 Control Softwarep.372A.4 Flash Memory Writing Toolsp.372A.5 Debugging Tools (Hardware)p.373A.6 Debugging Tools (Software)p.374APPENDIX B NOTES ON TARGET SYSTEM DESIGNp.375APPENDIX C REGISTER INDEXp.379APPENDIX D REVISION HISTORYp.385
Page 381 of the NEC PD78F9489 user manual — Table of contents
Page 381 · click to enlarge
Page 381

Table of contents

COVERp.1INTRODUCTIONp.8CHAPTER 1 GENERALp.261.1 Featuresp.261.2 Applicationsp.261.3 Ordering Informationp.271.4 Pin Configuration (Top View)p.281.5 78K/0S Series Lineupp.311.6 Block Diagramp.341.7 Overview of Functionsp.35CHAPTER 2 PIN FUNCTIONSp.372.1 List of Pin Functionsp.372.2 Description of Pin Functionsp.402.2.1 P00 to P07 (Port 0)p.402.2.2 P10, P11 (Port 1)p.402.2.3 P20 to P25 (Port 2)p.402.2.4 P30 to P34 (Port 3)p.412.2.5 P50 to P53 (Port 5)p.412.2.6 P60 to P67 (Port 6)p.422.2.7 P70 to P73 (Port 7)p.422.2.8 P80 to P87 (Port 8)p.422.2.9 S0 to S27p.422.2.10 COM0 to COM3p.422.2.11 VLC0 to VLC2p.422.2.12 CAPH, CAPLp.422.2.13 RESET#p.432.2.14 X1, X2p.432.2.15 XT1, XT2p.432.2.16 AVDDp.432.2.17 AVSSp.432.2.18 VDDp.432.2.19 VSSp.432.2.20 VPP (flash memory version only)p.432.2.21 IC0 (mask ROM version only)p.442.3 Pin I/O Circuits and Recommended Connection of Unused Pinsp.45CHAPTER 3 CPU ARCHITECTUREp.483.1 Memory Spacep.483.1.1 Internal program memory spacep.523.1.2 Internal data memory spacep.533.1.3 Special function register (SFR) areap.533.1.4 Data memory addressingp.543.2 Processor Registersp.583.2.1 Control registersp.583.2.2 General-purpose registersp.613.2.3 Special function registers (SFRs)p.623.3 Instruction Address Addressingp.663.3.1 Relative addressingp.663.3.2 Immediate addressingp.673.3.3 Table indirect addressingp.683.3.4 Register addressingp.683.4 Operand Address Addressingp.693.4.1 Direct addressingp.693.4.2 Short direct addressingp.703.4.3 Special function register (SFR) addressingp.713.4.4 Register addressingp.723.4.5 Register indirect addressingp.733.4.6 Based addressingp.743.4.7 Stack addressingp.74CHAPTER 4 PORT FUNCTIONSp.754.1 Port Functionsp.754.2 Port Configurationp.764.2.1 Port 0p.774.2.2 Port 1p.784.2.3 Port 2p.794.2.4 Port 3p.844.2.5 Port 5p.864.2.6 Port 6p.874.2.7 Port 7p.894.2.8 Port 8p.904.3 Registers Controlling Port Functionp.914.4 Port Function Operationp.944.4.1 Writing to I/O portp.944.4.2 Reading from I/O portp.944.4.3 Arithmetic operation of I/O portp.94CHAPTER 5 CLOCK GENERATORp.955.1 Clock Generator Functionsp.955.2 Clock Generator Configurationp.955.3 Registers Controlling Clock Generatorp.985.4 System Clock Oscillatorsp.1015.4.1 Main system clock oscillatorp.1015.4.2 Subsystem clock oscillatorp.1025.4.3 Example of incorrect resonator connectionp.1035.4.4 Divider circuitp.1045.4.5 When subsystem clock is not usedp.1045.4.6 Subsystem clock (4 multiplication circuitp.1045.5 Clock Generator Operationp.1055.6 Changing Setting of System Clock and CPU Clockp.1065.6.1 Time required for switching between system clock and CPU clockp.1065.6.2 Switching between system clock and CPU clockp.107CHAPTER 6 16-BIT TIMER 20p.1086.1 16-Bit Timer 20 Functionsp.1086.2 16-Bit Timer 20 Configurationp.1086.3 Registers Controlling 16-Bit Timer 20p.1106.4 16-Bit Timer 20 Operationp.1136.4.1 Operation as timer interruptp.1136.4.2 Operation as timer outputp.1156.4.3 Capture operationp.1166.4.4 16-bit timer counter 20 readoutp.1176.5 Cautions on Using 16-Bit Timer 20p.1186.5.1 Restrictions when rewriting 16-bit compare register 20p.118CHAPTER 7 8-BIT TIMERS 50, 60, AND 61p.1207.1 Functions of 8-Bit Timers 50, 60, and 61p.1207.2 Configuration of 8-Bit Timers 50, 60, and 61p.1227.3 Control Registers for 8-Bit Timers 50, 60, and 61p.1287.4 Operation of 8-Bit Timers 50, 60, and 61p.1347.4.1 Operation as 8-bit timer counterp.1347.4.2 Operation as 16-bit timer counterp.1437.4.3 Operation as carrier generatorp.1507.4.4 PWM output mode operation (timer 50)p.1547.4.5 PPG output mode operation (timer 60 and timer 61)p.1587.5 Cautions on Using 8-Bit Timers 50, 60, and 61p.160CHAPTER 8 WATCH TIMERp.1618.1 Watch Timer Functionsp.1618.2 Configuration of Watch Timerp.1628.3 Control Registers for Watch Timerp.1638.4 Watch Timer Operationp.1658.4.1 Operation as watch timerp.1658.4.2 Operation as interval timerp.165CHAPTER 9 WATCHDOG TIMERp.1679.1 Watchdog Timer Functionsp.1679.2 Watchdog Timer Configurationp.1689.3 Watchdog Timer Control Registersp.1699.4 Watchdog Timer Operationp.1719.4.1 Operation as watchdog timerp.1719.4.2 Operation as interval timerp.172CHAPTER 10 10-BIT A/D CONVERTERp.17310.1 10-Bit A/D Converter Functionsp.17310.2 10-Bit A/D Converter Configurationp.17310.3 10-Bit A/D Converter Control Registersp.17610.4 10-Bit A/D Converter Operationp.17810.4.1 Basic operation of 10-bit A/D converterp.17810.4.2 Input voltage and conversion resultp.17910.4.3 Operation mode of 10-bit A/D converterp.18110.5 Cautions Related to 10-Bit A/D Converterp.182CHAPTER 11 SERIAL INTERFACE 20p.18611.1 Serial Interface 20 Functionsp.18611.2 Serial Interface 20 Configurationp.18611.3 Serial Interface 20 Control Registersp.19011.4 Serial Interface 20 Operationp.19711.4.1 Operation stop modep.19711.4.2 Asynchronous serial interface (UART) modep.19911.4.3 3-wire serial I/O modep.211CHAPTER 12 SERIAL INTERFACE 1A0p.21612.1 Function of Serial Interface 1A0p.21612.2 Configuration of Serial Interface 1A0p.21712.3 Control Registers for Serial Interface 1A0p.21912.4 Serial Interface 1A0 Operationp.22412.4.1 Operation stop modep.22412.4.2 3-wire serial I/O modep.22512.4.3 3-wire serial I/O mode with automatic transmit/receive functionp.230CHAPTER 13 LCD CONTROLLER/DRIVERp.25013.1 LCD Controller/Driver Functionsp.25013.2 LCD Controller/Driver Configurationp.25013.3 Registers Controlling LCD Controller/Driverp.25313.4 Setting LCD Controller/Driverp.25713.5 LCD Display Data Memoryp.25713.6 Common and Segment Signalsp.25813.7 Display Modesp.26013.7.1 Three-time-slice display examplep.26013.7.2 Four-time-slice display examplep.26313.8 Supplying LCD Drive Voltages VLC0, VLC1, and VLC2p.266CHAPTER 14 MULTIPLIERp.26714.1 Multiplier Functionp.26714.2 Multiplier Configurationp.26714.3 Multiplier Control Registerp.26914.4 Multiplier Operationp.270CHAPTER 15 REMOTE CONTROLLER RECEIVER (uPD789489, 78F9489 ONLY)p.27115.1 Remote Controller Receiver Functionsp.27115.2 Remote Controller Receiver Configurationp.27115.3 Registers to Control Remote Controller Receiverp.27715.4 Operation of Remote Controller Receiverp.27915.4.1 Format of type A reception modep.27915.4.2 Operation flow of type A reception modep.27915.4.3 Timingp.28115.4.4 Compare register settingp.28315.4.5 Error interrupt generation timingp.28515.4.6 Noise eliminationp.287CHAPTER 16 INTERRUPT FUNCTIONSp.29016.1 Interrupt Function Typesp.29016.2 Interrupt Sources and Configurationp.29016.3 Registers Controlling Interrupt Functionp.29416.4 Interrupt Servicing Operationp.30116.4.1 Non-maskable interrupt request acknowledgment operationp.30116.4.2 Maskable interrupt request acknowledgment operationp.30316.4.3 Multiple interrupt servicingp.30416.4.4 Putting interrupt requests on holdp.306CHAPTER 17 STANDBY FUNCTIONp.30717.1 Standby Function and Configurationp.30717.1.1 Standby functionp.30717.1.2 Register controlling standby functionp.30817.2 Standby Function Operationp.30917.2.1 HALT modep.30917.2.2 STOP modep.312CHAPTER 18 RESET FUNCTIONp.315CHAPTER 19 FLASH MEMORY VERSIONp.31919.1 Flash Memory Characteristicsp.32019.1.1 Programming environmentp.32019.1.2 Communication modep.32119.1.3 On-board pin processingp.32419.1.4 Connection of adapter for flash writingp.32719.2 Cautions on uPD78F9488 and 78F9489p.330CHAPTER 20 MASK OPTIONSp.331CHAPTER 21 INSTRUCTION SETp.33221.1 Operationp.33221.1.1 Operand identifiers and description methodsp.33221.1.2 Description of “Operation” columnp.33321.1.3 Description of “Flag” columnp.33321.2 Operation Listp.33421.3 Instructions Listed by Addressing Typep.339CHAPTER 22 ELECTRICAL SPECIFICATIONS (uPD789488, 78F9488, 789489, 78F9489)p.342CHAPTER 23 CHARACTERISTICS CURVES OF LCD CONTROLLER/DRIVER (REFERENCE VALUES)p.362CHAPTER 24 PACKAGE DRAWINGSp.364CHAPTER 25 RECOMMENDED SOLDERING CONDITIONSp.366APPENDIX A DEVELOPMENT TOOLSp.369A.1 Software Packagep.371A.2 Language Processing Softwarep.371A.3 Control Softwarep.372A.4 Flash Memory Writing Toolsp.372A.5 Debugging Tools (Hardware)p.373A.6 Debugging Tools (Software)p.374APPENDIX B NOTES ON TARGET SYSTEM DESIGNp.375APPENDIX C REGISTER INDEXp.379APPENDIX D REVISION HISTORYp.385
Page 382 of the NEC PD78F9489 user manual — [M]
Page 382 · click to enlarge
Page 382

APPENDIX C REGISTER INDEX

C.2 Register Index (Register Symbols Alphabetic Order)

[A]

ADCRL0: A/D conversion result register 0 174

ADML0: A/D converter mode register 0 176

ADS0: Analog input channel specification register 0 177

ADTC0: Automatic data transmit/receive control register 0 221

ADTI0: Automatic data transmit/receive interval specification register 0 222

ADTP0: Automatic data transmit/receive address pointer 0 218

ASIM20: Asynchronous serial interface mode register 20 191

ASIS20: Asynchronous serial interface status register 20 193

[B]

BRGC20: Baud rate generator control register 20 194

[C]

CR20: 16-bit compare register 20 109

CR50: 8-bit compare register 50 126

CR60: 8-bit compare register 60 126

CR61: 8-bit compare register 61 126

CRH60: 8-bit H width compare register 60 127

CRH61: 8-bit H width compare register 61 127

CSIM1A0: Serial operation mode register 1A0 219

CSIM20: Serial operation mode register 20 190

CSS: Subclock control register 99

[ I ]

IF0: Interrupt request flag register 0 295

IF1: Interrupt request flag register 1 295

IF2: Interrupt request flag register 2 295

INTM0: External interrupt mode register 0 297

INTM1: External interrupt mode register 1 297

[K]

KRM00: Key return mode register 00 299

KRM01: Key return mode register 01 300

[L]

LCDC0: LCD clock control register 0 255

LCDM0: LCD display mode register 0 254

LCDVA0: LCD voltage boost control register 0 256

[M]

MK0: Interrupt mask flag register 0 296

MK1: Interrupt mask flag register 1 296

MK2: Interrupt mask flag register 2 296

MRA0: Multiplication data register A0 297

MRB0: Multiplication data register B0 297

Page 383 of the NEC PD78F9489 user manual — [S]
Page 383 · click to enlarge
Page 383

APPENDIX C REGISTER INDEX

MUL0H: 16-bit multiplication result storage register H 267

MUL0L: 16-bit multiplication result storage register L 267

MULC0: Multiplier control register 0 269

[O]

OSTS: Oscillation stabilization time select register 308

[P]

P0: Port 0 77

P1: Port 1 78

P2: Port 2 79

P3: Port 3 84

P5: Port 5 86

P6: Port 6 87

P7: Port 7 89

P8: Port 8 90

PCC: Processor clock control register 98

PF7: Port function register 7 93

PF8: Port function register 8 93

PM0: Port mode register 0 91

PM1: Port mode register 1 91

PM2: Port mode register 2 91

PM3: Port mode register 3 91, 112, 133

PM5: Port mode register 5 91

PM8: Port mode register 8 91

PUB0: Pull-up resistor option register B0 93

PUB1: Pull-up resistor option register B1 93

PUB2: Pull-up resistor option register B2 93

PUB3: Pull-up resistor option register B3 93

[R]

RMCN: Remote controller receive control register 277

RMDH0L: Remote controller DH0L compare register 275

RMDH0S: Remote controller receive DH0S compare register 275

RMDH1L: Remote controller DH1L compare register 275

RMDH1S: Remote controller receive DH1S compare register 275

RMDLL: Remote controller receive DLL compare register 274

RMDLS: Remote controller receive DLS compare register 274

RMDR: Remote controller receive data register 273

RMER: Remote controller receive end width select register 276

RMGPHL: Remote controller receive GPHL compare register 274

RMGPHS: Remote controller receive GPHS compare register 274

RMSCR: Remote controller shift register receive counter register 273

RMSR: Remote controller receive shift register 272

RXB20: Receive buffer register 20 189

[S]

SCKM: Subclock oscillation mode register 99

Page 384 of the NEC PD78F9489 user manual — [W]
Page 384 · click to enlarge
Page 384

APPENDIX C REGISTER INDEX

SIO1A0: Serial I/O shift register 1A0 218

SSCK: Subclock selection register 100

[T]

TCA60: Carrier generator output control register 60 131

TCP20: 16-bit capture register 20 109

TM20: 16-bit timer counter 20 109

TM50: 8-bit timer counter 50 127

TM60: 8-bit timer counter 60 127

TM61: 8-bit timer counter 61 127

TMC20: 16-bit timer mode control register 20 110

TMC50: 8-bit timer mode control register 50 128

TMC60: 8-bit timer mode control register 60 129

TMC61: 8-bit timer mode control register 61 132

TXS20: Transmit shift register 20 189

[W]

WDCS: Watchdog timer clock selection register 169

WDTM: Watchdog timer mode register 170

WTIM: Watch timer interrupt selection register 164

WTM: Watch timer mode control register 163

Page 385 of the NEC PD78F9489 user manual — APPENDIX D REVISION HISTORY
Page 385 · click to enlarge
Page 385

APPENDIX D REVISION HISTORY

The following table shows the revision history up to this edition. The “Applied to:” column indicates the chapters of each edition in which the revision was applied. (1/4)

NEC PD78F9489 — APPENDIX D REVISION HISTORY diagram (page 385)
Fig. 142

Correction of number of vectored interrupt sources in 1.7

Change of VPP pin handling CHAPTER 2 PIN FUNCTIONS

Change of block diagrams of P23 and P24 CHAPTER 4 PORT FUNCTIONS

Addition of Note on feedback resistor CHAPTER 5 CLOCK GENERATOR

Correction of bit name of bit 0 of timer mode control registers 60

Addition of Caution on carrier generator output control register 60

Correction of values in Table 7-8 Square-Wave Output Range of

Change of Figure 10-4 Basic Operation of 10-Bit A/D Converter

Modification of Figure 11-1 Block Diagram of Serial Interface 20

Modification of description on PE20 flag in Figure 11-5 Format of

Addition of 13.8 Supplying LCD Drive Voltages VLC0, VLC1, and

Modification of description on serial interface 20 in Table 17-1

Addition of description on subsystem clock ×4 multiplier and pull-up

resistor of port 5 in Table 18-1 Differences Between

Revision of contents about flash memory programming as 18.1

Page 386 of the NEC PD78F9489 user manual — CHAPTER 19 FLASH MEMORY VERSION
Page 386 · click to enlarge
Page 386

APPENDIX D REVISION HISTORY

Edition Major Revision from Previous Edition Applied to:

Addition of descriptions of µPD789489, 78F9489 (under development)

  • Key return detection function added to port 6 ( µ PD789489, 78F9489 only)
  • Key return pin name of port 0 changed ( µ PD789489, 78F9489 only)
  • Remote controller receiver added ( µ PD789489, 78F9489 only)

Addition of description in 2.2.20 VPP (Flash Memory Version Only)

CHAPTER 2 PIN FUNCTIONS

Addition of description about AVDD, AVSS in Table 2-1 Types of Pin I/O Circuits

Addition of internal low-speed RAM to 3.1.2 Internal data memory space

CHAPTER 3 CPU ARCHITECTURE

Modification of Figure 4-2 Block Diagram of P00 to P07 CHAPTER 4 PORT FUNCTIONS

Addition of 5.4.6 Subsystem clock ×4 multiplication circuit CHAPTER 5 CLOCK GENERATOR

Modification of descriptions in 6.4.1 Operation as timer interrupt and 6.4.2 Operation as timer output

CHAPTER 6 16-BIT TIMER 20

Addition of 6.5 Cautions on 16-bit timer 20

Correction of maximum intervals in Table 7-4 Interval Time of Timer 60 and Table 7-5 Interval Time of Timer 61

CHAPTER 7 8-BIT TIMERS 50, 60, 61

Correction of maximum pulse widths in Table 7-7 Square-Wave Output Range of Timer 60 and Table 7-8 Square-Wave Output Range of Timer 61

Modification of Caution in Figure 8-4 Watch Timer/Interval Timer Operation Timing

CHAPTER 8 WATCH TIMER

Addition of descriptions in (2) A/D conversion result register 0 (ADCRL0) in 10.2 10-Bit A/D Converter Configuration

CHAPTER 10 10-BIT A/D CONVERTER

Addition of (8) Input impedance of ANI0 to ANI7 pins in 10.5 Cautions Related to 10-Bit A/D Converter

Addition of the remote controller receiver chapter CHAPTER 15 REMOTE CONTROLLER RECEIVER (µPD789489, 78F9489 ONLY)

Modification of Caution in Figure 16-6 Format of Key Return Mode Register 00

CHAPTER 16 INTERRUPT FUNCTIONS

Addition of descriptions about remote controller receiver and key return signal detection pin in Table 19-1 Difference Between µPD78F9488, 78F9489, and Mask ROM Version

CHAPTER 19 FLASH MEMORY VERSION

Modification of descriptions about CPU Clock in Table 19-2 Communication Mode List

Modification of Notes in Figure 19-3 Example of connection with Dedicated Flash Programmer

Addition of Note to Absolute Maximum Ratings CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488)

Addition of electrical specifications of µPD789489, 78F9489 (target)

CHAPTER 23 ELECTRICAL SPECIFICATIONS (TARGET) (µPD789489, 78F9489)

Modification of A.5 Debugging Tools (Hardware) APPENDIX A DEVELOPMENT TOOLS

Addition of cautions on designing target system APPENDIX B NOTES ON TARGET SYSTEM DESIGN

(2/4) · 3rd · Throughout

Page 387 of the NEC PD78F9489 user manual — APPENDIX D REVISION HISTORY
Page 387 · click to enlarge
Page 387

APPENDIX D REVISION HISTORY

NEC PD78F9489 — APPENDIX D REVISION HISTORY diagram (page 387)
Fig. 143
  • Change of status from under development to development
  • Change of the subseries name to “ µ PD789489 subseries”

Update of 1.5 78K/0S Series Lineup to latest version CHAPTER 1 GENERAL

Modification of Figure 7-2 Block Diagram of Timer 50

Modification of Figure 7-3 Block Diagram of Timer 60

Modification of Figure 7-5 Block Diagram of Output control

Addition of descriptions in 7.2 (2) 8-bit compare register 60

Addition of descriptions in 7.2 (4) 8-bit H width compare registers

Modification of Figure 7-11 8-bit Timing of Interval Timer

Modification of Figure 7-13. Timing of Interval Timer Operation

with 8-Bit Resolution (When CRnm Is Set to FFH)

Modification of Figure 7-17. Timing of Operation of External

Addition of descriptions of setting sequence in 7.4.3 Operation as

Operation (When CR60 = N, CRH60 = M (M > N))

Operation (When CR60 = N, CRH60 = M (M < N))

Modification of the mode name in 7.4.4 PWM output mode

Modification of the mode name in 7.4.5 PPG output mode

Modification of (1) Error on starting timer in 7.5 Cautions on

Modification of Figure 10-1. Block Diagram of 10-bit A/D

Modification of (1) Current consumption in standby mode in 10.5

Modification of Figure 11-1. Block Diagram of Serial Interface 20

Addition of Caution in Figure 11-3 Format of Serial Operation

Addition of descriptions about remote controller receiver and key

return signal detection pin in Figure 11-6 Format of Baud Rate

Modification of descriptions about CPU Clock in Table 11-3 and

(3/4)

Page 388 of the NEC PD78F9489 user manual — CHAPTER 19
Page 388 · click to enlarge
Page 388

APPENDIX D REVISION HISTORY

Edition Major Revision from Previous Edition Applied to:

Modification of descriptions in Figure 12-4. Format of Automatic

CHAPTER 12 SERIAL INTERFACE 1A0

Data Transmit/Receive Interval Specification Register 0

Addition of formal specifications of µPD789489 and 78F9489 to

CHAPTER 22 ELECTRICAL SPECIFICATIONS (µPD789488, 78F9488, 789489, 78F9489)

Addition of recommended conditions for µPD789489 and 78F9489 CHAPTER 25 RECOMMENDED SOLDERING CONDITIONS

Addition of the lead-free products Throughout

Modification of descriptions of the voltage boost wait time CHAPTER 13

LCD CONTROLLER/DRIVER

Modification of Figure 19-9. Wiring Example for Flash Writing Adapter with 3-Wire Serial I/O with Handshake

CHAPTER 19

FLASH MEMORY VERSION

Show 5 more labels / short text on this page
(4/4) · 4th · µPD789489, 78F9489 · 4th · (Modified version)

Ask about the NEC PD78F9489

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the NEC PD78F9489

Be the first to ask — other owners or our team will answer.

Original document

NEC PD78F9489 manual PDF

388 pages·3.6 MB·Computer Hardware·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…