NEC PD70F3709, PD70F3710, PD70F3711, PD70F3712 User Guide

User’s Manual
V850ES/HJ2
32-bit Single-Chip Microcontrollers
Hardware
μ
PD70F3709
μ
PD70F3710
μ
PD70F3711
μ
PD70F3712
Document No. U17717EJ3V0UD00 (3rd edition) Date Published March 2007 N CP(K)
Printed in Japan
2005
[MEMO]
2
User’s Manual U17717EJ3V0UD
NOTES FOR CMOS DEVICES
1
VOLTAGE APPLICATION WAVEFORM AT INPUT PIN
Waveform distortion due to input noise or a reflected wave may cause malfunction. If the input of the
IL
CMOS device stays in the area between V
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 V
V
IH
(MIN).
HANDLING OF UNUSED INPUT PINS
2
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 V
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.
3
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.
(MAX) and VIH (MIN) due to noise, etc., the device may
IL
(MAX) and
DD
or GND
4
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.
5
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.
6
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.
User’s Manual U17717EJ3V0UD
3
IECUBE is a registered trademark of NEC Electronics Corporation in Japan and Germany.
MINICUBE is a registered trademark of NEC Electronics Corporation in Japan and Germany or a
trademark in the United States of America.
Applilet is a registered trademark of NEC Electronics in Japan, Germany, Hong Kong, China, the Republic of
Korea, the United Kingdom, and the United States of America.
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.
SPARCstation is a trademark of SPARC International, Inc.
Solaris and SunOS are trademarks of Sun Microsystems, Inc.
TRON is an abbreviation of The Real-Time Operating system Nucleus.
ITRON is an abbreviation of Industrial TRON.
4
User’s Manual U17717EJ3V0UD
The information in this document is current as of August, 2006. 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. "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 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.
(Note) (1) "NEC Electronics" as used in this statement means NEC Electronics Corporation and also includes its
majority-owned subsidiaries.
(2) "NEC Electronics products" means any product developed or manufactured by or for NEC Electronics (as
defined above).
M8 E 02 . 11-1
User’s Manual U17717EJ3V0UD
5

PREFACE

