User’s Manual V850E/IA1TM startWARE Starter Kit 32-bit Single-chip

Version IAR

Document No. U15893EE1V0UM00 Date Published January 2002

 NEC Corporation 2002 Printed in This equipment complies with the EMC protection requirements

WARNING This is a ‘Class A’ ( EN 55022 : 1998) equipment. This equipment can cause radio frequency noise when used in the residential area. In such cases, the user/operator of the equipment may be required to take appropriate countermeasures under his responsibility.

EEDT-ST-001-11

CAUTION This equipment should be handled like a CMOS semiconductor device. The user must take all precautions to avoid build-up of static electricity while working with this equipment. All test and measurement tool including the workbench must be grounded. The user/operator must be grounded using the wrist strap. The connectors and/or device pins should not be touched with bare hands.

EEDT-ST-004-10

2 User’s Manual U15893EE1V0UM00 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 VDD 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.

User’s Manual U15893EE1V0UM00 3 MS-DOS and MS-Windows are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. PC/AT and PC DOS are trademarks of IBM Corp.

The related documents in this publication may include preliminary versions. However, preliminary versions are not marked as such.

The export of this product from is regulated by the Japanese government. To export this product may be prohibited without governmental license, the need for which must be judged by th customer. The export or re-export of this product from a country other than Japan may also be prohibited without a license from that country. Please call an NEC sales representative.

The information in this document is current as of 08.01.2002. 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, 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 equip- ment, 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 specifi- cally designed for life support). "Specific": Aircrafts, aerospace equipment, submersible repeaters, nuclear reactor control systems, life support systems or 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.

Notes: (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).

M5 2000.03

4 User’s Manual U15893EE1V0UM00 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.) NEC Electronics () S.A. NEC Electronics Hong Kong Ltd. Santa Clara, California Vélizy-Villacoublay, France Hong Kong Tel: 408-588-6000 Tel: 01-3067-58-00 Tel: 2886-9318 800-366-9782 Fax: 01-3067-58-99 Fax: 2886-9022/9044 Fax: 408-588-6130 800-729-9288 NEC Electronics (France) S.A. NEC Electronics Hong Kong Ltd. Representación en España Seoul Branch NEC Electronics (Europe) GmbH Madrid, Spain Seoul, Korea Duesseldorf, Germany Tel: 091-504-27-87 Tel: 02-528-0303 Tel: 0211-65 03 01 Fax: 091-504-28-60 Fax: 02-528-4411 Fax: 0211-65 03 327 NEC Electronics Singapore Pte. Ltd. • Branch The Netherlands NEC Electronics Italiana S.R.L. Novena Square, Singapore Eindhoven, The Netherlands Milano, Italy Tel: 253-8311 Tel: 040-244 58 45 Tel: 02-66 75 41 Fax: 250-3583 Fax: 040-244 45 80 Fax: 02-66 75 42 99 NEC Electronics Taiwan Ltd. Taipei, Taiwan • Branch NEC Electronics (UK) Ltd. Tel: 02-2719-2377 Taeby, Sweden Milton Keynes, UK Fax: 02-2719-5951 Tel: 08-63 80 820 Tel: 01908-691-133 Fax: 08-63 80 388 Fax: 01908-670-290 NEC do Brasil S.A. Electron Devices Division Guarulhos-SP, Brasil Tel: 11-6462-6810 Fax: 11-6462-6829

J01.2

User’s Manual U15893EE1V0UM00 5 [MEMO]

6 User’s Manual U15893EE1V0UM00 Preface

Readers This manual is intented for users who want to understand the functions of the V850E/IA1 startWARE Starter Kit, Version IAR.

Purpose This manual presents the hardware manual of V850E/IA1startWARE Starter Kit, Version IAR.

Organization This system specification describes the following sections:

• Pin function

• CPU function

• Internal peripheral function

• Flash memory

Legend Symbols and notation are used as follows: Weight in data notation : Left is high-order column, right is low order column Active low notation : xxx (pin or signal name is over-scored) or /xxx (slash before signal name) Memory map address: : High order at high stage and low order at low stage Note : Explanation of (Note) in the text Caution : Item deserving extra attention Remark : Supplementary explanation to the text

Numeric notation : Binary . . . XXXX or XXXB Decimal . . . XXXX Hexadecimal . . . XXXXH or 0x XXXX Prefixes representing powers of 2 (address space, memory capacity) K (kilo) : 210 = 1024 M (mega) : 220 = 10242 = 1,048,576 G (giga) : 230 = 10243 = 1,073,741,824

User’s Manual U15893EE1V0UM00 7 8 User’s Manual U15893EE1V0UM00 Table of Contents

Preface ...... 7

Chapter 1 Introduction...... 15 1.1 Main Features of startWARE ...... 15 1.2 System Requirements ...... 16 1.3 Package Contents ...... 16

Chapter 2 startWARE System Configuration ...... 17 2.1 startWARE ...... 18 2.2 Host Computer ...... 18 2.3 flashMASTER ...... 18 2.4 Power Supply ...... 18

Chapter 3 startWARE Components ...... 19 3.1 Configuration / User switches SW4...... 20 3.1.1 Clock configuration SW4 (S4)...... 20 3.1.2 Operating Mode configuration SW4 (S9/S10)...... 20 3.1.3 User configuration SW4 (S1-S3, S5-S8)...... 21 3.2 NMI button SW1...... 21 3.3 Reset button SW2 ...... 21 3.4 Configuration switches SW3 ...... 22 3.4.1 Serial interface configuration ...... 22 3.4.2 startWARE operating mode selection...... 23 3.5 Connectors for processor-signals, CN1 – CN4 ...... 26 3.6 Motor-control-connector CN5 ...... 26 3.7 flashMASTER connector CN6 ...... 26 3.8 CAN bus interface connector CN7 ...... 26 3.9 Power connector CN8...... 26 3.10 RS232 serial interface connector of UART0, CN9 ...... 27 3.11 RS232 serial interface connector of UART1, CN12 ...... 27 3.12 Power LEDs 1-3...... 27 3.13 User LEDs 4-7 ...... 28 3.14 7-Segment LEDs 8-9 ...... 29 3.15 Programming voltage generation (VPP) ...... 30 3.16 startWARE Memory Map ...... 30

Chapter 4 startWARE Operation...... 33 4.1 Getting Started ...... 33 4.1.1 Hardware installation ...... 33 4.1.2 Software installation ...... 33 4.2 Sample Session ...... 34 4.3 IAR ROM-monitor resources ...... 54

