Renesas SH2-7137 User Manual

To our customers,
Old Company Name in Catalogs and Other Documents
On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took over all the business of both companies. Therefore, although the old company name remains in this document, it is a valid Renesas Electronics document. We appreciate your understanding.
Renesas Electronics website: http://www.renesas.com
April 1 Renesas Electronics Corporation
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
st
, 2010
Send any inquiries to http://www.renesas.com/inquiry
.
Notice
1. All information included in this document is current as of the date this document is issued. Such information, however, is
subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please confirm the latest product information with a Renesas Electronics sales office. Also, please pay regular and careful attention to additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website.
2. Renesas 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 Renesas Electronics products or technical information described in this document. No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of Renesas Electronics or others.
3. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part.
4. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of
semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software, and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits, software, or information.
5. When exporting the products or technology described in this document, you should comply with the applicable export control
laws and regulations and follow the procedures required by such laws and regulations. You should not use Renesas Electronics products or the technology described in this document for any purpose relating to military applications or use by the military, including but not limited to the development of weapons of mass destruction. Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations.
6. Renesas Electronics has used reasonable care in preparing the information included in this document, but Renesas Electronics
does not warrant that such informatio n is error free. Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein.
7. Renesas Electronics products are classified according to the following three quality grades: “Standard”, “High Quality”, and
“Specific”. The recommended applications for each Renesas Electronics product depends on the product’s quality grade, as indicated below. You must check the quality grade of each Renesas Electronics product before using it in a particular application. You may not use any Renesas Electronics product for any application categorized as “Specific” without the prior written consent of Renesas Electronics. Further, you may not use any Renesas Electronics product for any application for which it is not intended without the prior written consent of Renesas Electronics. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an application categorized as “Specific” or for which the product is not intended where you have failed to obtain the prior written consent of Renesas Electronics. The quality grade of each Renesas Electronics product is “Standard” unless otherwise expressly specified in a Ren esas E lectronics data sheets or dat a books, etc.
“Standard”: Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
equipment; home electron ic appliances; machine tools; personal electronic equipment; and industrial robots.
“High Quality”: 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; medical equipment or
systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare intervention (e.g. excision, etc.), and any other appl i cations or purposes that pose a d irect threat to human life.
8. You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics,
especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges.
9. Although Renesas Electronics endeavors to improve the quality and reliability of its products, semiconductor products have
specific characteristics such as t he occu rrence o f failure at a certai n rate an d malfunct io ns under cert ain u se con dition s. Further, Renesas Electronics prod ucts are not subject to radiation resistance design. Please be sure to implement safety measures to guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. Because the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system manufactured by you.
10. Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental
compatibility of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS Directive. Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations.
11. This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of Renesas
Electronics.
12. Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this
document or Renesas Electronics products, or if you have any other inquiries.
(Note 1) “Renesas Electronics” as used in this document means Renesas Electronics Corporation an d also includes its majority-
owned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
User’s Manual
Renesas Starter Kit for SH2/7137
User’s Manual
RENESAS SINGLE-CHIP MICROCOMPUTER SH2 FAMILY
Rev.1.00 2008.02
Table of Contents
Chapter 1. Preface ....................................................................................................................................................................................... 3
Chapter 2. Purpose ...................................................................................................................................................................................... 4
Chapter 3. Power Supply .............................................................................................................................................................................. 5
3.1. Requirements .................................................................................................................................................................................... 5
3.2. Power – Up Behaviour ...................................................................................................................................................................... 5
Chapter 4. Board Layout .............................................................................................................................................................................. 6
4.1. Component Layout ............................................................................................................................................................................ 6
4.2. Board Dimensions ............................................................................................................................................................................. 7
Chapter 5. Block Diagram ............................................................................................................................................................................ 8
Chapter 6. User Circuitry .............................................................................................................................................................................. 9
6.1. Switches ............................................................................................................................................................................................ 9
6.2. LEDs ................................................................................................................................................................................................. 9
6.3. Potentiometer .................................................................................................................................................................................... 9
6.4. Serial port .......................................................................................................................................................................................... 9
6.5. RCAN-ET ........................................................................................................................................................................................ 10
6.6. Debug LCD Module ......................................................................................................................................................................... 10
6.7. Option Links .................................................................................................................................................................................... 12
6.8. Oscillator Sources ........................................................................................................................................................................... 20
6.9. Reset Circuit .................................................................................................................................................................................... 20
Chapter 7. Modes ....................................................................................................................................................................................... 21
7.1. Boot mode ....................................................................................................................................................................................... 21
7.2. User Boot mode .............................................................................................................................................................................. 21
7.3. User Program mode ........................................................................................................................................................................ 21
7.4. Single chip mode ............................................................................................................................................................................. 21
7.5. MCU extension mode 0 ................................................................................................................................................................... 22
7.6. MCU extension mode 2 ................................................................................................................................................................... 22
Chapter 8. Programming Methods ............................................................................................................................................................. 23
Chapter 9. Headers .................................................................................................................................................................................... 24
9.1. Microcontroller Headers .................................................................................................................................................................. 24
9.2. Application Headers ........................................................................................................................................................................ 27
Chapter 10. Code Development ................................................................................................................................................................. 31
10.1. Overview ....................................................................................................................................................................................... 31
10.2. Compiler Restrictions .................................................................................................................................................................... 31
10.3. Mode Support ................................................................................................................................................................................ 31
10.4. Breakpoint Support ....................................................................................................................................................................... 31
10.5. Memory Map ................................................................................................................................................................................. 32
Chapter 11. Component Placement ........................................................................................................................................................... 33
Chapter 12. Additional Information ............................................................................................................................................................. 34
ii