Readers This manual is intended for users who wish to understand the functions of the
V850ES/HJ2 and design application systems using the V850ES/HJ2.
Purpose This manual is intended to give users an understanding of the hardware functions of
the V850ES/HJ2 shown in the Organization below.
Organization This manual is divided into two parts: Hardware (this manual) and Architecture
(V850ES Architecture User’s Manual).
Hardware Architecture
Pin functions Data types
CPU function Register set
On-chip peripheral functions Instruction format and instruction set
Flash memory programming Interrupts and exceptions
Electrical specifications Pipeline operation
How to Read This Manual It is assumed that the readers of this manual have general knowledge in the fields of
electrical engineering, logic circuits, and microcontrollers.
To understand the overall functions of the V850ES/HJ2 Read this manual according to the CONTENTS.
To find the details of a register where the name is known Use APPENDIX B REGISTER INDEX.
To understand the details of an instruction function Refer to the V850ES Architecture User’s Manual available separately.
To know the electrical specifications of the V850ES/HJ2 See CHAPTER 27 ELECTRICAL SPECIFICATIONS.
The “yyy bit of the xxx register” is described as the “xxx.yyy bit” in this manual. Note
with caution that if “xxx.yyy” is described as is in a program, however, the
compiler/assembler cannot recognize it correctly.
The mark <R> shows major revised points. The revised points can be easily
searched by copying an “<R>” in the PDF file and specifying it in the “Find what:” field.
6
User’s Manual U17717EJ3V0UD
Conventions Data significance: Higher digits on the left and lower digits on the right
Active low representation: xxx (overscore over pin or signal name)
Memory map address: Higher addresses on the top and lower addresses on
the bottom
Note: Footnote for item marked with Note in the text
Caution: Information requiring particular attention
Remark: Supplementary information
Numeric representation: Binary ... xxxx or xxxxB
Decimal ... xxxx
Hexadecimal ... xxxxH
Prefix indicating power of 2
(address space, memory
capacity): K (kilo): 2
M (mega): 2
G (giga): 2
10
= 1,024
20
= 1,0242
30
= 1,0243
User’s Manual U17717EJ3V0UD
7
Related Documents The related documents indicated in this publication may include preliminary versions.
However, preliminary versions are not marked as such.
Documents related to V850ES/HJ2
Document Name Document No.
V850ES Architecture User’s Manual U15943E
V850ES/HJ2 Hardware User’s Manual This manual
Documents related to development tools (user’s manuals)
Document Name Document No.
QB-V850MINI On-Chip Debug Emulator U17638E
QB-MINI2 On-Chip Debug Emulator with Flash Programming Function To be prepared
CA850 Ver. 3.00 C Compiler Package
PM+ Ver. 6.20 Project Manager U17990E
ID850QB Ver. 3.20 Integrated Debugger Operation U17964E
SM850 Ver. 2.50 System Simulator Operation U16218E
SM850 Ver. 2.00 or Later System Simulator External Part User Open
RX850 Ver. 3.20 Real-Time OS
RX850 Pro Ver. 3.20 Real-Time OS
AZ850 Ver. 3.30 System Performance Analyzer U17423E
PG-FP4 Flash Memory Programmer U15260E
Operation U17293E
C Language U17291E
Assembly Language U17292E
Link Directives U17294E
U14873E
Interface Specification
Operation U17246E SM+ System Simulator
User Open Interface
Specification
Basics U13430E
Installation U17419E
Technical U13431E
Task Debugger U17420E
Basics U13773E
Installation U17421E
Technical U13772E
Task Debugger U17422E
U17247E
8
User’s Manual U17717EJ3V0UD
CONTENTS
CHAPTER 1 INTRODUCTION .................................................................................................................18
1.1 General .....................................................................................................................................18
1.2 Features....................................................................................................................................20
1.3 Application Fields ...................................................................................................................21
1.4 Ordering Information ..............................................................................................................21
1.5 Pin Configuration (Top View).................................................................................................22
1.6 Function Block Configuration................................................................................................ 24
1.6.1 Internal block diagram ............................................................................................................... 24
1.6.2 Internal units .............................................................................................................................. 25
CHAPTER 2 PIN FUNCTIONS................................................................................................................27
2.1 Pin Function List .....................................................................................................................27
2.2 Pin Status ................................................................................................................................. 35
2.3 Description of Pin Functions .................................................................................................36
2.4 Pin I/O Circuit Types and Recommended Connection of Unused Pins ............................45
2.5 Pin I/O Circuits......................................................................................................................... 48
2.6 Cautions ...................................................................................................................................49
CHAPTER 3 CPU FUNCTION.................................................................................................................50
3.1 Features....................................................................................................................................50
3.2 CPU Register Set.....................................................................................................................51
3.2.1 Program register set .................................................................................................................. 52
3.2.2 System register set .................................................................................................................... 53
3.3 Operation Modes .....................................................................................................................59
3.3.1 Specifying operation mode ........................................................................................................59
3.4 Address Space ........................................................................................................................60
3.4.1 CPU address space................................................................................................................... 60
3.4.2 Wraparound of CPU address space .......................................................................................... 61
3.4.3 Memory map.............................................................................................................................. 62
3.4.4 Areas .........................................................................................................................................64
3.4.5 Recommended use of address space ....................................................................................... 68
3.4.6 Peripheral I/O registers.............................................................................................................. 71
3.4.7 Special registers ........................................................................................................................ 82
3.4.8 Cautions .................................................................................................................................... 86
CHAPTER 4 PORT FUNCTIONS............................................................................................................89
4.1 Features....................................................................................................................................89
4.2 Basic Configuration of Ports .................................................................................................89
4.3 Port Functions .........................................................................................................................91
4.3.1 Operation of port function ..........................................................................................................91
4.3.2 Notes on setting port pins ..........................................................................................................92
4.3.3 Port 0 ......................................................................................................................................... 93
4.3.4 Port 1 ......................................................................................................................................... 97
4.3.5 Port 3 ....................................................................................................................................... 100
4.3.6 Port 4 ....................................................................................................................................... 106
User’s Manual U17717EJ3V0UD
9
4.3.7 Port 5 .......................................................................................................................................109
4.3.8 Port 6 .......................................................................................................................................115
4.3.9 Port 7 .......................................................................................................................................122
4.3.10 Port 8 ....................................................................................................................................... 124
4.3.11 Port 9 ....................................................................................................................................... 127
4.3.12 Port 12 ..................................................................................................................................... 137
4.3.13 Port CD....................................................................................................................................139
4.3.14 Port CM ...................................................................................................................................141
4.3.15 Port CS .................................................................................................................................... 144
4.3.16 Port CT ....................................................................................................................................147
4.3.17 Port DL ....................................................................................................................................150
4.3.18 Port pins that function alternately as on-chip debug function...................................................153
4.3.19 Register settings to use port pins as alternate-function pins....................................................154
4.4 Block Diagrams of Port........................................................................................................ 161
4.5 Cautions ................................................................................................................................ 190
4.5.1 Cautions on setting port pins ................................................................................................... 190
CHAPTER 5 BUS CONTROL FUNCTION .......................................................................................... 191
5.1 Features................................................................................................................................. 191
5.2 Bus Control Pins................................................................................................................... 192
5.2.1 Pin status when internal ROM, internal RAM, or on-chip peripheral I/O is accessed ............... 192
5.2.2 Pin status in each operation mode ........................................................................................... 192
5.3 Memory Block Function....................................................................................................... 193
5.4 Bus Access ........................................................................................................................... 194
5.4.1 Number of clocks for access .................................................................................................... 194
5.4.2 Bus size setting function ..........................................................................................................194
5.4.3 Access by bus size ..................................................................................................................195
5.5 Wait Function ........................................................................................................................ 202
5.5.1 Programmable wait function ....................................................................................................202
5.5.2 External wait function ............................................................................................................... 203
5.5.3 Relationship between programmable wait and external wait ...................................................203
5.5.4 Programmable address wait function ....................................................................................... 204
5.6 Idle State Insertion Function ............................................................................................... 205
5.7 Bus Hold Function................................................................................................................ 206
5.7.1 Functional outline.....................................................................................................................206
5.7.2 Bus hold procedure.................................................................................................................. 207
5.7.3 Operation in power save mode ................................................................................................207
5.8 Bus Priority ........................................................................................................................... 208
5.9 Bus Timing ............................................................................................................................ 209
CHAPTER 6 CLOCK GENERATION FUNCTION .............................................................................. 212
6.1 Overview................................................................................................................................ 212
6.2 Configuration ........................................................................................................................ 213
6.3 Registers ............................................................................................................................... 215
6.4 Operation............................................................................................................................... 220
6.4.1 Operation of each clock ...........................................................................................................220
6.4.2 Clock output function ...............................................................................................................220
6.5 PLL Function......................................................................................................................... 221
10
User’s Manual U17717EJ3V0UD
6.5.1 Overview ................................................................................................................................. 221
6.5.2 Registers ................................................................................................................................. 221
6.5.3 Usage ......................................................................................................................................225
CHAPTER 7 16-BIT TIMER/EVENT COUNTER P (TMP) .................................................................226
7.1 Overview.................................................................................................................................226
7.2 Functions ...............................................................................................................................226
7.3 Configuration.........................................................................................................................227
7.4 Registers ................................................................................................................................229
7.5 Operation................................................................................................................................243
7.5.1 Interval timer mode (TPnMD2 to TPnMD0 bits = 000) ............................................................. 244
7.5.2 External event count mode (TPnMD2 to TPnMD0 bits = 001) ................................................. 254
7.5.3 External trigger pulse output mode (TPnMD2 to TPnMD0 bits = 010) ..................................... 262
7.5.4 One-shot pulse output mode (TPnMD2 to TPnMD0 bits = 011) .............................................. 274
7.5.5 PWM output mode (TPnMD2 to TPnMD0 bits = 100).............................................................. 281
7.5.6 Free-running timer mode (TPnMD2 to TPnMD0 bits = 101) .................................................... 290
7.5.7 Pulse width measurement mode (TPnMD2 to TPnMD0 bits = 110) ........................................ 307
7.5.8 Timer output operations........................................................................................................... 313
7.6 Timer Tuned Operation Function ........................................................................................314
7.7 Selector Function ..................................................................................................................318
7.8 Cautions .................................................................................................................................320
CHAPTER 8 16-BIT TIMER/EVENT COUNTER Q (TMQ) ................................................................321
8.1 Overview.................................................................................................................................321
8.2 Functions ...............................................................................................................................321
8.3 Configuration.........................................................................................................................322
8.4 Registers ................................................................................................................................325
8.5 Operation................................................................................................................................343
8.5.1 Interval timer mode (TQnMD2 to TQnMD0 bits = 000) ............................................................ 344
8.5.2 External event count mode (TQnMD2 to TQnMD0 bits = 001) ................................................ 353
8.5.3 External trigger pulse output mode (TQnMD2 to TQnMD0 bits = 010) .................................... 362
8.5.4 One-shot pulse output mode (TQnMD2 to TQnMD0 bits = 011) ............................................. 375
8.5.5 PWM output mode (TQnMD2 to TQnMD0 bits = 100) ............................................................. 384
8.5.6 Free-running timer mode (TQnMD2 to TQnMD0 bits = 101) ................................................... 395
8.5.7 Pulse width measurement mode (TQnMD2 to TQnMD0 bits = 110)........................................ 415
8.5.8 Triangular wave PWM mode (TQnMD2 to TQnMD0 = 111) .................................................... 421
8.5.9 Timer output operations........................................................................................................... 422
8.6 Timer Tuned Operation Function ........................................................................................423
8.7 Cautions .................................................................................................................................427
CHAPTER 9 16-BIT INTERVAL TIMER M (TMM).............................................................................428
9.1 Overview.................................................................................................................................428
9.2 Configuration.........................................................................................................................429
9.3 Register ..................................................................................................................................430
9.4 Operation................................................................................................................................431
9.4.1 Interval timer mode .................................................................................................................. 431
9.4.2 Cautions .................................................................................................................................. 435
User’s Manual U17717EJ3V0UD
11
CHAPTER 10 WATCH TIMER FUNCTIONS ...................................................................................... 436
10.1 Functions............................................................................................................................... 436
10.2 Configuration ........................................................................................................................ 437
10.3 Registers ............................................................................................................................... 439
10.4 Operation............................................................................................................................... 443
10.4.1 Operation as watch timer......................................................................................................... 443
10.4.2 Operation as interval timer....................................................................................................... 444
10.4.3 Cautions...................................................................................................................................445
CHAPTER 11 FUNCTIONS OF WATCHDOG TIMER 2 ................................................................... 446
11.1 Functions............................................................................................................................... 446
11.2 Configuration ........................................................................................................................ 447
11.3 Registers ............................................................................................................................... 448
11.4 Operation............................................................................................................................... 451
CHAPTER 12 A/D CONVERTER ......................................................................................................... 452
12.1 Overview................................................................................................................................ 452
12.2 Functions............................................................................................................................... 452
12.3 Configuration ........................................................................................................................ 453
12.4 Registers ............................................................................................................................... 456
12.5 Operation............................................................................................................................... 464
12.5.1 Basic operation ........................................................................................................................ 464
12.5.2 Trigger mode ...........................................................................................................................465
12.5.3 Operation mode ....................................................................................................................... 467
12.5.4 Power-fail compare mode ........................................................................................................ 471
12.6 Cautions ................................................................................................................................ 476
12.7 How to Read A/D Converter Characteristics Table........................................................... 480
CHAPTER 13 ASYNCHRONOUS SERIAL INTERFACE A (UARTA) ............................................. 484
13.1 Features................................................................................................................................. 485
13.2 Configuration ........................................................................................................................ 486
13.3 Registers ............................................................................................................................... 488
13.4 Interrupt Request Signals.................................................................................................... 494
13.5 Operation............................................................................................................................... 495
13.5.1 Data format..............................................................................................................................495
13.5.2 SBF transmission/reception format..........................................................................................497
13.5.3 SBF transmission.....................................................................................................................499
13.5.4 SBF reception .......................................................................................................................... 500
13.5.5 UART transmission..................................................................................................................501
13.5.6 Continuous transmission procedure.........................................................................................502
13.5.7 UART reception .......................................................................................................................504
13.5.8 Reception errors ...................................................................................................................... 505
13.5.9 Parity types and operations .....................................................................................................507
13.5.10 Receive data noise filter...........................................................................................................508
13.6 Dedicated Baud Rate Generator ......................................................................................... 509
13.7 Cautions ................................................................................................................................ 517
CHAPTER 14 3-WIRE VARIABLE-LENGTH SERIAL I/O (CSIB).................................................... 518
12
User’s Manual U17717EJ3V0UD
14.1
Features..................................................................................................................................518
14.2 Configuration.........................................................................................................................519
14.3 Registers ................................................................................................................................521
14.4 Interrupt Request Signals.....................................................................................................528
14.5 Operation................................................................................................................................529
14.5.1 Single transfer mode (master mode, transmission mode) .......................................................529
14.5.2 Single transfer mode (master mode, reception mode)............................................................. 531
14.5.3 Single transfer mode (master mode, transmission/reception mode)........................................ 533
14.5.4 Single transfer mode (slave mode, transmission mode).......................................................... 535
14.5.5 Single transfer mode (slave mode, reception mode) ...............................................................537
14.5.6 Single transfer mode (slave mode, transmission/reception mode) ..........................................539
14.5.7 Continuous transfer mode (master mode, transmission mode) ............................................... 541
14.5.8 Continuous transfer mode (master mode, reception mode)..................................................... 543
14.5.9 Continuous transfer mode (master mode, transmission/reception mode)................................ 546
14.5.10 Continuous transfer mode (slave mode, transmission mode).................................................. 550
14.5.11 Continuous transfer mode (slave mode, reception mode) ....................................................... 552
14.5.12 Continuous transfer mode (slave mode, transmission/reception mode) .................................. 555
14.5.13 Reception error........................................................................................................................ 559
14.5.14 Clock timing............................................................................................................................. 560
14.6 Output Pin Status with Operation Disabled .......................................................................562
14.7 Baud Rate Generator ............................................................................................................563
14.7.1 Baud rate generation ............................................................................................................... 564
14.8 Cautions .................................................................................................................................565
CHAPTER 15 DMA FUNCTION (DMA CONTROLLER) ....................................................................566
15.1 Features..................................................................................................................................566
15.2 Configuration.........................................................................................................................567
15.3 Registers ................................................................................................................................568
15.4 Transfer Targets .................................................................................................................... 576
15.5 Transfer Modes......................................................................................................................576
15.6 Transfer Types.......................................................................................................................577
15.7 DMA Channel Priorities ........................................................................................................578
15.8 Time Related to DMA Transfer.............................................................................................578
15.9 DMA Transfer Start Factors .................................................................................................579
15.10 DMA Abort Factors................................................................................................................ 580
15.11 End of DMA Transfer.............................................................................................................580
15.12 Operation Timing................................................................................................................... 580
15.13 Cautions .................................................................................................................................585
CHAPTER 16 INTERRUPT/EXCEPTION PROCESSING FUNCTION ...............................................590
16.1 Features..................................................................................................................................590
16.2 Non-Maskable Interrupts ......................................................................................................594
16.2.1 Operation................................................................................................................................. 596
16.2.2 Restore.................................................................................................................................... 597
16.2.3 NP flag..................................................................................................................................... 598
16.3 Maskable Interrupts ..............................................................................................................599
16.3.1 Operation................................................................................................................................. 599
16.3.2 Restore.................................................................................................................................... 601
User’s Manual U17717EJ3V0UD
13
16.3.3 Priorities of maskable interrupts...............................................................................................602
16.3.4 Interrupt control register (xxICn) ..............................................................................................606
16.3.5 Interrupt mask registers 0 to 4 (IMR0 to IMR4)........................................................................ 608
16.3.6 In-service priority register (ISPR).............................................................................................610
16.3.7 ID flag ......................................................................................................................................611
16.3.8 Watchdog timer mode register 2 (WDTM2) .............................................................................611
16.4 Software Exception .............................................................................................................. 612
16.4.1 Operation................................................................................................................................. 612
16.4.2 Restore ....................................................................................................................................613
16.4.3 EP flag ..................................................................................................................................... 614
16.5 Exception Trap...................................................................................................................... 615
16.5.1 Illegal opcode definition ...........................................................................................................615
16.5.2 Debug trap ............................................................................................................................... 617
16.6 External Interrupt Request Input Pins (NMI and INTP0 to INTP14) ................................. 619
16.6.1 Noise elimination .....................................................................................................................619
16.6.2 Edge detection.........................................................................................................................619
16.7 Interrupt Acknowledge Time of CPU .................................................................................. 628
16.8 Periods in Which Interrupts Are Not Acknowledged by CPU.......................................... 629
16.9 Cautions ................................................................................................................................ 629
CHAPTER 17 KEY INTERRUPT FUNCTION ..................................................................................... 630
17.1 Function................................................................................................................................. 630
17.2 Register ................................................................................................................................. 631
17.3 Cautions ................................................................................................................................ 631
CHAPTER 18 STANDBY FUNCTION .................................................................................................. 632
18.1 Overview................................................................................................................................ 632
18.2 Registers ............................................................................................................................... 634
18.3 HALT Mode............................................................................................................................ 637
18.3.1 Setting and operation status ....................................................................................................637
18.3.2 Releasing HALT mode............................................................................................................. 637
18.4 IDLE1 Mode ........................................................................................................................... 639
18.4.1 Setting and operation status ....................................................................................................639
18.4.2 Releasing IDLE1 mode............................................................................................................ 639
18.5 IDLE2 Mode ........................................................................................................................... 641
18.5.1 Setting and operation status ....................................................................................................641
18.5.2 Releasing IDLE2 mode............................................................................................................ 641
18.5.3 Securing setup time when releasing IDLE2 mode ...................................................................643
18.6 STOP Mode............................................................................................................................ 644
18.6.1 Setting and operation status ....................................................................................................644
18.6.2 Releasing STOP mode ............................................................................................................644
18.6.3 Securing oscillation stabilization time when releasing STOP mode ......................................... 646
18.7 Subclock Operation Mode ................................................................................................... 647
18.7.1 Setting and operation status ....................................................................................................647
18.7.2 Releasing subclock operation mode ........................................................................................647
18.8 Sub-IDLE Mode ..................................................................................................................... 649
18.8.1 Setting and operation status ....................................................................................................649
18.8.2 Releasing sub-IDLE mode ....................................................................................................... 650
14
User’s Manual U17717EJ3V0UD
<R>
CHAPTER 19 RESET FUNCTIONS......................................................................................................652
19.1 Overview.................................................................................................................................652
19.2 Registers to Check Reset Source........................................................................................653
19.3 Operation................................................................................................................................654
19.3.1 Reset operation via RESET pin ............................................................................................... 654
19.3.2 Reset operation by watchdog timer 2 ...................................................................................... 656
19.3.3 Reset operation by power-on clear circuit................................................................................ 657
19.3.4 Reset operation by low-voltage detector.................................................................................. 657
19.3.5 Reset operation by clock monitor ............................................................................................ 657
19.4 Operation After Reset Release ............................................................................................658
CHAPTER 20 CLOCK MONITOR ......................................................................................................... 660
20.1 Functions ...............................................................................................................................660
20.2 Configuration.........................................................................................................................660
20.3 Register ..................................................................................................................................661
20.4 Operation................................................................................................................................662
CHAPTER 21 POWER-ON CLEAR CIRCUIT .....................................................................................665
21.1 Function .................................................................................................................................665
21.2 Configuration.........................................................................................................................665
21.3 Operation................................................................................................................................666
<R>
<R>
CHAPTER 22 LOW-VOLTAGE DETECTOR........................................................................................667
22.1 Functions ...............................................................................................................................667
22.2 Configuration.........................................................................................................................667
22.3 Registers ................................................................................................................................668
22.4 Operation................................................................................................................................670
22.4.1 To use for internal reset signal ................................................................................................670
22.4.2 To use for interrupt .................................................................................................................. 672
22.5 RAM Retention Voltage Detection Operation.....................................................................673
22.6 Emulation Function...............................................................................................................674
CHAPTER 23 REGULATOR ..................................................................................................................675
23.1 Overview.................................................................................................................................675
23.2 Operation................................................................................................................................676
CHAPTER 24 FLASH MEMORY...........................................................................................................677
24.1 Features..................................................................................................................................677
24.2 Memory Configuration ..........................................................................................................678
24.3 Functional Outline.................................................................................................................679
24.4 Rewriting by Dedicated Flash Programmer .......................................................................682
24.4.1 Programming environment ...................................................................................................... 682
24.4.2 Communication mode.............................................................................................................. 683
24.4.3 Flash memory control .............................................................................................................. 688
24.4.4 Selection of communication mode........................................................................................... 689
24.4.5 Communication commands ..................................................................................................... 690
24.4.6 Pin connection ......................................................................................................................... 691
24.5 Rewriting by Self Programming...........................................................................................695
User’s Manual U17717EJ3V0UD
15
24.5.1 Overview.................................................................................................................................. 695
24.5.2 Features...................................................................................................................................696
24.5.3 Standard self programming flow ..............................................................................................697
24.5.4 Flash functions.........................................................................................................................698
24.5.5 Pin processing .........................................................................................................................698
24.5.6 Internal resources used ...........................................................................................................699
CHAPTER 25 OPTION BYTE FUNCTION .......................................................................................... 700
CHAPTER 26 ON-CHIP DEBUG FUNCTION ..................................................................................... 702
26.1 Debugging with DCU............................................................................................................ 703
26.1.1 Connection circuit example...................................................................................................... 703
26.1.2 Interface signals....................................................................................................................... 703
26.1.3 Maskable functions ..................................................................................................................705
26.1.4 Register ...................................................................................................................................705
26.1.5 Operation................................................................................................................................. 707
26.1.6 Cautions...................................................................................................................................708
26.2 Debugging Without Using DCU........................................................................................... 709
26.2.1 Circuit connection examples....................................................................................................709
26.2.2 Maskable functions ..................................................................................................................710
26.2.3 Securement of user resources................................................................................................. 711
26.2.4 Cautions...................................................................................................................................717
26.3 ROM Security Function........................................................................................................ 718
26.3.1 Security ID ...............................................................................................................................718
26.3.2 Setting .....................................................................................................................................719
CHAPTER 27 ELECTRICAL SPECIFICATIONS................................................................................. 721
27.1 Electrical Specifications ...................................................................................................... 721
27.2 Capacitance........................................................................................................................... 723
27.3 Operating Conditions........................................................................................................... 723
27.4 Oscillator Characteristics.................................................................................................... 724
27.4.1 Main clock oscillator characteristics.........................................................................................724
27.4.2 Subclock oscillator characteristics ...........................................................................................725
27.4.3 PLL characteristics ..................................................................................................................726
27.4.4 Internal oscillator characteristics..............................................................................................726
27.5 Voltage Regulator Characteristics...................................................................................... 726
27.6 DC Characteristics ............................................................................................................... 727
27.6.1 I/O level ...................................................................................................................................727
27.6.2 Pin leakage current..................................................................................................................728
27.6.3 Supply current..........................................................................................................................729
27.7 Data Retention Characteristics ........................................................................................... 731
27.8 AC Characteristics ............................................................................................................... 732
27.8.1 CLKOUT Output Timing........................................................................................................... 733
27.8.2 Bus Timing............................................................................................................................... 734
27.9 Basic Operation .................................................................................................................... 739
27.10 Flash Memory Programming Characteristics.................................................................... 746
CHAPTER 28 PACKAGE DRAWING .................................................................................................. 747
16
User’s Manual U17717EJ3V0UD
<R>
CHAPTER 29 RECOMMENDED SOLDERING CONDITIONS ...........................................................748
<R>
<R>
APPENDIX A DEVELOPMENT TOOLS ...............................................................................................749
A.1 Software Package..................................................................................................................751
A.2 Language Processing Software...........................................................................................751
A.3 Control Software ...................................................................................................................751
A.4 Debugging Tools (Hardware) ...............................................................................................752
A.4.1 When using IECUBE QB-V850ESFX2 ....................................................................................752
A.4.2 When using MINICUBE QB-V850MINI .................................................................................... 754
A.4.3 When using MINICUBE2 QB-MINI2 ........................................................................................755
A.5 Debugging Tools (Software) ................................................................................................ 756
A.6 Embedded Software..............................................................................................................757
A.7 Flash Memory Writing Tools ................................................................................................758
APPENDIX B REGISTER INDEX ..........................................................................................................759
APPENDIX C INSTRUCTION SET LIST..............................................................................................770
C.1 Conventions........................................................................................................................... 770
C.2 Instruction Set (in Alphabetical Order) ...............................................................................773
APPENDIX D LIST OF CAUTIONS......................................................................................................780
APPENDIX E REVISION HISTORY ......................................................................................................814
E.1 Major Revisions in This Edition...........................................................................................814
E.2 Revision History of Previous Editions ................................................................................ 815
User’s Manual U17717EJ3V0UD
17