Chapter 5 Connectors and Cables ...... 55 5.1 Power supply jack...... 55 5.2 Serial host connector ...... 56 5.3 Connector CN1, V850E/IA1 Pins 1-36 ...... 57 5.4 Connector CN2, V850E/IA1 Pins 37–72 ...... 58 5.5 Connector CN3, V850E/IA1 Pins 73–108...... 59 5.6 Connector CN4, V850E/IA1 Pins 109–144 ...... 60 5.7 Connector CN5, Motor-control-connector ...... 61 5.8 Connector CN6, flashMASTER connector ...... 61

Chapter 6 Schematics ...... 63

User’s Manual U15893EE1V0UM00 9 10 User’s Manual U15893EE1V0UM00 List of Figures

Figure 2-1: startWARE System Configuration ...... 17 Figure 3-1: startWARE connectors, switches and LEDs...... 19 Figure 4-1: IAR Embedded Workbench...... 34 Figure 4-2: Loading a project file ...... 35 Figure 4-3: List of files belonging to a project ...... 36 Figure 4-4: Source code of demonstration program ...... 37 Figure 4-5: Selecting the ROM-Monitor driver and the Chip description file...... 38 Figure 4-6: Serial communications parameter setting ...... 39 Figure 4-7: Selecting the linker command file...... 40 Figure 4-8: Compiling and linking a project using the “Build All” option...... 41 Figure 4-9: Starting the -SPY ...... 42 Figure 4-10: Downloading a program to the target ...... 43 Figure 4-11: C-SPY windows...... 44 Figure 4-12: Setting a breakpoint ...... 45 Figure 4-13: Program stopped at breakpoint ...... 46 Figure 4-14: Single stepping through instructions and terminal output...... 47 Figure 4-15: Stepping into a function...... 48 Figure 4-16: Single stepping through a function ...... 49 Figure 4-17: Displaying assembler lines and C source...... 50 Figure 4-18: Displaying register contents ...... 51 Figure 4-19: Watch window ...... 52 Figure 4-20: Viewing variables in the watch window ...... 53 Figure 5-1: Power supply jack ...... 55 Figure 5-2: Target cable 2 ...... 56 Figure 6-1: startWARE schematics 1...... 63 Figure 6-2: startWARE schematics 2...... 64 Figure 6-3: startWARE schematics 3...... 65 Figure 6-4: startWARE schematics 4...... 66 Figure 6-5: startWARE schematics 5...... 67

User’s Manual U15893EE1V0UM00 11 12 User’s Manual U15893EE1V0UM00 List of Tables

Table 3-1: SW4, clock generator configuration ...... 20 Table 3-2: SW4, operating mode configuration ...... 20 Table 3-3: SW4 connection to Port 2 ...... 21 Table 3-4: SW4 connection to CPLD ...... 21 Table 3-5: SW3 configuration switches S1 – S6 ...... 22 Table 3-6: SW3 configuration switches S9, S10 ...... 23 Table 3-7: SW3 configuration switch S8 in monitor mode ...... 24 Table 3-8: SW3 configuration switch S7 in MONITOR mode ...... 24 Table 3-9: SW configuration switches S7 and S8 in MEM OFF mode / MEM SWAP mode ...... 24 Table 3-10: SW configuration switches S7 and S8 in Test mode ...... 25 Table 3-11: CN7 connection to Philips PCA82C250 and V850E/IA1 ...... 26 Table 3-12: CN9 connection to RS232 and UART0 of V850E/IA1 ...... 27 Table 3-13: CN12 connection to RS232 and UART1 of V850E/IA1 ...... 27 Table 3-14: LEDs 4-7 connection to Port 2 ...... 28 Table 3-15: LEDs 8-9 connection ...... 29 Table 3-16: Programming voltage generation (VPP) ...... 30 Table 3-17: startWARE memory map ...... 31 Table 4-1: Status after power up ...... 33 Table 5-1: Serial host connector ...... 56 Table 5-2: Connector CN1, V850E/IA1 Pins 1–36 ...... 57 Table 5-3: Connector CN2, V850E/IA1 Pins 37 – 72 ...... 58 Table 5-4: Connector CN3, V850E/IA1 Pins 73 – 108 ...... 59 Table 5-5: Connector CN4, V850E/IA1 Pins 109 – 144 ...... 60 Table 5-6: Connector CN5, Motor-control-connector ...... 61 Table 5-7: Connector CN6, flashMASTER connector ...... 61

User’s Manual U15893EE1V0UM00 13 14 User’s Manual U15893EE1V0UM00 Chapter 1 Introduction startWARE is a starter kit for evaluation of the NEC V850E architecture using the V850E/IA1 as device example. It allows easy evaluation of the V850E/IA1 micro controller by real time execution of application programs with and without host connection as well as connection to any kind of target hardware.

1.1 Main Features of startWARE

• Easy device evaluation capabilities

• startWARE contains elements to easily evaluate I/O-functions, i.e. DIP switches, 7-segment-display, serial interfaces and CAN bus interface.

• Debug monitor

• User application programs can be debugged using IAR C-Spy Debugger.

• Internal flash memory

• V850E/IA1 internal flash memory (256 KB) is available to use the startWARE as a stand-alone device or as a ready-to-use-system in user specific applications. The lower 128 KB contain a debug monitor and hardware test functions.

• Selectable operational modes:

- Monitor mode: Debugging mode using the monitor-program which is located in the internal flash memory of the V850E/IA1. The user program can be located in the external RAM area in order to test it without wait-states. - Stand alone mode: To run an user program in stand-alone mode, it can be located either in the internal or in the external flash memory. - Flash monitor mode: The flash monitor program offers an user interface for the self-programming library for NEC flash devices and allows also the programming of the external 512 KB flash memory available on the startWARE.

• External flash / SRAM User application programs may be downloaded into external flash memory or SRAM. 512 KB external flash memory and 512 KB of SRAM are available on startWARE.

• Memory swap Chip select logic provides the possibility to swap RAM and Flash memory locations.

• Flash programming support The monitor software contains self-programming support functions. This flash monitor allows to program those locations in internal memory that are not used by the monitor or jump table itself. Furthermore the internal flash can be programmed via CSI0 using a dedicated flash programmer such as flashMASTER.

• Zero wait-states startWARE operates at maximum performance of V850E/IA1. Programs run without wait-states if they are executed from internal flash memory or external SRAM. External flash memory requires three wait states. If internal flash is used for program execution there will be 32-bit memory access.