Chapter 1. Preface

Cautions
This document may be, wholly or partially, subject to change without notice. All rights reserved. Duplication of this document, either in whole or part is prohibited without the written permission of Renesas
Technology Europe Limited.
Trademarks
All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or organisations.
Copyright
© Renesas Technology Europe Ltd. 2008. All rights reserved. © Renesas Technology Corporation. 2008. All rights reserved. © Renesas Solutions Corporation. 2008. All rights reserved. Website: http://www.eu.renesas.com/
Glossary
CPU Central Processing Unit HEW High-performance Embedded Workshop LED Light Emitting Diode RSK Renesas Starter Kit PC Program Counter E10A On-chip debugger module for starter kits LCD Liquid Crystal Display RCAN Renesas Controller Area Network
3

Chapter 2. Purpose

This RSK is an evaluation tool for Renesas microcontrollers. This manual describes the technical details of the RSK hardware. The Quick Start Guide and Tutorial Manual provide details of the
software installation and debugging environment. Features include:
Renesas Microcontroller Programming.
User Code Debugging.
User Circuitry such as Switches, LEDs and potentiometer.
User or Example Application.
Sample peripheral device initialisation code.
The RSK board contains all the circuitry required for microcontroller operation.
4

Chapter 3. Power Supply

3.1. Requirements

This RSK operates from a 5V power supply. A diode provides reverse polarity protection only if a current limiting power supply is used. All RSK boards are supplied with an E10A debugger. All RSK boards have an optional centre positive supply connector using a 2.0mm barrel power jack.
Warning
The RSK is neither under nor over voltage protected. Use a centre positive supply for this board.

3.2. Power – Up Behaviour

When the RSK is purchased the RSK board has the ‘Release’ or stand alone code from the example tutorial code pre-programmed into the Renesas microcontroller. On powering up the board the user LEDs will start to flash. After 200 flashes, or after pressing a switch the LEDs will flash at a rate controlled by the potentiometer.
5
App
p
App
Chapt
er 4. Board Layout

4.1. Component Layout