CHAPTER 1 INTRODUCTION

The V850ES/HJ2 is one of the products in the NEC Electronics V850 single-chip microcontrollers designed for low-
power operation for real-time control applications.

1.1 General

The V850ES/HJ2 is a 32-bit single-chip microcontroller that includes the V850ES CPU core and peripheral
functions such as ROM/RAM, a timer/counter, serial interfaces, and an A/D converter.
In addition to high real-time response characteristics and 1-clock-pitch basic instructions, the V850ES/HJ2 features
multiply instructions, saturated operation instructions, bit manipulation instructions, etc., realized by a hardware
multiplier, as optimum instructions for digital servo control applications.
Table 1-1 lists the products of the V850ES/HJ2.
18
User’s Manual U17717EJ3V0UD
CHAPTER 1 INTRODUCTION
Table 1-1. V850ES/HJ2 Product List
Part Number
Internal
memory
Memory
space
Flash memory 128 KB 256 KB 376 KB 512 KB
RAM 12 KB 20 KB
Logical space 64 MB
External memory area 15 MB
External bus interface
μ
PD70F3709
Address bus: 16 bits
μ
PD70F3710
μ
PD70F3711
μ
PD70F3712
Data bus: 8/16 bits
Multiplexed bus mode
General-purpose register 32 bits × 32 registers
Main clock (oscillation frequency)
Subclock (oscillation frequency)
Ceramic/crystal/external clock
In PLL mode: f
In clock through mode: f
Crystal/external clock: f
X = 4 to 5 MHz
X = 4 to 5 MHz
XT = 32.768 kHz
RC oscillation: 20 kHz
Internal oscillator fR = 200 kHz (TYP.)
Minimum instruction execution time 50 ns (main clock (fXX) = 20 MHz operation)
DSP function
32 × 32 = 64: 200 to 250 ns (at 20 MHz) 32 × 32 + 32 = 32: 300 ns (at 20 MHz) 16 × 16 = 32: 50 to 100 ns (at 20 MHz) 16 × 16 + 32 = 32: 150 ns (at 20 MHz)
I/O port I/O: 128
Timer
16-bit timer/event counter P: 4 channels
16-bit timer/event counter Q: 3 channels
16-bit interval timer M: 1 channel
Watchdog timer 2: 1 channel
Watch timer: 1 channel
A/D converter 10-bit resolution × 24 channels
Serial interface
CSIB: 3 channels
UARTA (for LIN): 3 channels
CSIB: 3 channels
UARTA (for LIN): 4 channels
DMA controller 4 channels (transfer target: on-chip peripheral I/O, internal RAM, external memory)
Interrupt source External: 16 (16)
Note
, internal: 50 External: 16 (16)
Note
, internal: 52
Power save function HALT/IDLE1/IDLE2/STOP/subclock/sub-IDLE mode
Reset
RESET pin input, watchdog timer 2 (WDT2), clock monitor (CLM), POC circuit, low-voltage
detector (LVI)
DCU Provided (RUN/break)
Operating power supply voltage 3.5 to 5.5 V (A/D converter: 4.0 to 5.5 V)
Operating ambient temperature 40 to +85°C
Package 144-pin plastic LQFP (fine pitch) (20 × 20 mm)
Note The figure in parentheses indicates the number of external interrupts that can release STOP mode.
User’s Manual U17717EJ3V0UD
19
CHAPTER 1 INTRODUCTION