User’s Manual U15893EE1V0UM00 15 Chapter 1 Introduction

• Multiplexed address/data bus The multiplexed address-data-bus is used, since additional port-pins can be made available to the user. The use of the non-multiplexed bus does not increase performance.

• Connectors for processor-signals For 36-pin connectors (2.54 mm grid) are provided on board to which all processor signals are connected.

Caution: startWARE is not intended for code development. NEC does not allow and does not support in any way any attempt to use startWARE in a commercial or technical product.

1.2 System Requirements

• HOST PC A PC supporting Windows 9x, Windows 2000 or Windows NT is required for the IAR Embedded WorkbenchTM. Pentium 133 MHz (at least), 32 MB of RAM, 256-color display (1024 * 768), mouse, CD-ROM drive and 60 MB of free hard disk space are required to install the IAR Embedded WorkbenchTM package.

• Host interface Serial (RS232C) interface capable to handle communication at 9600, 19200, 38400 or 115200 baud.

1.3 Package Contents

Please verify that you have received all parts listed in the package contents list attached to the startWARE package. If any part is missing or seems to be damaged, please contact the dealer from whom you purchased your startWARE.

Note: Updates to this User’s Manual, additional documentation and/or utilities for startWARE, if available, may be downloaded from the NEC WEB page(s) at http://www.ee.nec.de/updates.

16 User’s Manual U15893EE1V0UM00 Chapter 2 startWARE System Configuration

The startWARE system configuration is given in the diagram below:

Figure 2-1: startWARE System Configuration

flash MASTER (optional) start WARE

AC Adapter (15 V)

Host connection RS232C

User’s Manual U15893EE1V0UM00 17 Chapter 2 startWARE System Configuration

2.1 startWARE startWARE is a starter kit for evaluation of the NEC V850E/IA1 microcontroller. It is equipped with 512 KB static RAM, 512 KB external flash memory, serial interface, a debug monitor program and a flash monitor program are available. The flash monitor supports flash self programming to program user application software either into the V850E/IA1 internal flash or external flash memory. The startWARE evaluation board is connected to the host system via RS232C serial interface cable. The host system may be used to download, debug and run application programs on startWARE platform. A flashMASTER can be connected to startWARE to program the V850E/IA1 flash memory. startWARE runs the V850E/IA1 micro controller at 4 MHz operating speed in direct mode and 40 MHz in PLL mode (default).

2.2 Host Computer

The RS232 host interface enables communication to the startWARE. RS232 data transfer speed can be set to 38400 bps (default) or 115200 bps in PLL mode. In the direct mode the transfer speed can be set to 9600 bps or 19200 bps.

For a detailed specification of the host interface please refer to the chapter 5, “Connectors and Cables” of this document.

2.3 flashMASTER flashMASTER is a flash programmer which allows to program the V850E/IA1 on chip flash memory. flashMASTER will be necessary if the complete internal flash memory of V850E/IA1 shall be reprogrammed. The self programming support inhibits reprogramming of the lower 128 KB internal flash memory of V850E/IA1 because the internal monitor software shall be protected.

Note: flashMASTER is an external flash programmer and it is not part of the startWARE package.

2.4 Power Supply

The AC adapter provides startWARE with 15 V. The power supply FW7207/15 is equipped with a Texas Adapter 10.55.44 and may be connected to mains using one of the available AC-plugs Euro, UK or USA / Japan.

For a specification of the power supply jack please refer to the chapter 5, “Connectors and Cables” of this document.

18 User’s Manual U15893EE1V0UM00 Chapter 3 startWARE Components startWARE is equipped with several connectors, switches and LED in order to be connected to host computers, flash programmer and to allow different configurations according to user requirements.

Figure 3-1: startWARE connectors, switches and LEDs

CN5

CN1 CN4

CN6 SW1 SW2 LED4-7 LED1-3 CN2 CN3

SW4 SW3 CN12 LED8-9

CN7 CN8 CN9

Some of the startWARE components are free for user application software, others are used to configure startWARE according to the user requirements.

User’s Manual U15893EE1V0UM00 19 Chapter 3 startWARE Components

3.1 Configuration / User switches SW4

With the DIP switch SW4 startWARE can be configured to operate in different modes. SW4 can also be used for user application purposes. Pull-up resistors 47 K are connected to VDD. For details please refer to the chapter 6, “schematics”. Setting SW4 to ON will apply low signal level at the corresponding port, setting to OFF will apply high signal level.

3.1.1 Clock configuration SW4 (S4)

Switch S4 of SW4 is used to define the operating clock of the startWARE board. Setting S4 to ON (default) sets the clock to 40 MHz operating speed, PLL mode. In the direct mode, setting S4 to OFF, the system operates with 4MHz operating speed, without using PLL.

Table 3-1: SW4, clock generator configuration

SW4, S4 Clock Generator Function ON (default) PLL Mode / System Clock Frequency = 40 MHz OFF Direct Mode / System Clock Frequency = 4 MHz

3.1.2 Operating Mode configuration SW4 (S9/S10)

Switches S9 and S10 are directly connected to the mode pins of the V850E/IA1 device. The operating mode, i.e. ROM-less or Single-chip mode, is specified according the status of the pins MODE0 to MODE2.

Table 3-2: SW4, operating mode configuration

SW4, S9 SW4, S10 Mode ON ON ROM-less mode 0 / 16-bit data bus OFF ON ROM-less mode 1 / 8-bit data bus ON (default) OFF (default) Single-chip mode 0 / Internal ROM area is allocated from address 0x000000H OFF OFF Single-chip mode 1 / Internal ROM area is allocated from address 0x100000H

20 User’s Manual U15893EE1V0UM00 Chapter 3 startWARE Components

3.1.3 User configuration SW4 (S1-S3, S5-S8)

Switches S5 to S8 of SW4 are directly connected to Port 2 of the V850E/IA1 and free for user application. Pull-up resistors 47 K are connected to VDD. For details please refer to the chapter 6, “schematics”.

Table 3-3: SW4 connection to Port 2

Port 2 SW4 P20 S5 P21 S6 P22 S7 P23 S8

Furthermore switches S1 to S3 of SW4 are connected to the CPLD, and therefore memory mapped. The status of S1-S3 can be detected by a read access to address 0x400002h.

Table 3-4: SW4 connection to CPLD

