Renesas SH2/7137 User Manual

Loading...

REG10J0109-0100

Renesas Starter Kit for SH2/7137

User’s Manual

RENESAS SINGLE-CHIP MICROCOMPUTER

SH2 FAMILY

Rev.1.00

Renesas Technology Europe Ltd.

Revision date: 14.FEB.2008

www.renesas.com

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

Chapter 4. Board Layout

4.1. Component Layout

The following diagram shows top layer component layout of the board.

 

 

 

Application board interface

 

 

 

 

 

Reset switch

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

JA5

 

 

 

 

JA1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LCD Display

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

RS232 Serial

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

LCD

 

 

 

 

 

 

 

 

 

 

 

 

 

J7

 

 

 

 

 

 

 

 

 

 

 

 

 

Power

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Power LED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CAN

 

 

 

 

 

 

 

 

 

J3

 

 

 

 

 

 

JA3

 

 

 

 

 

 

 

 

 

 

 

E8A Header

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Microcontroller

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

J4

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MCU

 

 

 

 

J2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

pin headers

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

E10A Header

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

J1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

User LEDs

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Boot LED

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

JA6

 

 

 

 

JA2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Application board interface

 

 

 

 

Potentiometer

 

 

User switches

 

 

 

 

 

 

 

 

 

 

 

Figure 4-1: Board Layout

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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

Renesas SH2/7137 User Manual

Chapter 5. Block Diagram

Figure 5-1 shows the CPU board components and their connectivity.

Figure 5-1: Block Diagram

Figure 5-2 shows the connections to the RSK.

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.

IRQ0, Pin 46

 

The switch is also used in conjunction with the RES switch to place the device in

(Port B pin 2)

 

BOOT mode when not using the E10A debugger.

 

 

 

 

SW2*

Connects to an IRQ line for user controls.

IRQ1, Pin 45

 

 

(Port B, pin 3)

 

 

 

SW3*

Connects to the ADC trigger input. Option link allows connection to IRQ line.

IRQ2, Pin 44

 

The option is a pair of 0R links. For more details on option links, please refer

(Port B, pin 4)

 

to Sec 6.6.

 

 

 

 

 

Table 6-1: Switch Functions

 

*Refer to schematic for detailed connectivity information.

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

 

Colour

Microcontroller Port Pin

Microcontroller

shown on silkscreen)

 

 

 

Pin Number

LED0

Green

 

Port D0

40

 

 

 

 

 

LED1

Orange

 

Port D1

38

 

 

 

 

 

LED2

Red

 

Port D2

37

 

 

 

 

 

LED3

Red

 

Port D3

35

 

 

 

 

 

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

Fit for RS232

 

Remove for RS232

 

 

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.

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

Header Pins

 

 

Number

 

CTx0

Transmit data input

42

J2-12

 

 

 

 

CRx0

Receive data output; reads out data

41

J2-11

 

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

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

LCD

Pin

Circuit Net Name

Device

Pin

Circuit Net Name

Device

 

 

Pin

 

 

Pin

1

Ground

-

2

5V Only

-

3

No Connection

-

4

DLCDRS (PD10)

28

5

R/W (Wired to Write only)

-

6

DLCDE + 100k pull down to ground (PD9)

29

7

No Connection

-

8

No connection

-

9

No Connection

-

10

No connection

-

11

DLCDD4 (PE0)

27

12

DLCDD5 (PE1)

26

13

DLCDD6 (PE2)

25

14

DLCDD7 (PE3)

24

 

 

 

 

 

 

Table 6-5 Debug LCD Module Connections

11

+ 25 hidden pages