1.2 Features

Minimum instruction execution time: 50 ns (operating with main clock (fXX) of 20 MHz) General-purpose registers: 32 bits × 32 registers CPU features: Signed multiplication (16 × 16 32): 1 to 2 clocks
Signed multiplication (32 × 32 64): 1 to 5 clocks
Saturated operations (overflow and underflow detection functions included)
32-bit shift instruction: 1 clock
Bit manipulation instructions
Load/store instructions with long/short format
Memory space: 64 MB of linear address space (for programs and data)
External expansion: Up to 256 KB (including 64 KB used as internal ROM/RAM)
Internal memory: RAM: 12 KB/20 KB (see Table 1-1)
Flash memory: 128 KB/256 KB/376 KB/512 KB (see Table 1-1)
External bus interface: Multiplexed bus output
8-/16-bit data bus sizing function
Wait function
• Programmable wait function
• External wait function
Idle state function
Bus hold function
Interrupts and exceptions: Non-maskable interrupts: 2 sources
Maskable interrupts: 64 sources (
66 sources (μPD70F3711, 70F3712)
Software exceptions: 32 sources
Exception trap: 2 sources
I/O lines: I/O ports: 128
Timer function: 16-bit interval timer M (TMM): 1 channel
16-bit timer/event counter P (TMP): 4 channels
16-bit timer/event counter Q (TMQ): 3 channels
Watch timer: 1 channel
Watchdog timer 2: 1 channel
Serial interface: Asynchronous serial interface A (UARTA)
3-wire variable-length serial interface B (CSIB)
UARTA (supporting LIN): 4 channels (
3 channels (
CSIB: 3 channels
A/D converter: 10-bit resolution: 24 channels
DMA controller: 4 channels
DCU (debug control unit): JTAG interface
Clock generator: During main clock or subclock operation
7-level CPU clock (f
XX, fXX/2, fXX/4, fXX/8, fXX/16, fXX/32, fXT)
Clock-through mode/PLL mode selectable
Internal oscillation clock: 200 kHz (TYP.)
Power-save functions: HALT/IDLE1/IDLE2/STOP/subclock/sub-IDLE mode Package: 144-pin plastic LQFP (fine pitch) (20 × 20)
μ
PD70F3709, 70F3710)
μ
PD70F3711, 70F3712)
μ
PD70F3709, 70F3710)
20
User’s Manual U17717EJ3V0UD
CHAPTER 1 INTRODUCTION