Address Bit SW4 0x400002h 0 S1 0x400002h 1 S2 0x400002h 2 S3

3.2 NMI button SW1

SW1 is the NMI button. It activates the non-maskable interrupt request. It is connected to the NMI/P00 input of V850E/IA1. The non-maskable interrupt cannot be configured for user application purpose because the NMI signal is used for communication between IAR ROM-monitor and Host PC.

3.3 Reset button SW2

SW2 is a reset button. It activates the power on reset. It is connected to the reset input of V850E/IA1.

User’s Manual U15893EE1V0UM00 21 Chapter 3 startWARE Components

3.4 Configuration switches SW3

With the DIP switch SW3 startWARE can be configured to operate in different modes.

3.4.1 Serial interface configuration

The serial interface connector CN9 connects UART0 of V850E/IA1 to the host system. The IAR debug monitor will use the interface connection. If any user application shall use UART0 instead, SW3 switches S1 – S6 may disconnect CN9 from V850E/IA1.

Table 3-5: SW3 configuration switches S1 – S6

SW3, S1-S6 Port ON (default) OFF 1 P31 TXD0 connected to V850E/IA1 TXD0 not connected to V850E/IA1 2 P34 RTS connected to V850E/IA1 RTS not connected to V850E/IA1 3 P35 DTR connected to V850E/IA1 DTR not connected to V850E/IA1 4 P30 RXD0 connected to V850E/IA1 RXD0 not connected to V850E/IA1 5 P36 CTS connected to V850E/IA1 CTS not connected to V850E/IA1 6 P37 DSR connected to V850E/IA1 DSR not connected to V850E/IA1

Factory default setting for SW3 switches S1 – S6 is ON.

22 User’s Manual U15893EE1V0UM00 Chapter 3 startWARE Components

3.4.2 startWARE operating mode selection startWARE may operate in one out of four operating modes. The operating mode requested can be set by SW3 switches S9 and S10.

Table 3-6: SW3 configuration switches S9, S10

SW3, S9 SW3, S10 Mode ON (default) ON (default) MONITOR mode ON OFF MEM OFF mode OFF ON MEM SWAP mode OFF OFF TEST mode

Factory default setting for SW3 switches S9, S10 is ON (monitor mode).

• MONITOR mode After power on of startWARE the IAR debug monitor starts operation. A host PC running the IAR Embedded WorkbenchTM environment should be connected to CN9.

• MEM OFF mode External flash memory and SRAM are disabled. The full external address range of V850E/IA1 is free for any user application.

• MEM SWAP mode External flash memory and SRAM address ranges are swapped. Refer to the memory map, section 3.16.

• TEST mode After power on of startWARE factory test programs start operation.

Note: If MONITOR mode is not active and external memory is used instead, make sure that your application program uses the correct number of wait states for the external flash. Three wait states are required at full speed CPU operation.

In addition to the operating mode selection each mode offers operating options.

User’s Manual U15893EE1V0UM00 23 Chapter 3 startWARE Components

(1) MONITOR mode operating options SW3 switch S8 controls the usage of LEDs 8-9. It can be configured to be used by the debug monitor to indicate serial communication activities or it can be configured for user application purposes.

Table 3-7: SW3 configuration switch S8 in monitor mode

SW3, S8 Operating option ON (default) LEDs 8-9 are used by monitor to indicate serial communication activities. OFF LEDs 8-9 are free for user application purposes.

Factory default setting for SW3 switches S8 is ON.

SW3 switch S7 controls serial communication speed of the debug monitor.

Table 3-8: SW3 configuration switch S7 in MONITOR mode

SW3, S7 Communication speed (in PLL Mode) Communication Speed (in Direct Mode) ON (default) 38400 bps 9600 bps OFF 115200 bps 19200 bps

Factory default setting for SW3 switches S7 is ON.

(2) MEM OFF / MEM SWAP mode operating options The operating options for MEM OFF mode and MEM SWAP mode are identical. After power on a boot sequence will read the SW3 S7 and S8 switch setting and the program execution will continue at the memory addresses selected by S7 and S8. The boot sequence will use an instruction like JMP [R2] with R2 set to a value according to table 3-9.

Table 3-9: SW configuration switches S7 and S8 in MEM OFF mode / MEM SWAP mode

SW3,S7 SW3,S8 Operating option ON (default) ON (default) JMP 0x00100000 (external memory area) ON OFF JMP 0x00200000 (external memory area) OFF ON JMP 0x00020000 (internal flash memory area) OFF OFF JMP 0xFFFFC000 (internal RAM area)

Factory default setting for SW3 switches S7 and S8 is ON.

24 User’s Manual U15893EE1V0UM00 Chapter 3 startWARE Components

(3) TEST mode operating options Hardware test functions may be selected in TEST mode.

Table 3-10: SW configuration switches S7 and S8 in Test mode

SW3,S7 SW3,S8 Operating option ON (default) ON (default) Start-up of Flash Monitor instead of Debug Monitor ON OFF JMP 0x00200000 OFF ON JMP 0x00020000 OFF OFF Hardware test function (factory test)

Factory default setting for SW3 switches S7 and S8 is ON.

User’s Manual U15893EE1V0UM00 25 Chapter 3 startWARE Components

3.5 Connectors for processor-signals, CN1 – CN4

All processor signals of the V850E/IA1 device are connected to CN1 – CN4 connectors. For details please refer to the chapter 5, “Connectors and Cables “.

3.6 Motor-control-connector CN5

All motor-control-signals of the V850E/IA1 device are connected to the CN5 connector. For details please refer to the chapter 5, “Connectors and Cables “.

3.7 flashMASTER connector CN6

CN6 allows to connect the flashMASTER flash programmer to startWARE in order to program application programs into V850E/IA1 internal flash memory. Target cable 1 of the flashMASTER package must be used for this purpose. Alternatively, a self programming software library is available for this purpose on the included CD-ROM of the startWARE package or may be downloaded from the NEC WEB page. For details please refer to Chapter 1.3, “Package contents”.

Caution: The included self programming software library is for evaluation purpose only! It should only be used in combination with V850E/A1 startWARE.

3.8 CAN bus interface connector CN7

The V850E/A1 features an 1-channel on-chip FCAN (Full Controller Area Network) controller that complies with the CAN specification ISO11898-1. Signals CTXD and CRXD are connect via a Philips CAN bus driver PCA82C250 to connector CN7.

Table 3-11: CN7 connection to Philips PCA82C250 and V850E/IA1

