REG10J0109-0100
Renesas Starter Kit for SH2/7137
User’s Manual
RENESAS SINGLE-CHIP MICROCOMPUTER
SH2 FAMILY
Rev.1.00
Revision date: 14.FEB.2008
Renesas Technology Europe Ltd.
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
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:
Glossary
CPU
LED
PC
Central Processing Unit
Light Emitting Diode
Program Counter
HEW
RSK
High-performance Embedded Workshop
Renesas Starter Kit
E10A
RCAN
On-chip debugger module for starter kits
Renesas Controller Area Network
LCD
Liquid Crystal Display
3
Download from Www.Somanuals.com. All Manuals Search And Download.
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
Download from Www.Somanuals.com. All Manuals Search And Download.
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
Download from Www.Somanuals.com. All Manuals Search And Download.
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
RS232 Serial
Power
LCD Display
CAN
J7
LCD
Power LED
E8A Header
J3
JA3
Microcontroller
pin headers
MCU
J4
J2
E10A Header
J1
User LEDs
Boot LED
JA6
JA2
Application board interface
Potentiometer
User switches
Figure 4-1: Board Layout
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 CPU board. The function of each switch and its connection are shown in Table 6-1.
Switch
RES
Function
When pressed, the RSK microcontroller is reset.
Connects to an IRQ input for user controls.
Microcontroller
RESn, Pin 70(*)
IRQ0, Pin 46
SW1/BOOT*
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*
SW3*
Connects to an IRQ line for user controls.
IRQ1, Pin 45
(Port B, pin 3)
IRQ2, Pin 44
(Port B, pin 4)
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.
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
Orange
Red
Port D0
Port D1
Port D2
Port D3
40
38
37
35
LED1
LED2
LED3
Red
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
9
Download from Www.Somanuals.com. All Manuals Search And Download.
Description
Function
Microcontroller
Fit for RS232
Remove for RS232
Port Pin
SCI2
SCI2
SCI0
SCI0
Default serial port
Default serial port
Spare Serial Port
Spare Serial Port
58
60
68
69
R30
R39
R53
R54
R53
R54
R30
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.
Description
Function
Microcontroller Pin
Header Pins
Number
CTx0
Transmit data input
42
41
J2-12
J2-11
CRx0
Receive data output; reads out data
from the bus lines
CAN_EN
Enable control input
49
J2-19
J3-13
J2-13
CAN_ERRn
CAN_STBn
Error and power-on indication output 63
Standby control input 43
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.
10
Download from Www.Somanuals.com. All Manuals Search And Download.
LCD
Device Pin
Pin
Pin
Circuit Net Name
Circuit Net Name
Device
Pin
1
Ground
-
2
4
6
8
5V Only
-
DLCDRS (PD10)
3
No Connection
-
28
29
-
DLCDE + 100k pull down to ground (PD9)
No connection
5
R/W (Wired to Write only)
No Connection
-
7
-
9
No Connection
-
10 No connection
-
DLCDD4 (PE0)
DLCDD5 (PE1)
DLCDD7 (PE3)
11
13
27
25
12
14
26
24
DLCDD6 (PE2)
Table 6-5 Debug LCD Module Connections
11
Download from Www.Somanuals.com. All Manuals Search And Download.
6.7. Option Links
Table 6-6 below describes the function of the option links contained on this RSK board and associated with Serial Port Configuration. The
default configuration is indicated by BOLD text.
Option Link Settings
Reference
Function
Serial Port
Fitted
Alternative (Removed)
Disconnects serial port SCI0
(Tx) from D-type connector
(SERIAL).
Related To
R53
R54
Connects serial port SCI0 (Tx) to
D-type connector (SERIAL).
Configuration
R53
Serial Port
Connects serial port SCI0 (Rx) to
D-type connector (SERIAL).
Disconnects serial port SCI0
(Rx) from D-type connector
(SERIAL).
R54
Configuration
R47
R42
R53
Serial Port
Disables RS232 Serial
Transceiver
Enables RS232 Serial
Transceiver
R42
R47
R54
configuration
Serial Port
Enables RS232 Serial
Transceiver
Disables RS232 Serial
Transceiver
configuration
Serial Port
Connects serial port SCI2 (Tx) to
D-type connector (SERIAL).
Disconnects serial port SCI2
(Tx) from D-type connector
(SERIAL).
Configuration
R39
R30
R32
R36
R25
Serial Port
Routes serial port SCI2 (Rx) to
microcontroller pins.
Disconnects serial port SCI2 (Rx) R25, R26, R30,
from microcontroller pins. R32, R36
Disconnects serial port SCI2 (Tx) R25, R26, R32,
Configuration
Serial Port
Routes serial port SCI2 (Tx) to
microcontroller pins.
Configuration
Serial Port
from microcontroller pins.
Disconnects serial port from
JA6 pins.
R36, R39
Routes serial port to JA6 pins.
R25, R26, R30,
R36, R39
Configuration
Serial Port
Routes serial port to JA6 pins.
Disconnects serial port from
JA6 pins.
R25, R26, R30,
R32, R39
Configuration
Serial Port
Connects microcontroller
programming pin(PTRX) to D-type
connector (SERIAL).
Disconnects microcontroller
programming pin (PTRX) from
D-type connector (SERIAL).
Disconnects microcontroller
programming pin(PTTX) from
D-type connector (SERIAL).
R26, R30, R32,
R36, R39
Configuration
R26
Serial Port
Connects microcontroller
programming pin(PTTX) to D-type
connector (SERIAL).
R25, R30, R32,
R36, R39
Configuration
Table 6-6: Serial port configuration links.
Table 6-7 below describes the function of the option links associated with application board interface. The default configuration is indicated
by BOLD text.
12
Download from Www.Somanuals.com. All Manuals Search And Download.
Option Link Settings
Fitted
Reference
Function
Application
Alternative (Removed)
Use M2_Wn of application board
interface.
Related To
R151
R159
Use TRSTn of E10A debugger
interface.
board interface
Application
R151
R148
R147
R146
R136
R137
R133
R128
R132
R129
R125
R102
R106
R107
R103
R99
Use M2_Wn of application board
interface.
Use TRSTn of E10A debugger
interface.
R159
R147
R148
R136
R146
R133
R137
R132
R128
R125
R129
R106
board interface
Application
Use TMS of E10A debugger
interface
Use M2_Vn of application board
interface.
board interface
Application
Use M2_Vn of application board
interface.
Use TMS of E10A debugger
interface
board interface
Application
Use TDO of E10A debugger
interface
Use M2_Wp of application board
interface.
board interface
Application
Use M2_Wp of application board
interface.
Use TDO of E10A debugger
interface
board interface
Application
Use TDI of E10A debugger
interface
Use M2_Vp of application board
interface.
board interface
Application
Use M2_Vp of application board
interface.
Use TDI of E10A debugger
interface
board interface
Application
Use TCK of E10A debugger
interface
Use M2_Un of application board
interface.
board interface
Application
Use M2_Un of application board
interface.
Use TCK of E10A debugger
interface
board interface
Application
Use ASEBRKn of E10A debugger Use M2_Up of application board
board interface
Application
interface
interface.
Use M2_Up of application board
interface.
Use ASEBRKn of E10A
debugger interface
Use A14 of application board
interface.
board interface
Application
Use TRIGb of application board
interface.
board interface
Application
Use A14 of application board
interface.
Use TRIGb of application board R102
board interface
Application
interface.
Use TRIGa of application board
interface.
Use A13 of application board
interface.
R103
board interface
Application
Use A13 of application board
interface.
Use TRIGa of application board R107
board interface
Application
interface.
Use TMR1 of application board
interface.
Use A12 of application board
interface.
R97
board interface
Application
R97
Use A12 of application board
interface.
Use TMR1 of application board R99
board interface
interface.
13
Download from Www.Somanuals.com. All Manuals Search And Download.
Option Link Settings
Fitted
Reference
Function
Application
Alternative (Removed)
Use A11 of application board
interface.
Related To
R98
R100
Use TMR0 of application board
interface.
board interface
Application
R98
R59
R58
R60
R61
R76
R75
R77
R78
R62
R63
R65
R64
R79
R80
R66
Use A11 of application board
interface.
Use TMR0 of application board R100
board interface
Application
interface.
Use to connect to onboard LED3. Use D3 of application board
R58
R59
R61
R60
R75
R76
R78
R77
R63
R62
R64
R65
R80
R79
board interface
Application
interface.
Use D3 of application board
interface.
Use to connect to onboard
LED3.
board interface
Application
Use to connect to onboard LED2. Use D2 of application board
board interface
Application
interface.
Use D2 of application board
interface.
Use to connect to onboard
LED2.
board interface
Application
Use to connect to onboard LED1. Use D1 of application board
board interface
Application
interface.
Use D1 of application board
interface.
Use to connect to onboard
LED1.
board interface
Application
Use to connect to onboard LED0. Use D0 of application board
board interface
Application
interface.
Use D0 of application board
interface.
Use to connect to onboard
LED0.
board interface
Application
Use CS1n of application board
interface.
Use CRx0 for onboard RCAN
module.
board interface
Application
Use CRx0 for onboard RCAN
module.
Use CS1n of application board
interface.
board interface
Application
Use CAN_STBN for onboard
RCAN module.
Use A19 of application board
interface.
board interface
Application
Use A19 of application board
interface.
Use CAN_STBN for onboard
RCAN module.
board interface
Application
Use IRQ2 for onboard SW3.
Use A18 of application board
interface.
board interface
Application
Use A18 of application board
interface.
Use IRQ2 for onboard SW3.
board interface
Application
Use SDA of application board
interface.
Use IRQ1 for onboard SW2 “or” R67, R68
A17 of application board
interface.
board interface
R68
Application
Use IRQ1 for onboard SW2.
Use SDA “or” A17 of application
board interface.
R66, R67
board interface
14
Download from Www.Somanuals.com. All Manuals Search And Download.
Option Link Settings
Fitted
Reference
Function
Application
Alternative (Removed)
Use SDA of application board
interface “or” IRQ1 for onboard
SW2.
Related To
R66, R68
R67
Use A17 of application board
interface.
board interface
R81
Application
Use SCL of application board
interface.
Use IRQ0 for onboard SW1 “or” R82, R83
A16 of application board
interface.
board interface
R83
R82
Application
Use IRQ0 for onboard SW1.
Use SCL”or” A16 of application
board interface.
R81, R82
board interface
Application
Use A16 of application board
interface.
Use SCL of application board
interface “or” IRQ0 for onboard
SW1.
R81, R83
board interface
R70
R69
R74
R73
R88
R90
R84
R85
R92
R94
R96
R91
R89
Application
Use UD of application board
interface.
Use CAN_EN for onboard RCAN R69
module.
board interface
Application
Use CAN_EN for onboard RCAN
module.
Use UD of application board
interface.
R70
board interface
Application
Use IO6 of application board
interface.
Use A10 of application board
interface.
R73
board interface
Application
Use A10 of application board
interface.
Use IO6 of application board
interface.
R74
board interface
Application
Use IO5 of application board
interface.
Use A9 of application board
interface.
R90
board interface
Application
Use A9 of application board
interface.
Use IO5 of application board
interface.
R88
board interface
Application
Use IO4 of application board
interface.
Use A8 of application board
interface.
R85
board interface
Application
Use A8 of application board
interface.
Use IO4 of application board
interface.
R84
board interface
Application
Use ADTRGn of application board Use A7 ”or” IO3 of application
R94, R96
R92, R96
R92, R94
R89
board interface
Application
interface.
board interface.
Use A7 of application board
interface.
Use ADTRGn “or” IO3 of
application board interface.
Use ADTRGn “or” A7 of
application board interface.
Use IO2 of application board
interface.
board interface
Application
Use IO3 of application board
interface.
board interface
Application
Use A6 of application board
interface.
board interface
Application
Use IO2 of application board
interface.
Use A6 of application board
interface.
R91
board interface
15
Download from Www.Somanuals.com. All Manuals Search And Download.
Option Link Settings
Fitted
Reference
Function
Application
Alternative (Removed)
Use IO1 of application board
interface.
Related To
R95
R93
Use TXD2 for onboard RS232
module.
board interface
Application
R95
Use IO1 of application board
interface.
Use TXD2 for onboard RS232
module.
R93
board interface
Application
R112
R105
Use RXD2 for onboard RS232
module.
Use WRLn, WRn “or” IO0 of
application board interface.
Use RXD2 for onboard RS232
module “or” WRn “or” IO0 of
application board interface.
Use RXD2 for onboard RS232
module “or” WRLn “or” IO0 of
application board interface.
Use RXD2 for onboard RS232
R101, R105,
R109
board interface
Application
Use WRLn of application board
interface.
R101, R109,
R112
board interface
R109
R101
R108
Application
Use WRn of application board
interface.
R101, R105,
R112
board interface
Application
Use IO0 of application board
interface.
R105, R109,
board interface
module “or” WRLn “or” WRn of R112
application board interface.
Application
Use IRQ3 of application board
interface.
Use of CAN_ERRn for onboard
RCAN module “or” A5 application
board interface.
R104, R111
board interface
R111
R104
Application
Use CAN_ERRn for onboard RCAN Use IRQ3 “or” A5 of application R104, R108
board interface
Application
module.
board interface.
Use A5 of application board
interface.
Use CAN_ERRn for onboard
RCAN module “or” IRQ3 of
application board interface.
Use A4 of application board
interface.
R108, R111
board interface
R115
R113
R114
R116
R117
R119
R120
Application
Use PTTX of E8A debugger
interface.
R113
R115
R116
R114
R119
R117
R118
board interface
Application
Use A4 of application board
interface.
Use PTTX of E8A debugger
interface.
board interface
Application
Use PTRX of E8A debugger
interface.
Use A3 of application board
interface.
board interface
Application
Use A3 of application board
interface.
Use PTRX of application board
interface.
board interface
Application
Use SCK0 of application board
interface.
Use A2 of application board
interface.
board interface
Application
Use A2 of application board
interface.
Use SCK0 of application board
interface.
board interface
Application
Use TXD0 for onboard RS232
module.
Use A1 of application board
interface.
board interface
16
Download from Www.Somanuals.com. All Manuals Search And Download.
Option Link Settings
Fitted
Reference
Function
Application
Alternative (Removed)
Use TXD0 for onboard RS232
module.
Related To
R120
R118
Use A1 of application board
interface.
board interface
Application
R124
R121
Use RXD0 for onboard RS232
module.
Use A0 of application board
interface.
R121
R124
board interface
Application
Use A0 of application board
interface.
Use RXD0 for onboard RS232
module.
board interface
Table 6-7: Application board interface links.
Table 6-8 below describes the function of the option links associated with E8A and E10A debuggers. The default configuration is indicated
by BOLD text.
Option Link Settings
Reference
Function
E8A
Fitted
Alternative (Removed)
If both FWE and R178 are
removed, writing to Flash is
enabled.
Related To
R178
If FWE or R178 is fitted the Flash is
protected from writing.
Table 6-8: E8A and E10A debugger links.
Table 6-9 below describes the function of the option links associated with power source. The default configuration is indicated by BOLD
text.
17
Download from Www.Somanuals.com. All Manuals Search And Download.
Option Link Settings
Fitted
Supply to MCU.
Reference
Function
MCU power
supply
Alternative (Removed)
CPU current can be measured
across R33
Related To
R33
R161
R23
R24
R10
R3
Ground
Connects Analog & Digital
grounds together.
Separates Analog & Digital
grounds.
Power source
Power source
Power source
Power source
5V source signal will be powered
from E8A_VCC.
5V source signal will not be
powered from E8A_VCC.
R3, R10, R24
CON_5V source signal will be
powered from E8A_VCC.
CON_5V source signal will not be R3, R10, R23
powered from E8A_VCC.
E8A_VCC will be used as external E8A_VCC will not be used as
R3, R10, R23
R10, R23, R24
R24, R35
source.
external source.
Enables external power to board
from PWR connector.
Board_VCC = 5V (or J5 1-2)
Disable external power to board
from PWR connector.
R29
R24
Power source
Power source
Board_VCC = 3V3 (or J5 2-3)
CON_3V3 source signal will be
powered from E8A_VCC.
CON_3V3 source signal will not R29, R35
be powered from E8A_VCC.
R35
R40
Power source
Power source
Board_VCC = 3V3 (or J5 2-3)
Board_VCC = 5V (or J5 1-2)
R24, R29
Board_VCC source signal will be
powered from E8A_VCC.
Board_VCC source signal will not
be powered from E8A_VCC.
Table 6-9: Power configuration links.
Table 6-10 below describes the function of the option links associated with clock configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference
Function
Fitted
Alternative (Removed)
On-board Clock Source
Related To
R126, R135,
R138
R123
Clock Oscillator External Clock Source
R130
R138
Clock Oscillator Parallel resistor for a crystal
Clock Oscillator External Clock Source
Not fitted
On-board Clock Source
R123, R126,
R135
R135
R126
Clock Oscillator On-board clock source is used
External clock source is used
External clock source is used
R123, R126,
R138
Clock Oscillator On-board clock source is used
R123, R135,
R138
Table 6-10: Clock configuration links.
Table 6-11 below describes the function of the option links associated with reference voltage source. The default configuration is indicated
by BOLD text.
18
Download from Www.Somanuals.com. All Manuals Search And Download.
Option Link Settings
Fitted
Reference
Function
Voltage
Alternative (Removed)
Voltage Reference taken from
external connector (JA1 pin 7).
Related To
R50
R49
Voltage Reference set to board
Vcc signal.
Reference
Source
R50
Voltage
Voltage Reference is taken from
external connector (JA1 pin 7).
Voltage Reference set to board R49
Reference
Source
Vcc signal.
Table 6-11: Voltage reference links.
Table 6-12 below describes the function of the option links associated with analog power supply. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference
Function
Analog Voltage
Source
Fitted
Analog Ground from external
connector.
Alternative (Removed)
Analog Ground from on board
Vcc.
Related To
R52
R72
R71
Analog Voltage
Source
Analog voltage source from external Analog voltage source from
R71
connector.
on-board AVcc.
Analog Voltage
Source
Analog voltage source from
on-board AVcc.
Analog Voltage Source from
external connector.
R72
Table 6-12: Analog power supply links.
Table 6-13 below describes the function of the option links associated with MCU modes. The default configuration is indicated by BOLD
text.
Option Link Settings
Reference
Function
Fitted
Alternative (Removed)
Related To
R150
MCU Mode
MCU Extended Mode 0 enabled,
also can be enabled by fitting jumper
in Exten_Mode
MCU Extended Mode 2 enabled R172, R178
R172
MCU Mode
MCU User Boot Mode enabled, also MCU User Boot mode disabled
can be enabled by fitting jumper in
U_BOOT
R150, R178
Table 6-13: MCU mode links.
Table 6-14 below describes the function of the option links associated with switches configuration. The default configuration is indicated by
BOLD text.
19
Download from Www.Somanuals.com. All Manuals Search And Download.
Option Link Settings
Fitted
Reference
Function
Switches
Alternative (Removed)
SW3 can not be used for
ADTRGn
Related To
R48
R46
SW3 can be used for ADTRGn
configuration
Switches
R48
SW3 can be used for IRQ2
SW3 can not be used for IRQ2
R46
configuration
Table 6-14: Switches configuration links.
6.8. Oscillator Sources
A crystal oscillator is fitted on the RSK and used to supply the main clock input to the Renesas microcontroller. Table 6-15 details the
oscillators that are fitted and alternative footprints provided on this RSK:
Component
Crystal (X1)
Fitted
10 MHz (HC49/4H package)
Table 6-15: Oscillators / Resonators
6.9. 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 and User mode. This circuit is not required on customer’s 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 via a resistor/capacitor delay circuit. Please check the reset requirements carefully
to ensure the reset circuit on the user’s board meets all the reset timing requirements.
20
Download from Www.Somanuals.com. All Manuals Search And Download.
Chapter 7. Modes
This RSK supports Boot mode, User Boot mode, User Program Mode and User mode.
Details of programming the FLASH memory is described in the SH2/7137 Group Hardware Manual.
7.1. Boot mode
FWE
MD2n
MD1
LSI State after Reset End
1
0
0
Boot Mode
Table 7-1: Boot Mode pin settings
The software supplied with this RSK supports debugging with E10A which does not need Boot mode. To enter the Boot mode manually, do
not connect the E10A in this case. Press and hold the SW1/BOOT. The BOOT LED will be illuminated to indicate that the microcontroller is
in boot mode.
7.2. User Boot mode
Refer to SH2/7137 Group Hardware Manual for details of User Boot Mode. The user mode settings for this RSK are shown in Table 7-2:
user Mode pin settings below:
FWE
MD2n
MD1
LSI State after Reset End
1
0
1
User Boot Mode
Table 7-2: User Boot Mode pin settings
7.3. User Program mode
Refer to SH2/7137 Group Hardware Manual for details of User Program Mode. The User Program Mode settings for this RSK are shown in
Table 7-3: User Program Mode pin settings below:
FWE
MD2n
MD1
LSI State after Reset End
1
1
0
User Program Mode
Table 7-3: User Program Mode pin settings
7.4. Single chip mode
All ports can be used in this mode, however the external address cannot be used. The Single Chip Mode settings for this RSK are shown
in Table 7-4: Single Chip Mode pin settings below:
FWE
MD2n
MD1
LSI State after Reset End
0
1
1
Single Chip Mode
Table 7-4: Single Chip Mode pin settings
21
Download from Www.Somanuals.com. All Manuals Search And Download.
7.5. MCU extension mode 0
CS0 space becomes external memory spaces with 8-bit bus width in SH7137. The MCU Extension Mode 0 settings for this RSK are shown
in Table 7-5: MCU Extension Mode 0 pin settings below:
FWE
MD2n
MD1
LSI State after Reset End
0
0
0
MCU Extension Mode 0
Table 7-5: MCU Extension Mode 0 pin settings
7.6. MCU extension mode 2
CS0 space becomes external memory spaces with 8-bit bus width in SH7137. The MCU Extension Mode 2 settings for this RSK are shown
in Table 7-6: MCU Extension Mode 2 pin settings below:
FWE
MD2n
MD1
LSI State after Reset End
0
1
0
MCU Extension Mode 2
Table 7-6: MCU Extension Mode 2 pin settings
22
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 pin unless otherwise stated.
J1
Pin
Circuit Net Name
Device Pin
Pin
Circuit Net Name
Device
Pin
1
3
5
7
9
GROUND
UC_VCC
-
2
4
6
8
TRSTn_M2_Wn
2
-
TMS_M2_Vn
4
TDO_M2_Wp
TCK_M2_Un
M1_Wn
5
TDI_M2_Vp
6
7
ASEBRKn_M2_Up
8
9
10 M1_Vn
12 M1_Wp
14 GROUND
16 NC
10
12
-
11 UC_VCC
13 M1_Vp
15 M1_Un
17 M1_Up
19 A15
-
13
15
17
19
21
23
25
27
29
-
18 CS0n
18
20
22
24
26
28
30
20 A14_TRIGb
22 A12_TMR1
24 DLCDD7
26 DLCDD5
28 DLCDRS
30 TRISTn
21 A13_TRIGa
23 A11_TMR0
25 DLCDD6
27 DLCDD4
29 DLCDE
Table 9-1: J1
24
Download from Www.Somanuals.com. All Manuals Search And Download.
J2
Device Pin
Pin
Pin
Circuit Net Name
Circuit Net Name
Device
Pin
32
34
-
1
3
5
7
9
D7
31
33
35
37
39
41
43
45
47
49
2
4
6
8
D6
D5
D4
D3_LED3
D2_LED2
GROUND
UC_VCC
D1_LED1
38
40
42
44
46
-
10 D0_LED0
12 CTx0
11 CS1n_CRx0
13 A19_CAN_STBn
15 A17_IRQ1_SDA
17 M2_TRISTn
14 A18_IRQ2
16 A16_IRQ0_SCL
18 UC_VCC
19 UD_CAN_EN
20 GROUND
-
Table 9-2: J2
J3
Pin
Circuit Net Name
Device
Pin
51
53
55
-
Pin
Circuit Net Name
Device
Pin
52
54
56
58
60
62
-
1
IO7
2
A10_IO6
A8_IO4
A6_IO2
3
A9_IO5
4
6
8
5
A8_ADTRGn_IO3
UC_VCC
NC
7
TXD2_IO1
WRLn_WRn_RXD2_IO0
RDn
9
-
10
12
14
16
18
20
22
24
26
28
30
11
13
15
17
19
21
23
25
27
29
SCK2
61
63
65
67
69
71
73
-
A5_IRQ3_CAN_ERRn
A4_PTTX
A2_SCK0
A0_RXD0
CON_XTAL
NMI
GROUND
A3_PTRX
A1_TXD0
RESn
66
68
70
72
74
76
78
80
CON_EXTAL
FWE
NC
ASEMD0n
MD0
MD1
77
79
CON_AVSS
AN15
Table 9-3: J3
25
Download from Www.Somanuals.com. All Manuals Search And Download.
J4
Device Pin
Pin
Pin
Circuit Net Name
Circuit Net Name
Device
Pin
82
1
3
5
7
9
AN14
AN12
PIN85
ADPOT
AN7
81
83
85
87
89
91
93
95
97
99
2
4
6
8
AN13
PIN84
PIN86
84
86
CON_AVREF
88
10 AN6
90
11 AN5
12 AN4
92
13 CON_AVSS
15 AN2
14 AN3
94
16 AN1
96
17 AN0
18 CON_AVCC
20 WDT_OVFn
98
19 UC_VCC
100
Table 9-4: J4
26
Download from Www.Somanuals.com. All Manuals Search And Download.
9.2. Application Headers
JA1
Pin Generic Header Name
CPU board
Signal Name
CON_5V
CON_3V3
CON_AVCC
CON_AVREF
AN0
Device
Pin
Pin
Generic Header Name
CPU board
Signal Name
GROUND
GROUND
CON_AVSS
ADTRGn
AN1
Device
Pin
1
5V
-
2
0V
-
-
3
3V3
-
4
0V
5
AVCC
AVref
AD0
98
88
97
95
-
6
AVss
ADTRG
AD1
79
55
96
94
-
7
8
9
10
12
14
16
18
20
22
24
26
11
13
15
17
19
21
23
25
AD2
AN2
AD3
AN3
DAC0
IO_0
IO_2
IO_4
IO_6
IRQ3
IIC_SDA
NC
DAC1
IO_1
NC
IO0
60
56
54
52
63
45
IO1
58
55
53
51
-
IO2
IO_3
IO3
IO4
IO_5
IO5
IO6
IO_7
IO7
IRQ3
IIC_EX
IIC_SCL
NC
SDA
SCL
46
Table 9-5: JA1 Standard Generic Header
27
Download from Www.Somanuals.com. All Manuals Search And Download.
JA2
Pin
Pin Generic Header Name
CPU board
Device
Pin
Generic Header Name
CPU board
Signal Name
CON_EXTAL
GROUND
TxD0
Device
Pin
Signal Name
1
RESn
NMIn
WDT_OVF
IRQ0
IRQ1
UD
RESn
70
2
EXTAL
VSS1
SCIaTX
SCIaRX
SCIaCK
CTSRTS
Un
72
3
NMI
73
100
46
45
49
17
13
12
23
21
44
-
4
-
5
WDT_OVFn
IRQ0
6
68
69
67
-
7
8
RxD0
9
IRQ1
10
12
14
16
18
20
22
24
26
SCK0
11
13
15
17
19
21
23
25
UD
NC
Up
M1_Up
M1_Vp
M1_Wp
TMR0
TRIGa
IRQ2
M1_Un
M1_Vn
M1_Wn
TMR1
15
10
9
Vp
Vn
Wp
Wn
TMR0
TRIGa
IRQ2
-
TMR1
TRIGb
TRISTn
-
22
20
30
-
TRIGb
TRISTn
NC
NC
Table 9-6: JA2 Standard Generic Header
JA5
Pin Generic Header Name
CPU board
Device
Pin
Pin
Generic Header Name
CPU board
Signal Name
AN5
Device
Pin
Signal Name
1
AD4
AN4
92
2
AD5
91
89
41
-
3
AD6
AN6
90
42
-
4
AD7
AN7
5
CAN1TX
CAN2TX
AD8
CTx0
NC
6
CAN1RX
CAN2RX
AD9
CRx0
7
8
NC
9
AN12
AN14
NC
83
81
-
10
12
14
16
18
20
22
24
AN13
82
80
-
11
13
15
17
19
21
23
AD10
AD11
AN15
TIOC0A
TIOC0C
TCLKC
M2_Up
M2_Vp
M2_Wp
TIOC0B
M2_TRISTn
TCLKD
M2_Un
M2_Vn
M2_Wn
NC
NC
-
M2_TRISTn
NC
47
-
NC
-
M2_Up
M2_Vp
M2_Wp
8
M2_Un
M2_Vn
M2_Wn
7
6
4
5
2
Table 9-7: JA5 Standard Generic Header
28
Download from Www.Somanuals.com. All Manuals Search And Download.
JA6
Pin
Pin Generic Header Name
CPU board
Device
Pin
Generic Header Name
CPU board
Device
Pin
Signal Name
Signal Name
1
DREQ
NC
-
2
DACK
NC
-
-
-
-
-
3
TEND
NC
-
4
STBYn
NC
5
RS232TX
RS232TX
-
6
RS232RX
RS232RX
7
SCIbRX
NC
-
8
SCIbTX
NC
9
SCIcTX
TXD2
58
61
-
10
12
14
16
18
20
22
24
SCIbCK
NC
11
13
15
17
19
21
23
SCIcCK
SCK2
SCIcRX
RXD2
60
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Table 9-8: JA6 Standard Generic Header
29
Download from Www.Somanuals.com. All Manuals Search And Download.
JA3
Pin
Pin Generic Header Name
CPU board
Device
Pin
Generic Header Name
CPU board
Device
Pin
Signal Name
Signal Name
1
A0
A0
69
2
A1
A1
68
3
A2
A2
67
65
56
54
52
22
20
40
37
34
32
62
18
-
4
A3
A3
66
63
55
53
23
21
19
38
35
33
31
60
41
-
5
A4
A4
6
A5
A5
7
A6
A6
8
A7
A7
9
A8
A8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
A9
A9
11
13
15
17
19
21
23
25
27
29
31
33
35
37
39
41
43
45
47
49
A10
A12
A14
D0
A10
A12
A14
D0
A11
A13
A15
D1
A11
A13
A15
D1
D2
D2
D3
D3
D4
D4
D5
D5
D6
D6
D7
D7
RDn
CS0n
D8
RDn
CS0n
NC
NC
NC
NC
A16
A18
NC
NC
NC
NC
NC
WRn
CS1n
D9
WRn
CS1n
NC
NC
NC
NC
A17
A19
NC
NC
NC
WRLn
NC
D10
D12
D14
A16
A18
A20
A22
CS2n
WRHn
CASn
-
D11
D13
D15
A17
A19
A21
SDCLK
ALE
WRLn
RASn
-
-
-
-
-
46
44
-
45
43
-
-
-
-
-
-
60
-
-
Table 9-9: JA3 Standard Generic Header
30
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 E10A. An E10A
pod is supplied with the RSK product.
10.2. Compiler Restrictions
The compiler supplied with this RSK is fully functional for a period of 60 days from first use. After the first 60 days of use have expired, the
compiler will default to a maximum of 256K code and data. To use the compiler with programs greater than this size you need to purchase
the full tools from your distributor.
Warning: The protection software for the compiler will detect changes to the system clock. Changes to the system clock back in time may
cause the trial period to expire prematurely.
10.3. Mode Support
HEW connects to the Microcontroller and programs it via the E10A. Mode support is handled transparently to the user.
10.4. 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.
31
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 SH2/7137 series microcontrollers refer to the SH7137 Group hardware manual.
For information about the SH2/7137 assembly language, refer to the SH2 Series Software Manual.
Online technical support and information is available at: http://www.renesas.com/renesas_starter_kits
Technical Contact Details
Europe:
Japan:
General information on Renesas Microcontrollers can be found on the Renesas website at: http://www.renesas.com/
34
Download from Www.Somanuals.com. All Manuals Search And Download.
Renesas Starter Kit for SH2/7137
User's Manual
Publication Date Rev.1.00 14.02.2008
Published by:
Renesas Technology Europe Ltd.
Duke’s Meadow, Millboard Road, Bourne End
Buckinghamshire SL8 5FH, United Kingdom
©2008 Renesas Technology Europe and Renesas Solutions Corp., All Rights Reserved.
Download from Www.Somanuals.com. All Manuals Search And Download.
Renesas Starter Kit for SH2/7137
User's Manual
Renesas Technology Europe Ltd.
Duke’s Meadow, Millboard Road, Bourne End
Buckinghamshire SL8 5FH, United Kingdom
Download from Www.Somanuals.com. All Manuals Search And Download.
|