1.3 Application Fields

Consumer devices

1.4 Ordering Information

Part Number Package On-Chip Flash Memory
μ
PD70F3709GJ-UEN-A
μ
PD70F3710GJ-UEN-A
μ
PD70F3711GJ-UEN-A
μ
PD70F3712GJ-UEN-A
Remark Products with -A at the end of the part number are lead-free products.
144-pin plastic LQFP (fine pitch) (20 × 20) 144-pin plastic LQFP (fine pitch) (20 × 20) 144-pin plastic LQFP (fine pitch) (20 × 20) 144-pin plastic LQFP (fine pitch) (20 × 20)
128 KB
256 KB
376 KB
512 KB
User’s Manual U17717EJ3V0UD
21

1.5 Pin Configuration (Top View)

144-pin plastic LQFP (fine pitch) (20 × 20)
AV
REF0
AV
EV
Note 1
V
Note 2
V
X1 X2
RESET
XT1 XT2
P02/NMI
P40/SIB0
P36
P37 EV EV
1
SS
DD
DD
SS
SS
DD
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
μ
PD70F3709GJ-UEN-A
μ
PD70F3711GJ-UEN-A
P10/INTP9
P11/INTP10
P00/TIP31/TOP31 P01/TIP30/TOP30
FLMD0
REGC
P03/INTP0/ADTRG
P04/INTP1
P05/INTP2/DRST
P06/INTP3
P41/SOB0 P42/SCKB0 P30/TXDA0
P32/ASCKA0/TIP00/TOP00/TOP01
P31/RXDA0/INTP7
P33/TIP01/TOP01 P34/TIP10/TOP10 P35/TIP11/TOP11
P38/TXDA2
P39/RXDA2/INTP8
CHAPTER 1 INTRODUCTION
μ
PD70F3710GJ-UEN-A
μ
PD70F3712GJ-UEN-A
P70/ANI0
P71/ANI1
P72/ANI2
P73/ANI3
P74/ANI4
P75/ANI5
P76/ANI6
P77/ANI7
P78/ANI8
P79/ANI9
P710/ANI10
P711/ANI11
P712/ANI12
P713/ANI13
P714/ANI14
P715/ANI15
P120/ANI16
P121/ANI17
P122/ANI18
P123/ANI19
P124/ANI20
P125/ANI21
P126/ANI22
P127/ANI23
PDL15/AD15
PDL14/AD14
PDL13/AD13
PDL12/AD12
PDL11/AD11
PDL10/AD10
PDL9/AD9
PDL8/AD8
PDL7/AD7
PDL6/AD6
144
143
142
141
140
139
138
137
136
135
134
133
132
131
130
129
128
127
126
125
124
123
122
121
120
119
118
117
116
115
114
113
112
111
3738394041424344454647484950515253545556575859606162636465666768697071
PDL5/AD5/FLMD1
PDL4/AD4
110
109
108 107 106 105 104 103 102 101 100
99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73
72
PDL3/AD3 PDL2/AD2 PDL1/AD1 PDL0/AD0 BV
DD
BV
SS
PCT7 PCT6/ASTB PCT5 PCT4/RD PCT3 PCT2 PCT1/WR1 PCT0/WR0 PCS7 PCS6 PCS5 PCS4 PCM5 PCM4 PCM3/HLDRQ PCM2/HLDAK PCM1/CLKOUT PCM0/WAIT PCS3/CS3 PCS2/CS2 PCS1/CS1 PCS0/CS0 PCD3 PCD2 PCD1 PCD0 P915/INTP6 P914/INTP5 P913/INTP4/PCL P912/SCKB2
Notes 1. Connect this pin to V
SS in the normal mode.
2. Connect the REGC pin to V
3. μPD70F3711, 70F3712 only
22
P63
P64
P65
P66
P60/INTP11
P61/INTP12
P62/INTP13
P54/KR4/DCK
P55/KR5/DMS
P50/KR0/TIQ01/TOQ01
P51/KR1/TIQ02/TOQ02
P52/KR2/TIQ03/TOQ03/DDI
P53/KR3/TIQ00/TOQ00/DDO
SS via a 4.7
μ
F (recommended value) capacitor.
User’s Manual U17717EJ3V0UD
P67
P68
P69
P610/TIQ20/TOQ20
P611/TIQ21/TOQ21
P612/TIQ22/TOQ22
Note 3
P614
P615
/INTP14
Note 3
P81/TXDA3
P90/KR6/TXDA1
P91/KR7/RXDA1
P92/TIQ11/TOQ11
P613/TIQ23/TOQ23
P93/TIQ12/TOQ12
P80/RXDA3
P98/SOB1
P910/SIB2
P911/SOB2
P99/SCKB1
P96/TIP21/TOP21
P94/TIQ13/TOQ13
P95/TIQ10/TOQ10
P97/SIB1/TIP20/TOP20
Pin identification
AD0 to AD15:
ADTRG:
ANI0 to ANI23:
ASCKA0:
ASTB:
AV
REF0:
AVSS:
BV
DD:
BV
SS:
CLKOUT:
CS0 to CS3:
DCK:
DDI:
DDO:
DMS:
DRST:
EV
DD:
EV
SS:
FLMD0, FLMD1:
HLDAK:
HLDRQ:
INTP0 to INTP14:
KR0 to KR7:
NMI:
P00 to P06:
P10, P11:
P30 to P39:
P40 to P42:
P50 to P55:
P60 to P615:
P70 to P715:
P80, P81:
P90 to P915:
P120 to P127:
PCD0 to PCD3:
CHAPTER 1 INTRODUCTION
Address/data bus
A/D trigger input
Analog input
Asynchronous serial clock
Address strobe
Analog reference voltage
Analog V
SS
Power supply for bus interface
Ground for bus interface
Clock output
Chip select
Debug clock
Debug data input
Debug data output
Debug mode select
Debug reset
Power supply for port
Ground for port
Flash programming mode
Hold acknowledge
Hold request
External interrupt request
Key return
Non-maskable interrupt request
Port 0
Port 1
Port 3
Port 4
Port 5
Port 6
Port 7
Port 8
Port 9
Port 12
Port CD
PCL:
PCM0 to PCM5:
PCS0 to PCS7:
PCT0 to PCT7:
PDL0 to PDL15:
RD:
REGC:
RESET:
RXDA0 to RXDA3:
SCKB0 to SCKB2:
SIB0 to SIB2:
SOB0 to SOB2:
TIP00, TIP01,
TIP10, TIP11,
TIP20, TIP21,
TIP30, TIP31,
TIQ00 to TIQ03,
TIQ10 to TIQ13,
TIQ20 to TIQ23:
TOP00, TOP01,
TOP10, TOP11,
TOP20, TOP21,
TOP30, TOP31,
TOQ00 to TOQ03,
TOQ10 to TOQ13,
TOQ20 to TOQ23:
TXDA0 to TXDA3:
V
DD:
V
SS:
WAIT:
WR0:
WR1:
X1, X2:
XT1, XT2:
Programmable clock output
Port CM
Port CS
Port CT
Port DL
Read strobe
Regulator control
Reset
Receive data
Serial clock
Serial input
Serial output
Timer input
Timer output
Transmit data
Power supply
Ground
Wait
Write strobe low level data
Write strobe high level data
Crystal for main clock
Crystal for subclock
User’s Manual U17717EJ3V0UD
23