Port CN7 Philips PCA82C250 CTXD 2 CAN_L CRXD 7 CAN_H -- 3 Ground -- 1, 4, 5, 6, 8, 9 NC

3.9 Power connector CN8

The operation voltage will be connected to CN8 power supply jack. The supply voltage of the V850E/IA1 device is VDD3 = 3 V and VDD5 = 5 V. The programming voltage VPP is 7.8 V.

Caution: Connect only the provided AC adapter to the power supply jack!

26 User’s Manual U15893EE1V0UM00 Chapter 3 startWARE Components

3.10 RS232 serial interface connector of UART0, CN9

RS232 interface lines are connected to UART0 of the V850E/IA1 device via a 9-pin male Sub-D connector CN9. The control lines DTR, DSR, RTS and CTS are connected as well. Depending on the setting of SW3 configuration switch S1 - S6 all serial interface lines may be disconnected to keep UART0 free for user application purposes. The DSR signal line is connected to the non maskable interrupt input NMI of the V850E/IA1. A falling edge at DSR line will generate a NMI.

Table 3-12: CN9 connection to RS232 and UART0 of V850E/IA1

Port CN9 RS232 RXD0 2 RXD TXD0 3 TXD P36 8 CTS P37 + NMI 1, 6 DSR P35 4 DTR P34 7 RTS -- 5 Ground -- 9 NC

Serial communication speed can be selected with SW3 configuration switch S7. Any change of SW3, switch S7, requires to reset startWARE. Communication speed will only be checked during start-up sequence of the monitor.

3.11 RS232 serial interface connector of UART1, CN12

Additionally RS232 interface lines are connected to UART1 of the V850E/IA1 device to give the user more flexibility to connect serial components.

Table 3-13: CN12 connection to RS232 and UART1 of V850E/IA1

Port CN9 RS232 TXD1 1 TXD -- 2 Ground RXD1 3 RXD

3.12 Power LEDs 1-3

LEDs 1-3 are used as power indicator LEDs. They are switched to ON when the power supply is connected to startWARE.

User’s Manual U15893EE1V0UM00 27 Chapter 3 startWARE Components

3.13 User LEDs 4-7

LEDs 4-7 are connected to Port 2 of the V850E/IA1 and are free for user application purposes. The LEDs are connected via 1 K Pull-up resistors to VDD and so active low.

Table 3-14: LEDs 4-7 connection to Port 2

Port 2 LED P24 4 P25 5 P26 6 P27 7

28 User’s Manual U15893EE1V0UM00 Chapter 3 startWARE Components

3.14 7-Segment LEDs 8-9

LED 8 and LED 9 are 7-segment LEDs. Depending on the setting of SW3 configuration switch S8 they may be used by the monitor software to indicate serial interface activities or they may be used for user application purposes. LEDs 8-9 are connected to CPLD and so they are memory mapped. They can be set by a write access to addresses 0x400000h and 0x400001h, respectively. Note that the LEDs are active low.

Table 3-15: LEDs 8-9 connection

Address Bit Segment LED 8 Address Bit Segment LED 9

0x400001h 0 A 0x400000h 0 A

0x400001h 1 B 0x400000h 1 B

0x400001h 2 C 0x400000h 2 C

0x400001h 3 D 0x400000h 3 D

0x400001h 4 E 0x400000h 4 E

0x400001h 5 F 0x400000h 5 F

0x400001h 6 G 0x400000h 6 G

0x400001h 7 DP 0x400000h 7 DP

User’s Manual U15893EE1V0UM00 29 Chapter 3 startWARE Components

3.15 Programming voltage generation (VPP)

For flash self programming of the V850E/IA1 device, the VPP pin must be connected to 7.8 V programming voltage. This can be done by writing pattern 0x5Ah to address 0x40000Eh of the CPLD. All other write accesses to address 0x40000Eh turn the programming voltage off.

Table 3-16: Programming voltage generation (VPP)

Address Pattern VPP 0x40000Eh 0x5Ah ON 0x40000Eh 0xXXh OFF

3.16 startWARE Memory Map startWARE supports on-chip memory and external RAM for target monitor and user application software.

30 User’s Manual U15893EE1V0UM00 Chapter 3 startWARE Components

Table 3-17: startWARE memory map

0xFFFFFFFF SFR Area 0xFFFFF000 0xFFFFEFFF Internal RAM (free for user application) 0xFFFFC000 0xFFFFDFFF

Note 1

0x00480000 0x0047FFFF Peripheral, CPDL 0x00400000 0x003FFFFF Access prohibited Access prohibited 0x00280000 0x0027FFFF External memory area 2 External memory area 2 Notes 2, 3 0x00200000 0x001FFFFF Access prohibited Access prohibited 0x00180000 0x0017FFFF Free memory area 0x00101000 0x00100FFF RAM variables of IAR External memory area 1 ROM monitor Notes 2, 3 0x00100400 0x001003FF Interrupt table in external memory 0x00100000 0x000FFFFF Free memory area 0x00080000 Internal flash memory area 0x0007FFFF Monitor program 0x00000000

Notes: 1. First 4 MB memory block is mirrored in 0x004FFFFF – 0xFFFFDFFF address range. First 256 KB of each such block is write protected. 2. Flash or SRAM area depending on MEM SWAP mode. 3. On board memory devices enabled depending on MEM OFF mode.

User’s Manual U15893EE1V0UM00 31 [MEMO]

32 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

4.1 Getting Started startWARE is equipped with the IAR ROM monitor which allows communication with the IAR C-SPY debugger. Before you can run and debug a program using the ROM monitor, hardware and software must be installed properly.

4.1.1 Hardware installation

After unpacking startWARE please connect startWARE to your host computer using the provided serial interface cable. The communication speed may be set to 9600 bps, 19200 bps, 38400 bps or 115200 bps depending on SW3, S7 and SW4, S4 setting. The default setting is 38400 bps in PLL mode.

Only the AC adapter that is supplied with the startWARE must power the startWARE. The power LEDs 1-3 on the startWARE indicate that a power supply is connected.

After power up or hardware reset the startWARE displays the “iar” logo and the selected operating clock and communication speed is as following:

Table 4-1: Status after power up

LED 8 LED 9 Clock Generator Function Communication speed

Direct Mode / Clock Frequency = 4 MHz 9600 bps and profiling is disabled

Direct Mode / Clock Frequency = 4 MHz 19200 bps and profiling is disabled

