REG10J0049-0200
Renesas Starter Kit for R8C/2D
User’s Manual
RENESAS SINGLE-CHIP MICROCOMPUTER
M16C FAMILY / R8C/Tiny SERIES
Rev.2.00 Renesas Solutions Corp.
Revision date: 12.OCT.2007 www.renesas.com
i
Table of Contents
Chapter 1. Preface..................................................................................................................................................1
Chapter 2. Purpose.................................................................................................................................................2
Chapter 3. Power Supply........................................................................................................................................3
3.1. Requirements...............................................................................................................................................3
3.2. Power – Up Behaviour .................................................................................................................................3
Chapter 4. Board Layout.........................................................................................................................................4
4.1. Component Layout.......................................................................................................................................4
4.2. Board Dimensions........................................................................................................................................5
Chapter 5. Block Diagram.......................................................................................................................................6
Chapter 6. User Circuitry.........................................................................................................................................7
6.1. Switches.......................................................................................................................................................7
6.2. LEDs.............................................................................................................................................................7
6.3. Potentiometer...............................................................................................................................................7
6.4. Serial port.....................................................................................................................................................8
6.5. LCD Module..................................................................................................................................................8
6.6. Option Links..................................................................................................................................................9
6.7. Oscillator Sources ......................................................................................................................................11
6.8. Reset Circuit...............................................................................................................................................11
6.9. LIN Interface...............................................................................................................................................12
Chapter 7. Modes..................................................................................................................................................13
7.1. Boot mode..................................................................................................................................................13
7.2. Single chip mode........................................................................................................................................13
Chapter 8. Programming Methods........................................................................................................................14
Chapter 9. Headers...............................................................................................................................................15
9.1. Microcontroller Headers.............................................................................................................................15
9.2. Application Headers ...................................................................................................................................17
Chapter 10. Code Development ...........................................................................................................................20
10.1. Overview...................................................................................................................................................20
10.2. Mode Support...........................................................................................................................................20
10.3. Breakpoint Support...................................................................................................................................20
10.4. Memory Map.............................................................................................................................................21
Chapter 11. Component Placement......................................................................................................................22
Chapter 12. Additional Information........................................................................................................................23
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
Solutions Corporation.
Trademarks
All brand or product names used in this manual are trademarks or registered trademarks of their respective companies or
organisations.
Copyright
© Renesas Solutions Corp. 2007. All rights reserved.
© Renesas Technology Europe Ltd. 2007. All rights reserved.
© Renesas Technology Corp. 2007. All rights reserved.
Website:
Glossary
CPU Central Processing Unit PC Program Counter
HEW High-performance Embedded Workshop RSK Renesas Starter Kit
LCD Liquid Crystal Display LED Light Emitting Diode
LIN Local Interconnect Network
E8a E8a Debug module CD Compact Disc
http://www.renesas.eu (Europe)
http://www.renesas.com (Global)
1
Chapter 2. Purpose
This Renesas Starter Kit is an evaluation tool for Renesas microcontrollers.
Features include:
• Renesas Microcontroller Programming.
• User Code Debugging.
• User Circuitry such as Switches, LEDs and potentiometer(s).
• User or Example Application.
• Sample peripheral device initialisation code.
The Renesas Starter Kit board contains all the circuitry required for microcontroller operation.
2
Chapter 3. Power Supply
3.1. Requirements
This Renesas Starter Kit operates from a 3V to 5V power supply.
A diode provides reverse polarity protection only if a current limiting power supply is used.
All Renesas Starter Kit boards are supplied with an E8a debugger. This product is able to power the Renesas Starter Kit board with up to
300mA. When the Renesas Starter Kit is connected to another system then that system should supply power to the Renesas Starter Kit.
All Renesas Starter Kit boards have an optional centre positive supply connector using a 2.1mm barrel power jack.
Warning
The Renesas Starter Kit is neither under nor over voltage protected. Use a centre positive supply for this board.
3.2. Power – Up Behaviour
When the Renesas Starter Kit is purchased the Renesas Starter Kit 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.
3
Chapter 4. Board Layout
4.1. Component Layout
The following diagram shows the top layer component layout of the board.
LCD Display
Microcontroller Pin Headers
(J1 to J4)
pplication Board Interface
JA5 JA1
MCU
JA6
pplication Board Interface
JA2
Reset Switch
RS232 Serial
Powe
Power LED
E8 Header
User LED
Power Connecto
for LIN
LIN Connecto
Boot LED
User/Boot Switch
User Switches
Potentiometer
Figure 4-1: Board Layout
4
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.
120.00mm
115.00mm
86.36mm
Short Board = 85 mm
50.80 mm
43.18 mm
35.56 mm
27.00mm
Corners x4
3mm radius
SW1SW2SW
L
I
N
E8
Serial D9
SKT
45.00mm
RV1
(POT)
3
JA2 JA6
Applies to connector
J4 -
with micriocontroller pin1
J1
MC
U
J3
RING
100.00mm
85.00mm
J2
R
E
S
5.00mm
JA1
JA5
14.00mm
3.81mm
Figure 4-2 : Board Dimensions
5
Chapter 5. Block Diagram
Figure 5-1 is representative of the CPU board components and their connectivity.
Power Jack Option
Application Board
Interface
Microcontroller Pin
Headers
E8
LIN Connector,
Power Connector for LIN
Serial Connector Option
Potentiometer
Boot mode pins
RESET pin
Microcontroller
IRQ pins
I/OADC Input
LCD Display
Data x4
Control x2
Figure 5-1: Block Diagram
Figure 5-2 is representative of the connections required to the Renesas Starter Kit.
SW2SW3
Switches
User LED x4
1Green, 1Orange, 2Red
LEDs
BOOT
Circuitry
D-type
SW1
BOOT
Latch
RES
POWER: Green
BOOT: Orange
Figure 5-2 : Renesas Starter Kit Connections
6
Chapter 6. User Circuitry
6.1. Switches
There are four switches located on the board. The function of each switch and its connection are shown in Table 6-1.
Switch Function Microcontroller
RES When pressed, the board microcontroller is reset. RESETn Pin9
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 E8A debugger.
SW2* Connects to an IRQ Interrupt input line for user controls. INT1n Pin52
SW3* Connects to a Key In Interrupt input line for user controls INT2n Pin53
Table 6-1: Switch Functions
*Refer to schematic for detailed connectivity information.
INT0n Pin44
(Port 4, pin 5)
(Port 3, pin 6)
(Port 3, pin 2)
6.2. LEDs
There are six LEDs on the CPU 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 6.0 43
LED1 Orange Port 6.1 72
LED2 Red Port 6.2 71
LED3 Red Port 3.3 1
Colour Microcontroller Port Pin function Microcontroller Pin
Number
Table 6-2: LED Port
6.3. Potentiometer
A single turn potentiometer is connected to AN8 (P1.0) of the microcontroller. This may be used to vary the input analog voltage value to
this pin between VREF and Ground.
7