1.6 Function Block Configuration

1.6.1 Internal block diagram

NMI
INTP0 to INTP14
TIQ00 to TIQ03 TIQ10 to TIQ13 TIQ20 to TIQ23
TOQ00 to TOQ03 TOQ10 to TOQ13 TOQ20 to TOQ23
INTC
16-bit timer/
counter Q:
3 ch
CHAPTER 1 INTRODUCTION
Flash
memory
Note 1
RAM
Note 2
DMAC
PC
32-bit barrel
shifter
System
registers
General-purpose
registers 32 bits × 32
CPU
Multiplier
16 × 16 32
ALU
Instruction
queue
BCU
HLDRQ HLDAK ASTB RD WAIT
WR0, WR1 AD0 to AD15
CS0 to CS3
TIP00 to TIP30,
TIP01 to TIP31
TOP00 to TOP30,
TOP01 to TOP31
SIB0 to SIB2
SOB0 to SOB2
SCKB0 to SCKB2
TXDA0 to TXDA3
RXDA0 to RXDA3
Note 3
Note 3
ASCK0
16-bit timer/
counter P:
4 ch
16-bit
interval
timer M:
1 ch
CSIB: 3 ch
UARTA:
Note 3
4 ch
Watchdog
timer 2
Watch timer
PCT0 to PCT7
PCS0 to PCS7
PDH0 to PDH7
PCM0 to PCM5
PDL0 to PDL15
A/D
converter
Key return
function
DCU
Ports
P80, P81
P90 to P915
PCD0 to PCD3
P50 to P55
P70 to P715
P60 to P615
ANI0 to ANI23 AV AVREF0 ADTRG
KR0 to KR7
P10, P11
P40 to P42
P30 to P39
SS
DRST
DMS
DDI
DCK
DDO
Internal
oscillator
P00 to P06
CLM
CG
PLL
LVI
POC
Regulator
CLKOUT
XT1
XT2 X1 X2
RESET
VDD
VSS
REGC
FLMD0
FLMD1
BVDD
BVSS
EVDD
EVSS
Notes 1.
2.
3.
24
μ
PD70F3709: 128 KB
μ
PD70F3710: 256 KB
μ
PD70F3711: 376 KB
μ
PD70F3712: 512 KB
μ
PD70F3709, 70F3710: 12 KB
μ
PD70F3711, 70F3712: 20 KB
μ
PD70F3709, 70F3710: 3 channels
User’s Manual U17717EJ3V0UD
CHAPTER 1 INTRODUCTION