PLL Mode / Clock Frequency = 40 MHz 38400 bps and profiling is enabled

PLL Mode / Clock Frequency = 40 MHz 115200 bps and profiling is enabled

4.1.2 Software installation

The IAR Embedded WorkbenchTM must be installed on the Host PC. To run the sample session described herein make sure that the folder named “tutor” is installed on your PC’s hard disk.

User’s Manual U15893EE1V0UM00 33 Chapter 4 startWARE Operation

4.2 Sample Session

When everything is set up correctly the IAR Embedded WorkbenchTM can be started. To do so start the program “iaride.exe” in the folder “IAR Systems \ Embedded Workbench 3.2 \ common \ bin”. Or start the Embedded Workbench from Windows “Start” menu → “Programs” → folder “IAR Systems” → “IAR Embedded Workbench for NEC ”. The following screen appears.

Figure 4-1: IAR Embedded Workbench

34 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

Select the option “Open” or “Open Project…” from the “File” menu and locate the file “samplesession.pew”. This is the project file that contains general information about your projects settings. Double click the file name or single click it and click “Open” in the dialog box to select it.

Figure 4-2: Loading a project file

User’s Manual U15893EE1V0UM00 35 Chapter 4 startWARE Operation

After having opened the demo session project the files contained in the project are displayed. Now click on the little “+” sign next to the file name “samplesession.c” to show files that are referred to in the source file. The screen should now look similar to this:

Figure 4-3: List of files belonging to a project

36 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

Open the source file called “samplesession.c” by double clicking it. Scroll through the code to get an idea of the function of the demonstration program. Before compiling and linking the project let’s check some settings that have to be done properly before the program can be run with the startWARE ROM monitor.

Figure 4-4: Source code of demonstration program

The functionality of the demonstration program is very simple: The Timer30 of the V850E/IA1 device is configured as interval timer to build a software real time clock. The value that is set on the lower 3 bits of the DIP switch SW4, S1-S3, of the startWARE determine the interval time of Timer30. Also the setting of DIP switch SW4 is output on the LEDs 5-7. The actual time information, in this case the variable “clock.sec”, is displayed on the 7-segment LEDs 8-9. Before this some basic initialisations are done such as setting up Port 2 of the micro controller for input SW4 and output LEDs 5-7. Also Timer30 has been initialised to generate a sequential interrupt for the time reference.

User’s Manual U15893EE1V0UM00 37 Chapter 4 startWARE Operation

As a next step check some settings of the IAR Embedded Workbench that have to be made for correct operation.

First highlight the uppermost folder called ‘Debug’ in the workbenches project window. Then select “Project” > “Options” from the pull down menus. Next, select the category “C-SPY” and “Setup” as shown below. Then make sure that “ROM-Monitor” is selected in the “Driver” field and that the correct path and Chip description file (“cs_v850e_df3116.ddf”) are selected. For easier portability you can use the IAR system variable “$TOOLKIT_DIR$” to determine the path. If necessary enter the required settings. Alternatively, you may browse through your PC’s menus to locate the Chip description file by selecting the check box named “Use description file” and clicking the “...” button next to the file name input field.

Figure 4-5: Selecting the ROM-Monitor driver and the Chip description file

Select the section “Serial Communication” and check for the correct settings of serial communication parameters. Please do also check the physical connection between your PC and the startWARE board. Choose settings as given in the example below. First select the COM port of your PC that you are using for connection to the startWARE board (i.e. COM1). Communication speed on the startWARE board can be set using DIP-switch SW3, S7. Set SW3, S7 to position “ON” to select 38400 bps in the “PLL Mode” (You may also select 115200 bps by setting SW3, S7 to position ”OFF” – in this case make sure that you have selected 115200 bps in the “Serial Communication” section of IAR settings too). For details of the startWARE configuration please refer to chapter 3, “startWARE components” in this manual.

38 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

Figure 4-6: Serial communications parameter setting

User’s Manual U15893EE1V0UM00 39 Chapter 4 startWARE Operation

Next the correct linker file for the “samplesession” project must be set. This can be done in the XLINK category as shown below:

Figure 4-7: Selecting the linker command file

Click the checkbox that is called “Override default” in the XCL file name section and locate the linker command file “lnk850eia1.xcl” from the folder “tutor”. This file is used by the linker and contains information on where to place the different sections of code and data that may be used in your project.

40 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

For easier localisation of the linker control file you may enter the IAR System Variable “$PROJ_DIR$” that contains the path to the actual project directory and add “\lnk850eia1.xcl” to complete the full term of the linker command file.

After everything has been setup correctly it’s time to compile and link the demonstration project. Close the Options menu and select “Build All” from the “Project” menu as shown here:

Figure 4-8: Compiling and linking a project using the “Build All” option

User’s Manual U15893EE1V0UM00 41 Chapter 4 startWARE Operation

If the project is compiled and linked without errors or warnings it can be downloaded to the startWARE board and executed. To debug the test program, C-SPY debugger is invoked by selecting the option

“Debugger” from the “Project” menu or by pressing the ( ) “Debugger” button.

Figure 4-9: Starting the C-SPY debugger

42 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

Chapter 4 startWARE Operation

The debugger starts and the file “samplesession” is downloaded to the startWARE board. Progress of downloading is indicated by blue dots in the ROM-Monitor window.

Figure 4-10: Downloading a program to the target

User’s Manual U15893EE1V0UM00 43 Chapter 4 startWARE Operation

After download is completed a screen similar to the one shown below should appear. If any window is not shown please open the “Source” window by double clicking the file called ‘samplesession.c’. The “Disassembly”, “Watch”, “Locals”, “Terminal I/O” and “Log” windows you can select from the pull down menu “View”.

Figure 4-11: C-SPY windows

General status information of the debugger is output in the “Log” window. In this case C-SPY should report that the download has been completed successfully. The source window shows the C source code of the program “samplesession.c” and any output from your program using printf() functions etc. is directed to the “Terminal I/O” window. This will be demonstrated shortly. Data can also be input using this window.

44 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

As one function of the debugger it is possible to set breakpoints in a program. First, maximise the “Source” window to get a better overview of the program source code. Then click at the “printf()” function in main(). Next set a breakpoint either by pressing the right mouse button and select the item “Toggle Breakpoint”. A breakpoint can also be set by pressing “F9” or by selecting the option “Toggle Breakpoint” from the “Edit” menu. The “printf()” instruction becomes highlighted red and marked with a red cross, to show that a breakpoint has been set here.