The following diagram shows top layer component layout of the board.
lication board interface
LCD Display
CAN
Microcontroller
in headers
LCD
JA5
J4
MCU
JA1
J3
Reset switch
RS232 Serial
Power
Power LED
E8A Header
JA3
J2
E10A Header
J1
JA6
lication board interface
Figure 4-1: Board Layout
JA2
Potentiometer
User switches
User LEDs
Boot LED
6

4.2. Board Dimensions

The following diagram gives the board dimensions and connector positions. All through hole connectors are on a common 0.1” grid for easy interfacing.
Figure 4-2: Board Dimensions
7

Chapter 5. Block Diagram

Figure 5-1 shows the CPU board components and their connectivity.
Figure 5-2 shows the connections to the RSK.
Figure 5-1: Block Diagram
Figure 5-2: RSK Connections
8

Chapter 6. User Circuitry

6.1. Switches

There are four switches located on the CPU board. The function of each switch and its connection are shown in Table 6-1.
Switch Function Microcontroller
RES When pressed, the RSK microcontroller is reset. RESn, Pin 70(*) SW1/BOOT* Connects to an IRQ input for user controls.
The switch is also used in conjunction with the RES switch to place the device in BOOT mode when not using the E10A debugger.
SW2* Connects to an IRQ line for user controls. IRQ1, Pin 45
SW3* Connects to the ADC trigger input. Option link allows connection to IRQ line.
The option is a pair of 0R links. For more details on option links, please refer to Sec 6.6.
*Refer to schematic for detailed connectivity information.
Table 6-1: Switch Functions
IRQ0, Pin 46
(Port B pin 2)
(Port B, pin 3) IRQ2, Pin 44 (Port B, pin 4)

6.2. LEDs

There are six LEDs on the RSK board. The green ‘POWER’ LED lights when the board is powered. The orange BOOT LED indicates the device is in BOOT mode when lit. The four user LEDs are connected to an IO port and will light when their corresponding port pin is set low.
Table 6-2, below, shows the LED pin references and their corresponding microcontroller port pin connections.
LED Reference (As
shown on silkscreen)
LED0 Green Port D0 40 LED1 Orange Port D1 38 LED2 Red Port D2 37 LED3 Red Port D3 35
Colour Microcontroller Port Pin Microcontroller
Pin Number
Table 6-2: LED Port

6.3. Potentiometer

A single turn potentiometer is connected to channel AN8 (PF8) of the microcontroller. This may be used to vary the input analogue voltage value to this pin between AVCC and Ground.

6.4. Serial port

Serial port SCI2 is connected to the standard RS232 header. Serial port SCI0 can optionally be connected to the RS232 header. The connections to be fitted are listed in the Table 6-3.
9
Description Function Microcontroller
Port Pin
SCI2 Default serial port 58 R30 R53 SCI2 Default serial port 60 R39 R54 SCI0 Spare Serial Port 68 R53 R30 SCI0 Spare Serial Port 69 R54 R39
Table 6-3: Serial Port settings
The SCI2 port is also available on J3 and JA6. The SCI0 port is available on J3 and JA2.
Fit for RS232 Remove for RS232

6.5. RCAN-ET

The RCAN module can be used for RCAN communication. Table 6-4 contains details of the signal descriptions and pin connections.
Description Function Microcontroller Pin
Number
CTx0 Transmit data input 42 J2-12
Header Pins
CRx0 Receive data output; reads out data
from the bus lines CAN_EN Enable control input 49 J2-19 CAN_ERRn Error and power-on indication output 63 J3-13 CAN_STBn Standby control input 43 J2-13
Table 6-4: CAN module settings
41 J2-11

6.6. Debug LCD Module

A debug LCD module is supplied to be connected to the connector LCD. This should be fitted so that the debug LCD module lies over J3. Care should be taken to ensure the pins are inserted correctly into LCD. The debug LCD module uses a 4 bit interface to reduce the pin allocation. No contrast control is provided; this is set by a resistor on the supplied display module. The module supplied with the RSK only supports 5V operation.
Table 6-5 shows the pin allocation and signal names used on this connector.
10
Loading...
+ 26 hidden pages