1.6.2 Internal units

(1) CPU
The CPU uses five-stage pipeline control to enable single-clock execution of address calculations, arithmetic
logic operations, data transfers, and almost all other instruction processing. Other dedicated on-chip hardware, such as a multiplier (16 bits × 16 bits 32 bits) and a barrel shifter (32
bits) contribute to faster complex processing.
(2) Bus control unit (BCU)
The BCU starts a required external bus cycle based on the physical address obtained by the CPU. When an
instruction is fetched from external memory space and the CPU does not send a bus cycle start request, the
BCU generates a prefetch address and prefetches the instruction code. The prefetched instruction code is
stored in an instruction queue.
(3) ROM
This is a 512 KB/376 KB/256 KB/128 KB flash memory mapped to addresses 0000000H to
007FFFFH/0000000H to 005DFFFH/0000000H to 003FFFFH/0000000H to 001FFFFH. It can be accessed
from the CPU in one clock during instruction fetch.
(4) RAM
This is a 20 KB/12 KB RAM mapped to addresses 3FFA000H to 3FFEFFFH/3FFC000H to 3FFEFFFH. It can
be accessed from the CPU in one clock during data access.
(5) Interrupt controller (INTC)
This controller handles hardware interrupt requests (NMI, INTP0 to INTP14) from on-chip peripheral hardware
and external hardware. Eight levels of interrupt priorities can be specified for these interrupt requests, and
multiple servicing control can be performed.
(6) Clock generator (CG)
A main clock oscillator that generates the main clock oscillation frequency (f
generates the subclock oscillation frequency (f
XT) are available. As the main clock frequency (fXX), fX is used as
X) and a subclock oscillator that
is in the clock-through mode and is multiplied by four in the PLL mode.
The CPU clock frequency (f
CPU) can be selected from seven types: fXX, fXX/2, fXX/4, fXX/8, fXX/16, fXX/32, and fXT.
(7) Internal oscillator
An internal oscillator is provided on chip. The oscillation frequency is 200 kHz (TYP.). An internal oscillator
supplies the clock for watchdog timer 2 and timer M.
(8) Timer/counter
Four-channel 16-bit timer/event counter P (TMP), three-channel 16-bit timer/event counter Q (TMQ), and one-
channel 16-bit interval timer M (TMM) are provided on chip.
(9) Watch timer
This timer counts the reference time period (0.5 s) for counting the clock (the 32.768 kHz from the subclock or
the 32.768 kHz f
BRG from prescaler 3). The watch timer can also be used as an interval timer for the main
clock.
User’s Manual U17717EJ3V0UD
25
(10) Watchdog timer 2
A watchdog timer is provided on chip to detect inadvertent program loops, system abnormalities, etc.
Either the internal oscillation clock or the main clock can be selected as the source clock.
Watchdog timer 2 generates a non-maskable interrupt request signal (INTWDT2) or a system reset signal
(WDT2RES) after an overflow occurs.
(11) Serial interface
The V850ES/HJ2 includes three kinds of serial interfaces: asynchronous serial interface A (UARTA) and 3-
wire variable-length serial interface B (CSIB).
In the case of UARTA, data is transferred via the TXDAn and RXDAn pins.
(n = 0 to 3:
μ
PD70F3711, 70F3712, n = 0 to 2: μPD70F3709, 70F3710)
In the case of CSIB, data is transferred via the SOB0 to SOB3 pins, SIB0 to SIB3 pins, and SCKB0 to
SCKB3 pins.
(12) A/D converter
This 10-bit A/D converter includes 24 analog input pins. Conversion is performed using the successive
approximation method.
(13) DMA controller
A 4-channel DMA controller is provided on chip. This controller transfers data between the internal RAM and
on-chip peripheral I/O devices in response to interrupt requests sent by on-chip peripheral I/O.
(14) Key interrupt function
A key interrupt request signal (INTKR) can be generated by inputting a falling edge to key input pins (8
channels).
(15) DCU (debug control unit)
An on-chip debug function that uses the JTAG (Joint Test Action Group) communication specifications is
provided. Switching between the normal port function and on-chip debugging function is done with the
control pin input level and the on-chip debug mode register (OCDM).
(16) Ports
The general-purpose port functions and control pin functions are provided. For details, see CHAPTER 4
PORT FUNCTIONS.
CHAPTER 1 INTRODUCTION
26
User’s Manual U17717EJ3V0UD

