REJ10J1242-0200
Renesas Starter Kit for R8C/25
User’s Manual
RENESAS SINGLE-CHIP MICROCOMPUTER
M16C FAMILY / R8C/Tiny SERIES
Rev.2.00
Revision date: 15.OCT.2007
Renesas Solutions Corp.
i
Download from Www.Somanuals.com. All Manuals Search And Download.
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 Corp.
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
HEW
LED
PC
Central Processing Unit
High-performance Embedded Workshop
Light Emitting Diode
RTE
RSO
RSK
Renesas Technology Europe Ltd.
Renesas Solutions Organisation.
Renesas Starter Kit
Program Counter
1
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter 2. Purpose
This RSK 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 RSK board contains all the circuitry required for microcontroller operation.
2
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter 3. Power Supply
3.1. Requirements
This RSK operates from a 3V to 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 E8a debugger module. This product is able to power the RSK board with up to 300mA. When the RSK
is connected to another system then that system should supply power to the RSK.
All RSK boards have an optional centre positive supply connector using a 2.1mm 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.
3
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter 4. Board Layout
4.1. Component Layout
The following diagram shows the top layer component layout of the board.
Application Board Interface
Reset Switch
JA1
RS232 Serial
Power
LCD Display
Power LED
Microcontroller Pin Headers
(J1 to J4)
E8 Header
User LED
MCU
Power Connector
for LIN
LIN Connector
Boot LED
JA2
User/Boot Switch
Application Board Interface
User Switches
Potentiometer
Figure 4-1: Board Layout
4
Download from Www.Somanuals.com. All Manuals Search And Download.
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.
45.00mm
JA1
14.00mm
MCU
JA2
27.00mm
50.80mm
80.00mm
85.00mm
Figure 4-2 : Board Dimensions
5
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter 5. Block Diagram
Figure 5-1 is representative of the CPU board components and their connectivity.
P ower J ack Option
BOOT
Application Board
Inter fac e
Bootmode pins
Circuitry
Microcontroller Pin
Headers
D-type
Latch
RESET pin
Microcontroller
E8
IRQ pins
I/O
LIN Connector,
Power Connector for LIN
ADC Input
SerialConnector Option
SW1
BOOT
SW3 SW2
Switches
RES
LCD Display
POWER: Green
BOOT: Orange
Potentimeter
Data x4
Control x2
User LED x4
1Green, 1Orage, 2Red
LEDs
Figure 5-1: Block Diagram
USB Cable
Host PC
E8a module
User Interface Cable
Pin 1
E8
MCU
CPU Board
Figure 5-2 : RSK Connections
6
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter 6. User Circuitry
6.1. Switches
There are four switches located on the RSK. The function of each switch and its connection are shown in Table 6-1.
Switch
RES
Function
Microcontroller
RESET Pin8
INT0 Pin27
When pressed, the RSK microcontroller is reset.
SW1/BOOT* Connects to an IRQ input for user controls.
The switch is also used in conjunction with the RES switch to place
(Port 4, pin 5)
the device in BOOT mode when not using the E8a debugger.
Connects to an IRQ Interrupt input line for user controls.
SW2*
SW3*
INT1 Pin21
(Port 1, pin 7)
KI3 Pin25
Connects to a Key In Interrupt input line for user controls
(Port 1, pin 3)
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 function
Microcontroller Pin
Number
shown on silkscreen)
LED0
Green
Orange
Red
Port 2.4
16
15
14
13
LED1
LED2
LED3
Port 2.5
Port 2.6
Port 2.7
Red
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 analogue voltage value to
this pin between VREF and Ground.
7
Download from Www.Somanuals.com. All Manuals Search And Download.
6.4. Serial port
The microcontroller programming serial port 1 is connected to the RS232 transceiver. This serial port can optionally be connected to the
RS232 transceiver as well by fitting option resistors. The connections to be fitted are listed in the table 6-3.
Description
TxD1
Function
Fit for RS232
Programming Serial Port R45
Programming Serial Port R46
RxD1
Table 6-3: Serial Port settings
A Secondary serial port is connected to the application headers. This is shared with the LIN module.
6.5. LCD Module
A LCD module is supplied to be connected to the connector J8. This should be fitted so that the LCD module lies over J1. Care should be
taken to ensure the pins are inserted correctly into J8.The 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.
J8
Pin
Circuit Net Name
Device Pin
Pin
Circuit Net Name
Device
Pin
1
3
5
7
9
Ground
-
2
4
6
8
5V Only
LCD_RS
LCD_E
-
No Connection
-
31
30
-
R/W (Wired to Write only)
No Connection
-
-
No Connection
No Connection
-
10 No Connection
12 LCD_D5
-
11 LCD_D4
13 LCD_D6
51
49
50
48
14 LCD_D7
Table 6-4: LCD Module Connections
8
Download from Www.Somanuals.com. All Manuals Search And Download.
6.6.Option Links
Table 6-5 below describes the function of the option links contained on this RSK board.
Option Link Settings
Reference
Function
Fitted
Alternative (Removed)
Related To
R19
R7
Reference Voltage Connects Reference Voltage Reference Voltage
to microcontroller
disconnected from
microcontroller
R8
Oscillator
Connects External
Disconnects sensitive
microcontroller signals from
external pins
R10, R11, R12
R8, R11, R12
(Main clock)
Microcontroller header pins to
microcontroller
R10
Oscillator
Connects External
Disconnects sensitive
microcontroller signals from
external pins
(Main clock)
Microcontroller header pins to
microcontroller
R11
R12
R13
R14
R15
Oscillator
Connects main clock (X1) to
microcontroller
Main clock disconnected from
microcontroller
R8, R10, R12
R8, R10, R11
(Main clock)
Oscillator
Connects main clock (X1) to
microcontroller
Main clock disconnected from
microcontroller
(Main clock)
Oscillator
Connects sub clock (X2) to
microcontroller
Sub clock disconnected from
microcontroller
R14, R15, R16,
R17
(Sub clock)
Oscillator
Connects sub clock (X2) to
microcontroller
Sub clock disconnected from
microcontroller
R13, R15, R16,
R17
(Sub clock)
Oscillator
Connects External
Disconnects sensitive
microcontroller signals from
external pins
R13, R14, R16
(Sub clock)
Microcontroller header pins to
microcontroller
R16
Oscillator
Connects External
Disconnects sensitive
microcontroller signals from
external pins
R13, R14, R15
(Sub clock)
Microcontroller header pins to
microcontroller
R17
R18
R19
Oscillator
Parallel resister for sub clock
(X2)
Not fitted
R13, R14
R20
(Sub clock)
Board VCC
Supply to board from DC
Power Jack (J5)
Disconnected
Reference Voltage Connects Board_VCC supply Reference Voltage MUST be
R7
to Reference Voltage supply
provided from external
interface
R20
R21
Board VCC
Board VCC
Connects Board_VCC supply Board_VCC disconnected from R18, R19, R21,
to board voltage line
Connects External 5V
(CON_5V) to Board_VCC
board voltage line
R22, R23
External 5V disconnected from R20, R22
Board_VCC
9
Download from Www.Somanuals.com. All Manuals Search And Download.
Option Link Settings
Fitted
Reference
Function
Board VCC
Alternative (Removed)
External 3V3 disconnected
from Board_VCC
Related To
R20, R21
R22
Connects External 3V3
(CON_3V3) to Board_VCC
R23
R30
Microcontroller
VCC
Supply to microcontroller
Fit Low ohm resister to
measure current
User I/O Power
Supply
Connects Board_VCC supply Board_VCC disconnected from
to SW2, 3 and LED0-3
SW2, 3 and LED0-3
Disconnected
R31
R44
SW1
Connects SW1 to INT0 Input
RS232 Transceiver Disables RS232 Serial
Transceiver
Enables RS232 Serial
Transceiver
R45, R46
R44, R46
R44, R45
R45
R46
R47
R50
R51
R52
R53
R54
R55
Programming
Serial Port
Programming
Serial Port
E8
Connects RS232 port to
Programming SCI port
Connects RS232 port to
Programming SCI port
Enables E8a Connection
Disconnected
Disconnected
Do not connect a option
resister
Microcontroller pin Connects microcontroller pin MUST be removed if R51 fitted R51
function select
28 to IRQ1
Microcontroller pin Connects microcontroller pin
function select 28 to IO_6
Should be removed if R50
fitted
R50
Microcontroller pin Connects microcontroller pin MUST be removed if R53 fitted R53
function select
29 to IRQ2
Microcontroller pin Connects microcontroller pin
function select 28 to IO_7
Should be removed if R52
fitted
R52
Microcontroller pin Connects microcontroller pin MUST be removed if R55 fitted R55
function select
27 to IRQ0
Microcontroller pin Connects microcontroller pin
Should be removed if R54
fitted
R54
function select
27 to TRIGa
R56
R59
LIN
LIN
For Master Mode
For Slave Mode
R59, R60, R61
R56, R60, R61
Connects microcontroller pin Disconnected
22 to LIN-NSLP
R60
R61
R62
LIN
Connects microcontroller pin Disconnected
23 to LIN-RXD0
R56, R59, R61
R56, R59, R60
LIN
Connects microcontroller pin Disconnected
23 to LIN-TXD0
CAN
Do not use CAN function,
R8C/25 Microcontroller do not
have CAN function
Do not use CAN function,
R8C/25 Microcontroller do not
have CAN function
10
Download from Www.Somanuals.com. All Manuals Search And Download.
Option Link Settings
Fitted
Reference
Function
Alternative (Removed)
Do not use CAN function,
R8C/25 Microcontroller do not
have CAN function
Related To
R64
CAN
Do not use CAN function,
R8C/25 Microcontroller do not
have CAN function
R66
CAN
Do not use CAN function,
R8C/25 Microcontroller do not
have CAN function
Do not use CAN function,
R8C/25 Microcontroller do not
have CAN function
Table 6-5: Option Links
6.7.Oscillator Sources
A crystal oscillator is fitted on the RSK and used to supply the main and sub clock input to the Renesas microcontroller.
details the oscillators that are fitted and alternative footprints provided on this RSK:
Component
Crystal (X1)
Fitted
Fitted
20 MHz (HC/49U package)
Sub clock (X2)
32.768 kHz (90SMX package)
Table 6-6: Oscillators / Resonators
6.8.Reset Circuit
The CPU Board includes a simple latch circuit that links the mode selection and reset circuit. This provides an easy method for swapping
the device between Boot Mode, User Boot Mode and User mode. This circuit is not required on customers boards as it is intended for
providing easy evaluation of the operating modes of the device on the RSK. Please refer to the hardware manual for more information
on the requirements of the reset circuit.
The Reset circuit operates by latching the state of the boot switch on pressing the reset button. This control is subsequently used to
modify the mode pin states as required.
The mode pins should change state only while the reset signal is active to avoid possible device damage.
The reset is held in the active state for a fixed period by a pair of resistors and a capacitor. Please check the reset requirements carefully
to ensure the reset circuit on the user’s board meets all the reset timing requirements.
11
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter 7. Modes
The RSK supports Boot mode and Single chip mode.
Details of programming the FLASH memory is described in the R8C/25 Group Hardware Manual.
7.1. Boot mode
MODE
LSI State after Reset End
Low
Boot Mode
Table 7-1: Boot Mode pin settings
The software supplied with this RSK supports Boot mode using an E8a and HEW only. However, hardware exists to enter boot mode
manually, do not connect the E8a in this case. Press and hold the SW1/BOOT. The mode pin is held in its boot state while reset is pressed
and released. Release the boot button. The BOOT LED will be illuminated to indicate that the microcontroller is in boot mode.
When neither the E8a is connected nor the board is placed in boot mode as above, the Mode pin is pulled high by a 4.7k resistor.
When an E8a is used the Mode pin is controlled by the E8a.
7.2. Single chip mode
Because the Mode pin is pulled high, this RSK will always boot in Single Chip mode when the E8a is not connected and the boot switch is
not depressed. Refer to R8C/25 Group Hardware Manual for details of Single chip mode.
MODE
LSI State after Reset End
High
Single Chip Mode
Table 7-2: Single Chip Mode pin settings
12
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter 9. Headers
9.1. Microcontroller Headers
Table 9-1 to Table 9-4 show the microcontroller pin headers and their corresponding microcontroller connections. The header pins connect
directly to the microcontroller pins. * Marked pins are subject to option links.
J1
Pin
1
Circuit Net Name
No Connection
Device Pin Pin
Circuit Net Name
Device Pin
-
2
IIC_SCL
IIC_SDA
2
3
TRISTn
3
4
4
5
MODE_E8B
RING_P4_4
CON_XOUT
5
6
RING_P4_3
RESn
6
7
7
8
8
9
9
10
12
14
VSS
10
12
-
11 CON_XIN
13 MO_Wn
11
13
UC_VCC
No Connection
Table 9-1: J1
J2
Pin
Circuit Net Name
Device
Pin
Pin
Circuit Net Name
Device Pin
1
3
5
7
9
MO_Vn
MO_Vp
TMR0
14
16
18
20
22
24
-
2
MO_Wp
MO_Un
MO_Up
TRIGb
15
17
19
21
23
25
-
4
6
P2_0
8
SCIaCK
10
12
14
SCIaRX
IRQ3
11 SCIaTX
13 No Connection
No Connection
Table 9-2: J2
14
Download from Www.Somanuals.com. All Manuals Search And Download.
J3
Pin
Circuit Net Name
Device
Pin
Pin
Circuit Net Name
Device Pin
1
3
5
7
9
IRQ0/TRIGa*
27
2
IRQ1/IO_6*
28
IRQ2/IO_7*
LCD_RS
P3_1
29
31
33
35
37
-
4
LCD_E
AD_POT
TMR1
30
32
34
36
38
-
6
8
IO_5
10
12
14
IO_4
11 IO_3
AD0
13 No Connection
No Connection
Table 9-3: J3
J4
Pin
Circuit Net Name
Device
Pin
Pin
Circuit Net Name
Device Pin
1
3
5
7
9
No Connection
AD2
-
2
AD1
41
43
45
47
49
51
-
42
44
46
48
50
52
4
AD3
P4_2/VREF
IO_2
6
IO_0
8
IO_1
LCD_D7
10
12
14
LCD_D6
LCD_D4
11 LCD_D5
13 MO_UD
No Connection
Table 9-4: J4
15
Download from Www.Somanuals.com. All Manuals Search And Download.
9.2. Application Headers
Table 9-5 and Table 9-6 below show the standard application header connections. * Marked pins are subject to option links.
JA1
Pin
Header Name
RSK Signal
Name
Device
Pin
Pin
Header Name
RSK Signal
Name
Device
Pin
1
Regulated Supply 1
Regulated Supply 2
Analogue Supply
Analogue Reference
ADC0
CON_5V
-
-
-
2
Regulated Supply 1
Regulated Supply 2
Analogue Supply
ADTRG
GROUND
-
-
-
-
3
CON_3V3
NC
4
GROUND
NC
5
6
7
CON_VREF
AD0
44
38
42
-
8
NC
9
10
12
14
16
18
20
22
24
26
ADC1
AD1
41
43
-
11
13
15
17
19
21
23
25
ADC2
AD2
ADC3
AD3
DAC0
NC
DAC1
NC
IOPort0
IO_0
45
46
36
28
25
4
IOPort1
IO_1*
IO_3
IO_5
IO_7*
NC
47
37
35
29
-
IOPort2
IO_2
IOPort3
IOPort4
IO_4
IOPort5
IOPort8
IO_6*
IRQ3
IOPort7
2
IRQ3
I C Bus (3rd pin)
I²C Bus
IIC_SDA
I²C Bus
IIC_SCL
2
Table 9-5: JA1 Standard Generic Header
JA2
Pin
Header Name
RSK Signal
Name
Device
Pin
Pin
Header Name
RSK Signal
Name
CON_XIN
Device
Pin
1
Reset
RESn
NC
8
-
2
External Clock Input
Regulated Supply 1
Serial Port
11
-
3
Interrupt
4
GND
5
SPARE
NC
-
6
SCIaTX
SCIaRX
SCIaCK
NC
24
23
22
-
7
Interrupt
IRQ0*
IRQ1*
27
28
52
19
16
15
18
27
29
20
8
Serial Port
9
Interrupt
10
12
14
16
18
20
22
24
26
Serial Port
11
13
15
17
19
21
23
25
Motor up/down
Motor control
Motor control
Motor control
Timer Output
Timer Input
Interrupt
MO_UD*
MO_Up
MO_Vp
MO_Wp
TMR0
Serial Port Handshake
Motor control
Motor control
Motor control
Timer Output
Timer Input
MO_Un
MO_Vn
MO_W
TMR1
17
14
13
34
21
3
TRIGa*
IRQ2*
TRIGb
TRISTn
P3_1
Tristate Control
SPARE
SPARE
P2_0
33
Table 9-6: JA2 Standard Generic Header
16
Download from Www.Somanuals.com. All Manuals Search And Download.
J9
Pin
1
Function
Power Supply (for LIN module)
GROUND
Signal Name
Signal Name
VBAT
GND
2
J10
Pin
1
Function
Power Supply (for LIN module)
LIN Bus Line
VBAT
LIN
2
3
GROUND
GND
Table 9-7: LIN Headers
17
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter 10.Code Development
10.1. Overview
Note: For all code debugging using Renesas software tools, the RSK board must be connected to a PC USB port via an E8a. An E8a is
supplied with the RSK product.
10.2. Mode Support
HEW connects to the Microcontroller and programs it via the E8a. Mode support is handled transparently to the user.
10.3. Breakpoint Support
HEW supports breakpoints on the user code, both in RAM and ROM.
Double clicking in the breakpoint column in the code sets the breakpoint. Breakpoints will remain unless they are double clicked to remove
them.
18
Download from Www.Somanuals.com. All Manuals Search And Download.
10.4. Memory Map
00000h
SFR
002FFh
00400h
Internal RAM
User RAM Area
00BFFh
02400h
Internal ROM
(Data Area)
Emulator Firmware
Area
02BFFh
08000h
Note: E8 Firmware area
selected via HEW
Emulator Firmware
Area
08800h
Internal ROM
(Program Area)
User ROM Area
0FFDCh
Fixed Vector Tables
0FFFFh
Figure 10-1: Memory Map
19
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter 12. Additional Information
For details on how to use High-performance Embedded Workshop (HEW, refer to the HEW manual available on the CD or from the web
site.
For information about the R8C/25 group microcontrollers refer to the R8C/25 Group Hardware Manual
For information about the R8C/25 assembly language, refer to the R8C/Tiny Series Software Programming Manual.
Online technical support and information is available at: http://www.renesas.com/rsk
Technical Contact Details
Europe: [email protected]
Japan:
General information on Renesas Microcontrollers can be found on the Renesas website at: http://www.renesas.com/.
21
Download from Www.Somanuals.com. All Manuals Search And Download.
Renesas Starter Kit for R8C/25
User's Manual
Publication Date Rev.1.01 29.05.2006
Published by:
Renesas Solutions Corp.
4-1-6, Miyahara, Yodogawa-ku, Osaka City, 532-0003, Japan
©2006 Renesas Solutions Corp., Renesas Technology Europe Ltd. and Renesas Technology Corp.,
All Rights Reserved.
Download from Www.Somanuals.com. All Manuals Search And Download.
Renesas Starter Kit for R8C/25
User's Manual
Renesas Solutions Corp.
4-1-6, Miyahara, Yodogawa-ku, Osaka City, 532-0003, Japan
Download from Www.Somanuals.com. All Manuals Search And Download.
|