Figure 4-12: Setting a breakpoint

User’s Manual U15893EE1V0UM00 45 Chapter 4 startWARE Operation

Start the program by either pressing the ( ) “Go” button or by selecting the option “Go” from the “Debug” menu or by pressing “F5”. The program will be executed from the start and will stop at the breakpoint that you have just set.

Figure 4-13: Program stopped at breakpoint

46 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

Next bring the “Terminal I/O” window to the front too and position it next to the “Source” window.

Figure 4-14: Single stepping through instructions and terminal output

Now execute a single program step either by clicking the ( ) “Step Over” button on top of the C-SPY screen, by selecting the option “Step Over” from the “Debug” menu or by pressing “F10”. Watch the “Terminal I/O” window to see how the printf() function is executed.

User’s Manual U15893EE1V0UM00 47 Chapter 4 startWARE Operation

Reset the program by selecting the option “Reset” from the “Debug” menu or by clicking the ( ) “Reset” button and execute the program in single steps. As you will notice the functions “port_init()”, “timer30_init()” and “wait()” are treated as a single instruction. To step into the function and execute the function “wait()” in single steps too do the following: Press the ( ) “Reset” button to reset the program again. Then single step until “wait()” becomes highlighted.

Figure 4-15: Stepping into a function

48 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

Now you can either press “F11”, click the ( ) “Step Into” button or select the option “Step Into” from the “Debug” menu. Continue single stepping through the function.

Figure 4-16: Single stepping through a function

User’s Manual U15893EE1V0UM00 49 Chapter 4 startWARE Operation

If you wish to display the assembler code that the and linker have generated from your C source code you can do this by selecting the “Disassembly” window from the pull down menu “View”. This opens the “Disassembly” window were C source and assembler code is displayed. It is now possible to single step through the assembler instructions of the program. You can leave this assembler instruction mode by selecting the “samplesession” source window again or closing the “Disassembly” window.

Figure 4-17: Displaying assembler lines and C source

50 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

Further functions of the debugger include displaying the contents of the 32 general purpose registers and the system registers of the micro controller. This can be done by selecting the “Register” window from the pull down menu “View”.

Figure 4-18: Displaying register contents

User’s Manual U15893EE1V0UM00 51 Chapter 4 startWARE Operation

Variables and their values can also be displayed in the debugger window. To do so, select the “Watch” window from the pull down menu “View”.

Figure 4-19: Watch window

52 User’s Manual U15893EE1V0UM00 Chapter 4 startWARE Operation

To view a variable, in this example the structure “clock”, type in the structure name “clock” in the “Watch” window. Now click on the little ‘+’ sign next to the expression “clock” to show the members of this structure.

Figure 4-20: Viewing variables in the watch window

User’s Manual U15893EE1V0UM00 53 Chapter 4 startWARE Operation

4.3 IAR ROM-monitor resources

The ROM monitor program is contained in the internal flash area of the V850E/IA1 microcontroller of the startWARE. It uses the following resources for its own functions. These resources should therefore not be used by the applications running on the startWARE in order not to disturb correct functionality of the ROM-monitor.

Resources used by ROM-monitor:

• Serial Interface UART0 is used for communication between ROM monitor and Host PC.

• NMI is used for communication between ROM-monitor and Host PC.

• Internal flash contains the ROM-monitor software and the ROM based interrupt table. Although not all of this space is used, the lower 128 KB of internal flash-memory are reserved for internal purposes.

• External RAM: A small part of the external RAM is used for ROM-monitor internal variables and for redirection of the interrupt table. RAM addresses 0x101000 to 0x17ffff can be used for user applications.

54 User’s Manual U15893EE1V0UM00 Chapter 5 Connectors and Cables

5.1 Power supply jack

The specifications of the power supply jack are listed below:

Figure 5-1: Power supply jack

+ _

Power supply specification:

Voltage: 15 V Current: Max. 1 A Compatible plug: Texas Adapter 10.55.44

Caution: Connect only the provided AC adapter to the power supply!

User’s Manual U15893EE1V0UM00 55 Chapter 5 Connectors and Cables

5.2 Serial host connector

Figure 5-2: Target cable 2

1 6 1 6

5 9 5 9

Table 5-1: Serial host connector

RS232 Signal on RS232 Signal on Pin startWARE Pin startWARE PC side 1 P37 DSR 1 DTR 2 RXD0 RXD 2 TXD 3 TXD0 TXD 3 RXD 4 P35 DTR 4 DSR 5 GND GND 5 GND 6 P37 DSR 6 --- 7P34RTS 7 CTS 8P36CTS 8 RTS 9 ------9 ---

56 User’s Manual U15893EE1V0UM00 Chapter 5 Connectors and Cables

5.3 Connector CN1, V850E/IA1 Pins 1-36

Table 5-2: Connector CN1, V850E/IA1 Pins 1–36

ANI07 1 2 AVDD

AVSS 34 AVREF1 ANI10 5 6 ANI11 ANI12 7 8 ANI13 ANI14 9 10 ANI15 ANI16 11 12 ANI17 TRIG_DBG 13 14 AD3_DBG AD2_DBG 15 16 AD1_DBG AD0_DBG 17 18 SYNC CLK_DBG 19 20 RESET

CVDD 21 22 CVSS X1 23 24 CKSEL 25 26 MODE0 MODE1 27 28 MODE2 SI0 / P40 29 30 SO0 / P41 SCK0 / P42 31 32 SI1 / P43 SO1 / P44 33 34 SCK1 / P45 CRXD / P46 35 36 CTXD / P47

User’s Manual U15893EE1V0UM00 57 Chapter 5 Connectors and Cables

5.4 Connector CN2, V850E/IA1 Pins 37–72

Table 5-3: Connector CN2, V850E/IA1 Pins 37 – 72

RXD0 / P30 37 38 TXD0 / P31 RXD1 / P32 39 40 TXD1 / P33 ASCK1 / P34 41 42 RXD2 / P35 TXD2 / P36 43 44 ASCK2 / P37 TI2 / INTP20 / P20 45 46 TO21 / INTP21 / P21 TO22 / INTP22 / P22 47 48 TO23 / INTP23 / P23 TO24 / INTP24 / P24 49 50 TCLR2 / INTP25 / P25 TI3 / INTP30 / TCLR3 / P26 51 52 TO3 / INTP31 / P27

VDD3 53 54 VSS3