CHAPTER 2 PIN FUNCTIONS

This section explains the names and functions of the pins of the V850ES/HJ2.

2.1 Pin Function List

Three I/O buffer power supplies, AV
supplies and the pins is shown below.
Power Supply Corresponding Pin
AVREF0 Port 7, port 12
BVDD Port CD, port CM, port CS, port CT, port DL
EVDD Port 0, port 1, port 3, port 4, port 5, port 6, port 8, port 9, RESET
(1) Port pins
REF0, BVDD, and EVDD, are available. The relationship between the power
Table 2-1. Pin I/O Buffer Power Supplies
Table 2-2. List of Pins (Port Pins) (1/4)
Pin Name Pin No. I/O Function Alternate Function
P00 6 TIP31/TOP31
P01 7 TIP30/TOP30
P02 17 NMI
P03 18 INTP0/ADTRG
P04 19 INTP1
P05 20 INTP2/D RST
P06 21
P10 3 INTP9
P11 4
P30 25 TXDA0
P31 26 RXDA0/INTP7
P32 27 ASCKA0/TIP00/TOP00/TOP01
P33 28 TIP01/TOP01
P34 29 TIP10/TOP10
P35 30 TIP11/TOP11
P36 31
P37 32
P38 35 TXDA2
P39 36
P40 22 SIB0
P41 23 SOB0
P42 24
Port 0
I/O
7-bit I/O port
Input/output can be specified in 1-bit units.
Port 1
I/O
2-bit I/O port
Input/output can be specified in 1-bit units.
Port 3
I/O
10-bit I/O port
Input/output can be specified in 1-bit units.
Port 4
I/O
3-bit I/O port
Input/output can be specified in 1-bit units.
INTP3
INTP10
RXDA2/INTP8
SCKB0
User’s Manual U17717EJ3V0UD
27
CHAPTER 2 PIN FUNCTIONS
Table 2-2. List of Pins (Port Pins) (2/4)
Pin Name Pin No. I/O Function Alternate Function
Port 5
P50 37 KR0/TIQ01/TOQ01
P51 38 KR1/TIQ02/TOQ02
P52 39 KR2/TIQ03/TOQ03/DDI
P53 40 KR3/TIQ00/TOQ00/DDO
P54 41 KR4/DCK
P55 42
P60 43 INTP11
P61 44 INTP12
P62 45 INTP13
P63 46
P64 47
P65 48
P66 49
P67 50
P68 51
P69 52
P610 53 TIQ20/TOQ20
P611 54 TIQ21/TOQ21
P612 55 TIQ22/TOQ22
P613 56 TIQ23/TOQ23
P614 57
P615 58
P70 144 ANI0
P71 143 ANI1
P72 142 ANI2
P73 141 ANI3
P74 140 ANI4
P75 139 ANI5
P76 138 ANI6
P77 137 ANI7
P78 136 ANI8
P79 135 ANI9
P710 134 ANI10
P711 133 ANI11
P712 132 ANI12
P713 131 ANI13
P714 130 ANI14
P715 129
I/O
6-bit I/O port
Input/output can be specified in 1-bit units.
Port 6
I/O
16-bit I/O port
Input/output can be specified in 1-bit units.
Port 7
I/O
16-bit I/O port
Input/output can be specified in 1-bit units.
KR5/DMS
ANI15
28
User’s Manual U17717EJ3V0UD
CHAPTER 2 PIN FUNCTIONS
Table 2-2. List of Pins (Port Pins) (3/4)
Pin Name Pin No. I/O Function Alternate Function
TXDA3
Note
/INTP14
Note
Port 8
P80 59 RXDA3
P81 60
I/O
2-bit I/O port
Input/output can be specified in 1-bit units.
P90 61 KR6/TXDA1
P91 62 KR7/RXDA1
P92 63 TIQ11/TOQ11
Port 9
I/O
16-bit I/O port
Input/output can be specified in 1-bit units.
P93 64 TIQ12/TOQ12
P94 65 TIQ13/TOQ13
P95 66 TIQ10/TOQ10
P96 67 TIP21/TOP21
P97 68 SIB1/TIP20/TOP20
P98 69 SOB1
P99 70 SCKB1
P910 71 SIB2
P911 72 SOB2
P912 73 SCKB2
P913 74 INTP4/PCL
P914 75 INTP5
P915 76
Port 12
P120 128 ANI16
P121 127 ANI17
P122 126 ANI18
I/O
8-bit I/O port
Input/output can be specified in 1-bit units.
INTP6
P123 125 ANI19
P124 124 ANI20
P125 123 ANI21
P126 122 ANI22
P127 121
PCD0 77
PCD1 78
PCD2 79
Port CD
I/O
4-bit I/O port
Input/output can be specified in 1-bit units.
PCD3 80
PCM0 85 WAIT
PCM1 86 CLKOUT
PCM2 87 HLDAK
Port CM
I/O
6-bit I/O port
Input/output can be specified in 1-bit units.
ANI23
PCM3 88 HLDRQ
PCM4 89
PCM5 90
Note
μ
PD70F3711, 70F3712 only
User’s Manual U17717EJ3V0UD
29
CHAPTER 2 PIN FUNCTIONS
Table 2-2. List of Pins (Port Pins) (4/4)
Pin Name Pin No. I/O Function Alternate Function
Port CS
PCS0 81 CS0
PCS1 82 CS1
PCS2 83 CS2
PCS3 84 CS3
PCS4 91
PCS5 92
PCS6 93
PCS7 94
PCT0 95 WR0
PCT1 96 WR1
PCT2 97
PCT3 98
PCT4 99 RD
PCT5 100
PCT6 101 ASTB
PCT7 102
PDL0 105 AD0
PDL1 106 AD1
PDL2 107 AD2
PDL3 108 AD3
PDL4 109 AD4
PDL5 110 AD5/FLMD1
PDL6 111 AD6
PDL7 112 AD7
PDL8 113 AD8
PDL9 114 AD9
PDL10 115 AD10
PDL11 116 AD11
PDL12 117 AD12
PDL13 118 AD13
PDL14 119 AD14
PDL15 120
I/O
8-bit I/O port
Input/output can be specified in 1-bit units.
Port CT
I/O
8-bit I/O port
Input/output can be specified in 1-bit units.
Port DL
I/O
16-bit I/O port
Input/output can be specified in 1-bit units.
AD15
30
User’s Manual U17717EJ3V0UD
Loading...
+ 786 hidden pages