Document Outline
- COVER
- INTRODUCTION
- CHAPTER 1 GENERAL
- 1.1 Features
- 1.2 Applications
- 1.3 Ordering Information
- 1.4 Pin Configuration (Top View)
- 1.4.1 Pin configuration of uPD789426, 789436 Subseries (Top view)
- 1.4.2 Pin configuration of uPD789446, 789456 Subseries (Top view)
- 1.5 78K/0S Series Lineup
- 1.6 Block Diagram
- 1.6.1 Block diagram of uPD789426, 789436 Subseries
- 1.6.2 Block diagram of uPD789446, 789456 Subseries
- 1.7 Overview of Functions
- CHAPTER 2 PIN FUNCTIONS
- 2.1 List of Pin Functions
- 2.2 Description of Pin Functions
- 2.2.1 P00 to P03 (Port 0)
- 2.2.2 P10, P11 (Port 1)
- 2.2.3 P20 to P26 (Port 2)
- 2.2.4 P30 to P33 (Port 3)
- 2.2.5 P50 to P53 (Port 5)
- 2.2.6 P60 to P65 (Port 6)
- 2.2.7 P70 to P72 (Port 7)
- 2.2.8 P80, P81 (Port 8)
- 2.2.9 P90 to P97 (Port 9)
- 2.2.10 S0 to S14
- 2.2.11 COM0 to COM3
- 2.2.12 VLC0 to VLC2
- 2.2.13 CAPH, CAPL
- 2.2.14 #RESET
- 2.2.15 X1, X2
- 2.2.16 XT1, XT2
- 2.2.17 VDD
- 2.2.18 VSS
- 2.2.19 VPP (uPD78F9436, 78F9456 only)
- 2.2.20 IC (mask ROM version only)
- 2.3 Pin Input/Output Circuits and Recommended Connection of Unused Pins
- CHAPTER 3 CPU ARCHITECTURE
- 3.1 Memory Space
- 3.1.1 Internal program memory space
- 3.1.2 Internal data memory (internal high-speed RAM) space
- 3.1.3 Special function register (SFR) area
- 3.1.4 Data memory addressing
- 3.2 Processor Registers
- 3.2.1 Control registers
- 3.2.2 General-purpose registers
- 3.2.3 Special function registers (SFRs)
- 3.3 Instruction Address Addressing
- 3.3.1 Relative addressing
- 3.3.2 Immediate addressing
- 3.3.3 Table indirect addressing
- 3.3.4 Register addressing
- 3.4 Operand Address Addressing
- 3.4.1 Direct addressing
- 3.4.2 Short direct addressing
- 3.4.3 Special function register (SFR) addressing
- 3.4.4 Register addressing
- 3.4.5 Register indirect addressing
- 3.4.6 Based addressing
- 3.4.7 Stack addressing
- CHAPTER 4 PORT FUNCTIONS
- 4.1 Port Functions
- 4.2 Port Configuration
- 4.2.1 Port 0
- 4.2.2 Port 1
- 4.2.3 Port 2
- 4.2.4 Port 3
- 4.2.5 Port 5
- 4.2.6 Port 6
- 4.2.7 Port 7
- 4.2.8 Port 8 (uPD789426, 789436 Subseries only)
- 4.2.9 Port 9 (uPD789426, 789436 Subseries only)
- 4.3 Registers Controlling Port Function
- 4.4 Port Function Operation
- 4.4.1 Writing to I/O port
- 4.4.2 Reading from I/O port
- 4.4.3 Arithmetic operation of I/O port
- CHAPTER 5 CLOCK GENERATOR
- 5.1 Clock Generator Functions
- 5.2 Clock Generator Configuration
- 5.3 Registers Controlling Clock Generator
- 5.4 System Clock Oscillators
- 5.4.1 Main system clock oscillator
- 5.4.2 Subsystem clock oscillator
- 5.4.3 Divider circuit
- 5.4.4 When no subsystem clock is used
- 5.5 Clock Generator Operation
- 5.6 Changing Setting of System Clock and CPU Clock
- 5.6.1 Time required for switching between system clock and CPU clock
- 5.6.2 Switching between system clock and CPU clock
- CHAPTER 6 16-BIT TIMER
- 6.1 16-Bit Timer Functions
- 6.2 16-Bit Timer Configuration
- 6.3 Registers Controlling 16-Bit Timer
- 6.4 16-Bit Timer Operation
- 6.4.1 Operation as timer interrupt
- 6.4.2 Operation as timer output
- 6.4.3 Capture operation
- 6.4.4 16-bit timer counter 90 readout
- 6.4.5 Buzzer output operation
- 6.5 Notes on Using 16-Bit Timer
- CHAPTER 7 8-BIT TIMER
- 7.1 8-Bit Timer Functions
- 7.2 8-Bit Timer Configuration
- 7.3 Registers Controlling 8-Bit Timer
- 7.4 8-Bit Timer Operation
- 7.4.1 Operation as 8-bit timer counter
- 7.4.2 Operation as 16-bit timer counter
- 7.4.3 Operation as carrier generator
- 7.4.4. PWM free-running mode operation (timer 50)
- 7.4.5 Operation as PWM output (timer 60)
- 7.5 Notes on Using 8-Bit Timer
- CHAPTER 8 WATCH TIMER
- 8.1 Watch Timer Functions
- 8.2 Watch Timer Configuration
- 8.3 Watch Timer Control Register
- 8.4 Watch Timer Operation
- 8.4.1 Operation as watch timer
- 8.4.2 Operation as interval timer
- CHAPTER 9 WATCHDOG TIMER
- 9.1 Watchdog Timer Functions
- 9.2 Watchdog Timer Configuration
- 9.3 Watchdog Timer Control Registers
- 9.4 Watchdog Timer Operation
- 9.4.1 Operation as watchdog timer
- 9.4.2 Operation as interval timer
- CHAPTER 10 8-BIT A/D CONVERTER (uPD789426 AND 789446 SUBSERIES)
- 10.1 8-Bit A/D Converter Functions
- 10.2 8-Bit A/D Converter Configuration
- 10.3 8-Bit A/D Converter Control Registers
- 10.4 8-Bit A/D Converter Operation
- 10.4.1 Basic operation of 8-bit A/D converter
- 10.4.2 Input voltage and conversion result
- 10.4.3 Operation mode of 8-bit A/D converter
- 10.5 Cautions Related to 8-Bit A/D Converter
- CHAPTER 11 10-BIT A/D CONVERTER (uPD789436 AND 789456 SUBSERIES)
- 11.1 10-Bit A/D Converter Functions
- 11.2 10-Bit A/D Converter Configuration
- 11.3 10-Bit A/D Converter Control Registers
- 11.4 10-Bit A/D Converter Operation
- 11.4.1 Basic operation of 10-bit A/D converter
- 11.4.2 Input voltage and conversion result
- 11.4.3 Operation mode of 10-bit A/D converter
- 11.5 Cautions Related to 10-Bit A/D Converter
- CHAPTER 12 SERIAL INTERFACE 20
- 12.1 Serial Interface 20 Functions
- 12.2 Serial Interface 20 Configuration
- 12.3 Serial Interface 20 Control Registers
- 12.4 Serial Interface 20 Operation
- 12.4.1 Operation stop mode
- 12.4.2 Asynchronous serial interface (UART) mode
- 12.4.3 3-wire serial I/O mode
- CHAPTER 13 LCD CONTROLLER/DRIVER
- 13.1 LCD Controller/Driver Functions
- 13.2 LCD Controller/Driver Configuration
- 13.3 Registers Controlling LCD Controller/Driver
- 13.4 Setting LCD Controller/Driver
- 13.5 LCD Display Data Memory
- 13.6 Common and Segment Signals
- 13.7 Display Modes
- 13.7.1 Three-time slot display example
- 13.7.2 Four-time slot display example
- CHAPTER 14 INTERRUPT FUNCTIONS
- 14.1 Interrupt Function Types
- 14.2 Interrupt Sources and Configuration
- 14.3 Registers Controlling Interrupt Function
- 14.4 Interrupt Servicing Operation
- 14.4.1 Non-maskable interrupt request acknowledgment operation
- 14.4.2 Maskable interrupt request acknowledgment operation
- 14.4.3 Multiple interrupt servicing
- 14.4.4 Putting interrupt requests on hold
- CHAPTER 15 STANDBY FUNCTION
- 15.1 Standby Function and Configuration
- 15.1.1 Standby function
- 15.1.2 Register controlling standby function
- 15.2 Standby Function Operation
- 15.2.1 HALT mode
- 15.2.2 STOP mode
- CHAPTER 16 RESET FUNCTION
- CHAPTER 17 uPD78F9436, 78F9456
- 17.1 Flash Memory Programming
- 17.1.1 Selecting communication mode
- 17.1.2 Function of flash memory programming
- 17.1.3 Flashpro III connection example
- 17.1.4 Example of settings for Flashpro III (PG-FP3)
- CHAPTER 18 MASK OPTIONS
- CHAPTER 19 INSTRUCTION SET
- 19.1 Operation
- 19.1.1 Operand identifiers and description methods
- 19.1.2 Description of Operation column
- 19.1.3 Description of Flag column
- 19.2 Operation List
- 19.3 Instructions Listed by Addressing Type
- APPENDIX A DEVELOPMENT TOOLS
- A.1 Language Processing Software
- A.2 Flash Memory Writing Tools
- A.3 Debugging Tools
- A.3.1 Hardware
- A.3.2 Software
- APPENDIX B EMBEDDED SOFTWARE
- APPENDIX C REGISTER INDEX
- C.1 Register Index (Alphabetic Order of Register Name)
- C.2 Register Index (Alphabetic Order of Register Symbol)
User's Manual
PD789425
PD789445
PD789426
PD789446
PD789435
PD789455
PD789436
PD789456
PD78F9436
PD78F9456
PD789426, 789436, 789446
789456 Subseries
8-Bit Single-Chip Microcontrollers
Printed in Japan
Document No. U15075EJ1V0UM00 (1st edition)
Date Published November 2000 N CP(K)
1999
2000
2
User's Manual U15075EJ1V0UM00
[MEMO]
User's Manual U15075EJ1V0UM00
3
EEPROM is a trademark of NEC 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.
OSF/Motif is a trademark of Open Software Foundation, Inc.
NEWS and NEWS-OS are trademarks of Sony Corporation.
TRON is an abbreviation of The Realtime Operating system Nucleus.
ITRON is an abbreviation of Industrial TRON.
NOTES FOR CMOS DEVICES
1
PRECAUTION AGAINST ESD FOR SEMICONDUCTORS
Note:
Strong electric field, when exposed to a MOS device, can cause destruction of the gate oxide and
ultimately degrade the device operation. Steps must be taken to stop generation of static electricity
as much as possible, and quickly dissipate it once, when it has occurred. Environmental control
must be adequate. When it is dry, humidifier should be used. It is recommended to avoid using
insulators that easily build static electricity. Semiconductor devices must be stored and transported
in an anti-static container, static shielding bag or conductive material. All test and measurement
tools including work bench and floor should be grounded. The operator should be grounded using
wrist strap. Semiconductor devices must not be touched with bare hands. Similar precautions need
to be taken for PW boards with semiconductor devices on it.
2
HANDLING OF UNUSED INPUT PINS FOR CMOS
Note:
No connection for CMOS device inputs can be cause of malfunction. If no connection is provided
to the input pins, it is possible that an internal input level may be generated due to noise, etc., hence
causing malfunction. CMOS devices behave differently than Bipolar or NMOS devices. Input levels
of CMOS devices must be fixed high or low by using a pull-up or pull-down circuitry. Each unused
pin should be connected to V
DD
or GND with a resistor, if it is considered to have a possibility of
being an output pin. All handling related to the unused pins must be judged device by device and
related specifications governing the devices.
3
STATUS BEFORE INITIALIZATION OF MOS DEVICES
Note:
Power-on does not necessarily define initial status of MOS device. Production process of MOS
does not define the initial operation status of the device. Immediately after the power source is
turned ON, the devices with reset function have not yet been initialized. Hence, power-on does
not guarantee out-pin levels, I/O settings or contents of registers. Device is not initialized until the
reset signal is received. Reset operation must be executed immediately after power-on for devices
having reset function.
4
User's Manual U15075EJ1V0UM00
The export of these products from Japan is regulated by the Japanese government. The export of some or all of these
products may be prohibited without governmental license. To export or re-export some or all of these products from a
country other than Japan may also be prohibited without a license from that country. Please call an NEC sales
representative.
License not needed:
PD78F9436, 78F9456
The customer must judge the need for license:
PD789425, 789426, 789435, 789436, 789445,
789446, 789455, 789456
M8E 00.4
The information in this document is current as of September, 2000. The information is subject to
change without notice. For actual design-in, refer to the latest publications of NEC's data sheets or
data books, etc., for the most up-to-date specifications of NEC semiconductor products. Not all
products and/or types are available in every country. Please check with an NEC 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 prior
written consent of NEC. NEC assumes no responsibility for any errors that may appear in this document.
NEC 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 semiconductor 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 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 customer's equipment shall be done under the full
responsibility of customer. NEC assumes no responsibility for any losses incurred by customers or third
parties arising from the use of these circuits, software and information.
While NEC endeavours to enhance the quality, reliability and safety of NEC semiconductor 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
semiconductor products, customers must incorporate sufficient safety measures in their design, such as
redundancy, fire-containment, and anti-failure features.
NEC semiconductor products are classified into the following three quality grades:
"Standard", "Special" and "Specific". The "Specific" quality grade applies only to semiconductor products
developed based on a customer-designated "quality assurance program" for a specific application. The
recommended applications of a semiconductor product depend on its quality grade, as indicated below.
Customers must check the quality grade of each semiconductor product before using it in a particular
application.
"Standard": Computers, office equipment, communications equipment, test and measurement equipment, audio
and visual equipment, home electronic appliances, machine tools, personal electronic equipment
and industrial robots
"Special":
Transportation equipment (automobiles, trains, ships, etc.), traffic control systems, anti-disaster
systems, anti-crime systems, safety equipment and medical equipment (not specifically designed
for life support)
"Specific": Aircraft, aerospace equipment, submersible repeaters, nuclear reactor control systems, life
support systems and medical equipment for life support, etc.
The quality grade of NEC semiconductor products is "Standard" unless otherwise expressly specified in NEC's
data sheets or data books, etc. If customers wish to use NEC semiconductor products in applications not
intended by NEC, they must contact an NEC sales representative in advance to determine NEC's willingness
to support a given application.
(Note)
(1) "NEC" as used in this statement means NEC Corporation and also includes its majority-owned subsidiaries.
(2) "NEC semiconductor products" means any semiconductor product developed or manufactured by or for
NEC (as defined above).
User's Manual U15075EJ1V0UM00
5
Regional Information
Some information contained in this document may vary from country to country. Before using any NEC
product in your application, pIease contact the NEC office in your country to obtain a list of authorized
representatives and distributors. They will verify:
Device availability
Ordering information
Product release schedule
Availability of related technical literature
Development environment specifications (for example, specifications for third-party tools and
components, host computers, power plugs, AC supply voltages, and so forth)
Network requirements
In addition, trademarks, registered trademarks, export restrictions, and other legal issues may also vary
from country to country.
NEC Electronics Inc. (U.S.)
Santa Clara, California
Tel: 408-588-6000
800-366-9782
Fax: 408-588-6130
800-729-9288
NEC Electronics (Germany) GmbH
Duesseldorf, Germany
Tel: 0211-65 03 02
Fax: 0211-65 03 490
NEC Electronics (UK) Ltd.
Milton Keynes, UK
Tel: 01908-691-133
Fax: 01908-670-290
NEC Electronics Italiana s.r.l.
Milano, Italy
Tel: 02-66 75 41
Fax: 02-66 75 42 99
NEC Electronics (Germany) GmbH
Benelux Office
Eindhoven, The Netherlands
Tel: 040-2445845
Fax: 040-2444580
NEC Electronics (France) S.A.
Velizy-Villacoublay, France
Tel: 01-30-67 58 00
Fax: 01-30-67 58 99
NEC Electronics (France) S.A.
Madrid Office
Madrid, Spain
Tel: 91-504-2787
Fax: 91-504-2860
NEC Electronics (Germany) GmbH
Scandinavia Office
Taeby, Sweden
Tel: 08-63 80 820
Fax: 08-63 80 388
NEC Electronics Hong Kong Ltd.
Hong Kong
Tel: 2886-9318
Fax: 2886-9022/9044
NEC Electronics Hong Kong Ltd.
Seoul Branch
Seoul, Korea
Tel: 02-528-0303
Fax: 02-528-4411
NEC Electronics Singapore Pte. Ltd.
United Square, Singapore
Tel: 65-253-8311
Fax: 65-250-3583
NEC Electronics Taiwan Ltd.
Taipei, Taiwan
Tel: 02-2719-2377
Fax: 02-2719-5951
NEC do Brasil S.A.
Electron Devices Division
Guarulhos-SP Brasil
Tel: 55-11-6462-6810
Fax: 55-11-6462-6829
J00.7