VSS5 55 56 VDD5 AD0 / PDL0 57 58 AD1 / PDL1 AD2 / PDL2 59 60 AD3 / PDL3 AD4 / PDL4 61 62 AD5 / PDL5 AD6 / PDL6 63 64 AD7 / PDL7 AD8 / PDL8 65 66 AD9 / PDL9 AD10 / PDL10 67 68 AD11 / PDL11 AD12 / PDL12 69 70 AD13 / PDL13 AD14 / PDL14 71 72 AD15 / PDL15

58 User’s Manual U15893EE1V0UM00 Chapter 5 Connectors and Cables

5.5 Connector CN3, V850E/IA1 Pins 73–108

Table 5-4: Connector CN3, V850E/IA1 Pins 73 – 108

A16 / PDH0 73 74 A17 / PDH1 A18 / PDH2 75 76 A19 / PDH3 A20 / PDH4 77 78 A21 / PDH5 A22 / PDH6 79 80 A23 / PDH7 CS0 / PCS0 81 82 CS1 / PCS1 CS2 / PCS2 83 84 CS3 / PCS3 CS4 / PCS4 85 86 CS5 / PCS5 CS6 / PCS6 87 88 CS7 / PCS7

VPP 89 90 VSS5

VDD5 91 92 LWR / PCT0 UWR / PCT1 93 94 PCT2 PCT3 95 96 RD / PCT4 PCT5 97 98 ASTB / PCT6 PCT7 99 100 WAIT / PCM0 CLKOUT / PCM1 101 102 HLDAK / PCM2 HLDRQ / PCM3 103 104 PCM4 TIUD10 / TO10 / P10 105 106 TCUD10 / INTP100 / P11 TCLR10 / INTP101 / P12 107 108 TIUD11 / TO11 / P13

User’s Manual U15893EE1V0UM00 59 Chapter 5 Connectors and Cables

5.6 Connector CN4, V850E/IA1 Pins 109–144

Table 5-5: Connector CN4, V850E/IA1 Pins 109 – 144

TCUD11 / INTP110 / P14 109 110 TCLR11 / INTP111 / P15 NMI / P00 111 112 ESO0 / INTP0 / P01 ESO1 / INTP1 / P02 113 114 ADTRG0 / INTP2 / P03 ADTRG1 / INTP3 / P04 115 116 INTP4 / P05 INTP5 / P06 117 118 INTP6 / P07 TO000 119 120 TO001 TO002 121 122 TO003 TO004 123 124 TO005

VDD5 125 126 VSS5

VSS3 127 128 VDD3 TO010 129 130 TO011 TO012 131 132 TO013 TO014 133 134 TO015

AVDD 135 136 AVSS

AVREF0 137 138 ANI00 ANI01 139 140 ANI02 ANI03 141 142 ANI04 ANI05 143 144 ANI06

60 User’s Manual U15893EE1V0UM00 Chapter 5 Connectors and Cables

5.7 Connector CN5, Motor-control-connector

Table 5-6: Connector CN5, Motor-control-connector

ANI13 1 2 ANI12 ANI11 3 4 ANI10 Ground 5 6 ANI03 ANI02 7 8 ANI01

ANI00 9 10 AVREF0 / AVREF1

Ground 11 12 AVDD0 / AVDD0 TO015 13 14 TO014 TO013 15 16 TO016 TO017 17 18 TO018 Ground 19 20 Ground

VDD5 21 22 VDD5 TO005 23 24 TO004 TO003 25 26 TO002 TO001 27 28 TO000 Ground 29 30 Ground ADTRG1 / INTP3 / P04 31 32 ADTRG0 / INTP2 / P03 ESO1 / INTP1 / P02 33 34 ESO0 / INTP0 / P01 TCLR11 / INTP111 / P15 35 36 TCUD11 / INTP110 / P14 TIUD11 / TO11 / P13 37 38 TCLR10 / INTP101 / P12 TCUD10 / INTP100 / P11 39 40 TIUD10 / TO10 / P10

5.8 Connector CN6, flashMASTER connector

Table 5-7: Connector CN6, flashMASTER connector

Ground 1 2 RESET

SO0 / P41 3 4 VDD5

SI0 / P40 5 6 VPP SCK0 / P42 7 8 910

User’s Manual U15893EE1V0UM00 61 [MEMO]

62 User’s Manual U15893EE1V0UM00 Chapter 6 Schematics

Figure 6-1: startWARE schematics 1

User’s Manual U15893EE1V0UM00 63 Chapter 6 Schematics

Figure 6-2: startWARE schematics 2

64 User’s Manual U15893EE1V0UM00 Chapter 6 Schematics

Chapter 6 Schematics

Figure 6-3: startWARE schematics 3

User’s Manual U15893EE1V0UM00 65 Chapter 6 Schematics

Figure 6-4: startWARE schematics 4

66 User’s Manual U15893EE1V0UM00 Chapter 6 Schematics

Figure 6-5: startWARE schematics 5

User’s Manual U15893EE1V0UM00 67 [MEMO]

68 User’s Manual U15893EE1V0UM00 Although NEC has taken all possible steps Facsimile Message to ensure that the documentation supplied to our customers is complete, bug free From: and up-to-date, we readily accept that errors may occur. Despite all the care and precautions we've taken, you may Name encounter problems in the documentation. Please complete this form whenever Company you'd like to report errors or suggest improvements to us.

Tel. FAX

Address Thank you for your kind support.

North America Hong Kong, Philippines, Oceania Asian Nations except Philippines NEC Electronics Inc. NEC Electronics Hong Kong Ltd. NEC Electronics Singapore Pte. Ltd. Corporate Communications Dept. Fax: +852-2886-9022/9044 Fax: +65-250-3583 Fax: +1-800-729-9288 +1-408-588-6130 Korea Europe Japan NEC Electronics Hong Kong Ltd. NEC Electronics (Europe) GmbH NEC Semiconductor Technical Hotline Seoul Branch Market Communication Dept. Fax: +81- 44-435-9608 Fax: +82-2-528-4411 Fax: +49-211-6503-274 South America Taiwan NEC do Brasil S.A. NEC Electronics Taiwan Ltd. Fax: +55-11-6462-6829 Fax: +886-2-2719-5951

I would like to report the following error/make the following suggestion:

Document title:

Document number: Page number:

If possible, please fax the referenced page or drawing.

Document Rating Excellent Good Acceptable Poor Clarity Technical Accuracy Organization

CS 01.2