Chapter 3. Power Supply........................................................................................................................................6
3.2. Power – Up Behaviour .................................................................................................................................6
Chapter 6. User Circuitry.......................................................................................................................................10
6.4. Serial port...................................................................................................................................................10
6.9. USB Port.....................................................................................................................................................17
7.1.2. User Mode ...........................................................................................................................................20
8.3. USB port programming...............................................................................................................................21
8.4. Serial Port Programming............................................................................................................................22
Chapter 10. Code Development ...........................................................................................................................30
10.5. Code located in RAM ...............................................................................................................................30
This document may be, wholly or partially, subject to change without notice.
All rights reserved. No one is permitted to reproduce or duplicate, in any form, a part or this entire document 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.
ADC Analog to Digital Converter
BRR Baud Rate Register
CPU Central Processing Unit
DAC Digital to Analog Converter
DMA Direct Memory Access
ERR Error Rate
FDT Flash Development Tool
HMON Embedded Monitor
RTE Renesas Technology Europe Ltd.
RSK Renesas Starter Kit
http://www.renesas.com/
RSO Renesas Solutions Corp.
USB Universal Serial Bus
4
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).
• Sample Application.
• Sample peripheral device initialisation code.
The CPU board contains all the circuitry required for microcontroller operation.
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.
5
Chapter 3. Power Supply
3.1. Requirements
This CPU board operates from a 5V power supply.
A diode provides reverse polarity protection only if a current limiting power supply is used.
All CPU boards are supplied with an E8 debugger. This product is able to power the CPU board with up to 300mA. When the CPU board is
connected to another system, that system should supply power to the CPU board.
All CPU boards have an optional centre positive supply connector using a 2.0mm barrel power jack.
Warning
The CPU board is neither under not over voltage protected. Use a centre positive supply for this board.
3.2. Power – Up Behaviour
When the RSK is purchased the CPU 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. Pressing switch 2 will cause the LEDs to flash at a rate
controlled by the potentiometer.
6
Chapter 4. Board Layout
4.1. Component Layout
The following diagram shows top layer component layout of the board.
Figure 4.1: Board Layout
7
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
8
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.
USB Cable
connector
Optional Expansion Bus
J1 - Applies to
connecter with
micriocontroller pin1
Figure 5.2 : RSK Connctions
9
JA3
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 CPU board microcontroller is reset. RESn
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 E8 debugger.
SW2* Connects to an IRQ line for user controls. IRQ2n , Pin 87
SW3* Connects to the ADC trigger/ IRQ3 input via option 0R link R105. IRQ3n, Pin 83
Table 6-1: Switch Functions
*Refer to schematic for detailed connectivity information.
IRQ0n, Pin 39
(Port 1, pin 4)
(Port F, pin 0)
(Port F, pin 3)
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
Microcontroller Port Pin
Microcontroller Pin
Polarity
shown on silkscreen)
LED0 Port F1 86 Active Low
LED1 Port F2 85 Active Low
LED2* Port A0 30 via R133 Active Low
LED3 Port G0 101 Active Low
*Refer to schematic for detailed connectivity information.
function
Table 6-2: LED Port
Number
6.3. Potentiometer
A single turn potentiometer is connected to AN0 of the microcontroller via R42. This may be used to vary the input analog voltage value to
this pin between AVCC and Ground.
6.4. Serial port
The microcontroller programming serial port (SCI2) is connected to the E8 connector by default. SCI0 is connected to the 9-way D-type
connector labelled J8 via a RS232 transceiver.
10
The microcontroller programming serial port can optionally be disconnected from the E8 and connected to the RS232 transceiver by
moving option resistors. Serial channel 0 is then disconnected. The connections to be moved are listed in the following table.
The board is designed to accept a straight through RS232 cable. A secondary microcontroller serial port is available and connected to the
application headers. Please refer to the schematic diagram for more details on the available connections.
6.5. LCD Module
A LCD module can be fitted to the LCD connector. Any module that conforms to the pin connections and has a KS0066u compatible
controller can be used with the tutorial code. The LCD module uses a 4bit interface to reduce the pin allocation. No contrast control is
provided; this must be set on the display module.
Table 6-4 shows the pin allocation and signal names used on this connector.
The module supplied with the CPU board only supports 5V operation.
LCD
Pin Circuit Net Name Device
Pin
1 Ground - 2 5V Only 3 No Connection - 4 D0_DLCDRS 111
5 R/W (Wired to Write only) - 6 D1_DLCDE 113
7 No Connection - 8 No connection 9 No Connection - 10 No connection 11 D4_DLCDD4 117 12 D5_DLCDD5 118
13 D6_DLCDD6 119 14 D7_DLCDD7 120
Table 6-4 LCD Module Connections
Pin Circuit Net Name Device
Pin
11
6.6. Option Links
Table 6-5 below describes the function of the option links associated with serial configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R6 Serial Port
Configuration
R7 Serial Port
Configuration
R19 RS232 Serial Disables RS232 Serial
R28 Serial Port
Configuration
R29 Serial Port
Configuration
R30 Serial Port
Configuration
R31 Serial Port
Configuration
R32 Serial Port
Configuration
Connects programming port (Rx) to E8
connector.
Connects programming port (Tx) to E8
connector.
Transceiver
Connects serial port RXD0 to SERIAL
D-type connector.
Connects serial port TXD0 to SERIAL
D-type connector.
Routes RS232 serial port Rx to
application connector (JA6)
Routes RS232 serial port Tx to application
connector (JA6)
Connects serial port 1(Tx) to SERIAL
D-type (J8).
Disconnects programming port (Rx)
from E8 connector.
Disconnects programming port (Tx)
from E8 connector.
Enables RS232 Serial
Transceiver
Disconnects serial port RXD0 from
SERIAL D-type connector.
Disconnects serial port TXD0 from
SERIAL D-type connector.
Disconnects RS232 serial port Rx
from application connector (JA6)
Disconnects RS232 serial port Tx
from application connector (JA6)
Disconnects serial port 1 (Tx) from
SERIAL D-type.
R7, R37,
R38
R6, R37,
R38
R29
R28
R31
R30
R16, R26,
R33
R33 Serial Port
Configuration
R37 Serial Port
Configuration
R38 Serial Port
Configuration
Connects serial port 1 (Rx) to D-type (J8).
Connects programming port (Rx) to
external connectors (not E8).
Connects programming port (Tx) to
external connectors (not E8).
Table 6-5: Serial configuration links
Disconnects serial port 1 (Rx) from
SERIAL D-type.
Disconnects programming port (Rx)
to external connectors (not E8).
Disconnects programming port (Tx)
to external connectors (not E8).
R16, R26,
R32
R6, R7,
R38
R6, R7,
R37
12
Table 6-6 below describes the function of the option links associated with Power configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R4 Power Source
Board can be powered from PWR
connector
R14 Power Source Board is powered from VBUS
R17 Power Source Connects external 3.3V power source to
Board_VCC
R21 Power Source
R23 Microcontroller
Board can be powered from E8
Supply power to Microcontroller
Power
Supply
R41 Power Source
Connects regulated 3.3V voltage
source to Board_VCC
R76 LCD Power Source LCD powered from External 5V source
PWR.
R78 CON 5V
CON 5V connected to External power
Disable external power connector R14, R21,
R82
Board is powered by another source
R4, R21,
R82
Disconnects external 3.3V power
R41
source from Board_VCC
Disable E8 power source R4, R14,
R82
Fit Low ohm resistor to measure
current.
Disconnects regulated 3.3V voltage
R41
source from Board_VCC
LCD Powered from a different
R79, R81
source.
CON 5V connected to a different
R80, R82
connection
source PWR.
R79 LCD Power Source LCD powered from VBUS 5V source.
R80 CON 5V
CON 5V connected to VBUS 5V source
connection
R81 LCD Power Source
LCD powered from Microprocessor 5V
Source.
R82 CON 5V
connection
CON 5V connected to Microprocessor
5V Source
Table 6-6: Power configuration links
place.
LCD powered from a different
R76, R81
source.
CON 5V connected to a different
R78, R82
place.
LCD powered from a different source. R76, R79
CON 5V connected to a different place. R4, R14,
R21, R78,
R80
13
Table 6-7 below describes the function of the option links associated with Analog configuration. The default configuration is indicated by
BOLD text.
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R34 Analog Input AN0 channel connected to JA1
R42 Analog Input
R43 Voltage Reference
AN0 channel connected to POT
Voltage Reference set to AVcc signal
Source
R85 Analog Voltage
Source
R86 Analog Voltage
Analog Voltage Source from external
connector.
Links analog ground to digital ground.
Source
R99 Voltage Reference
Voltage Reference set to AVcc signal
Source
R131 Analog Voltage
Source
Analog voltage source from on board
Vcc.
Table 6-7: Analog configuration links
AN0 channel disconnected from JA1
R42
AN0 channel disconnected from POT R34
Voltage Reference taken from external
R99
connector (JA1-7).
Analog voltage source from
R86, R131
Board_Vcc.
Isolates analog ground from digital
R85,R131
ground.
Voltage Reference taken from
R43
external connector (J4).
Analog Voltage Source from external
R85,R86
connector.
14
Table 6-8 below describes the function of the option links associated with Pin function configuration. The default configuration is indicated
by BOLD text.
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R47 Pin function select PIN 28 connected to A14 on JA3
R48 Pin function select
PIN 28 connected to IO6 on JA1
R49 Pin function select PIN 83 connected to LWRn on JA3
R50 Pin function select
R51 Pin function select
PIN 31 connected to PTTX
PIN 20 connected to IO0 on JA1
R52 Pin function select PIN 20 connected to A8 on JA3
R53 Pin function select
PIN 21 connected to IO1 on JA1
R54 Pin function select PIN 21 connected to A9 on JA3
R55 Pin function select
PIN 23 connected to IO2 on JA1
R56 Pin function select PIN 23 connected to A10 on JA3
R57 Pin function select
PIN 25 connected to IO3 on JA1
R58 Pin function select PIN 25 connected to A11 on JA3
R59 Pin function select PIN 27 connected to A13 on JA3
R60 Pin function select
PIN 27 connected to IO5 on JA1
R61 Pin function select PIN 31 connected to A17 on JA3
R62 Pin function select PIN 26 connected to A12 on JA3
PIN 28 disconnected from A14
R48
PIN 28 disconnected from IO6 R47
PIN 83 disconnected from JA3
R105
PIN 31 disconnected from PTTX R61
PIN 20 disconnected from IO0 R52
PIN 20 disconnected from A8
R51
PIN 21 disconnected from IO1 R54
PIN 21 disconnected from A9
R53
PIN 23 disconnected from IO2 R56
PIN 23 disconnected from A10
R55
PIN 25 disconnected from IO3 R58
PIN 25 disconnected from A11
PIN 27 disconnected from A13
R57
R60
PIN 27 disconnected from IO5 R59
PIN 31 disconnected from A17
PIN 26 disconnected from A12
R50
R63
R63 Pin function select
PIN 26 connected to IO4 on JA1
R64 Pin function select PIN 29 connected to A15 on JA3
R65 Pin function select
R66 Pin function select
PIN 29 connected to IO7 on JA1
PIN 32 connected to PTRX
R67 Pin function select PIN 32 connected to A18 on JA3
R68 Pin function select
PIN 33 connected to SCK2
R69 Pin function select PIN 33 connected to A19 on JA3
R70 Pin function select
PIN 36 connected to Un on JA2
R71 Pin function select PIN 36 connected to A21 on JA3
R72 Pin function select
PIN 35 connected to Up on JA2
R73 Pin function select PIN 35 connected to A20 on JA3
R74 Pin function select
PIN 37 connected to Vp on JA2
R75 Pin function select PIN 37 connected to A22 on JA3
R91 Pin function select
R93 Pin function select
R105 Pin function select
PIN 45 connected to DA0 on JA1
PIN 44 connected to DA1 on JA1
PIN 83 connected to SW3
PIN 26 disconnected from IO4 R62
PIN 29 disconnected from A15
R65
PIN 29 disconnected from IO7 R64
PIN 32 disconnected from PTRX R67
PIN 32 disconnected from A18
R66
PIN 33 disconnected from SCK2 R69
PIN 33 disconnected from A19
R68
PIN 36 disconnected from Un R71
PIN 36 disconnected from A21
R70
PIN 35 disconnected from Up R73
PIN 35 disconnected from A20
R72
PIN 37 disconnected from Vp R75
PIN 37 disconnected from A22
R74
PIN 45 disconnected from DA0 R113
PIN 44 disconnected from DA1 R111
PIN 83 disconnected from SW3 R49
R111 Pin function select PIN 44 connected to AN15 on JA5
15
PIN 44 disconnected from AN15
R93
Option Link Settings
Reference Function Fitted Alternative (Removed) Related To
R113 Pin function select PIN 45 connected to AN14 on JA5
R133 Pin function select
R130 Pin function select PIN 30 connected to A16 on JA3
Table 6-9 below describes the function of the option links associated with Clock configuration. The default configuration is indicated by
BOLD text.
Reference Function Fitted Alternative (Removed) Related To
R107 Main OscillatorCrystal Parallel resistor for crystal
R109 48MHz USB
Crystal Oscillator
R110 Main Oscillator Source Connects on board clock to MCU External Clock Source R112,R121
R112 Main Oscillator Source Connects external clock to MCU
R114 48MHz USB
PIN 30 connected to LED2
Table 6-8: Pin function configuration links
Option Link Settings
Parallel resistor for crystal
Connected to Ring Connector
PIN 45 disconnected from AN14
PIN 30 disconnected from LED2 R130
PIN 30 disconnected from A16
Not fitted
Not fitted
Disconnects external clock
connection to MCU
Disconnected from Ring Connector
R91
R133
R110,R121
R117,
Crystal Oscillator
R117 48MHz USB
Crystal Oscillator
R118 48MHz USB
Crystal Oscillator
R121 Main Oscillator Source Connects external clock to MCU
R129 Crystal Selection Fit if 16MHz Crystal Fitted
R132 Crystal Selection
Force clock Input low.
USB uses main oscillator
Connected to Ring Connector
Fit if 24MHz Crystal Fitted
Table 6-9: Clock configuration links
USB Uses 48MHz Oscillator R114,R118
Disconnected from Ring Connector
Disconnects external clock
connection to MCU
24MHz Crystal Fitted
16MHz Crystal Fitted R129
R118
R114,R117
R110,R112
R132
6.7. Oscillator Sources
A crystal oscillator is fitted on the CPU board and used to supply the main clock input to the Renesas microcontroller. Another crystal
oscillator is provided to drive the USB clock. details the oscillators that are fitted and alternative foot prints provided on this
CPU board
Warning: When replacing the default oscillator with that of another frequency, the debugging monitor will not function unless the following
are corrected:
• FDT programming kernels supplied are rebuilt for the new frequency
• The supplied HMON debugging monitor is updated for baud rate register settings.
The user is responsible for code written to support operating speeds other than the default. See the HMON User Manual for details of
making the appropriate modifications in the code to accommodate different operating frequencies.
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 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 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.
6.9. USB Port
This RSK has a Full-speed (12 Mbps) USB port compliant to USB 2.0 specification. It is available as USB port on the RSK. This port is used
by HMon to perform Boot Mode programming when a valid monitor is not detected on the microcontroller. This port also allows Boot mode
programming using USB Direct connection and FDT which does not require E8. For more details please refer to H8S/2215 Group
Hardware Manual.
17
Chapter 7. Modes
The CPU board supports User mode and Boot mode. User mode may be used to run and debug user code, while Boot mode may only be
used to program the Renesas microcontroller with program code via the USB interface. To program the user flash, the device must be in
Boot mode. Further details of programming the flash are available in the H8S/2215 Group hardware manual.
When using the E8 debugger supplied with the RSK the mode transitions are executed automatically. The CPU board provides
the capability of changing between User and Boot / User Boot modes using a simple latch circuit. This is only to provide a
simple mode control on this board when the E8 is not in use.
Do not use the Boot Latch function while the E8 is connected.
To manually enter boot mode, press and hold the SW1/BOOT. The mode pins are held in their boot states 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.
More information on the operating modes can be found in the device hardware manual.
7.1. FDT Settings
In the following sections the tables identify the FDT settings required to connect to the board using the E8Direct debugger interface. The ‘A’
interface is inverted on the RSK board. This is to ensure the board can function in a known state when the E8 is connected but not
powered. The E8 Debugger contains the following resistors.
E8 Pin Resistor
A Pull Down (100k)
B Pull Up (100k)
C Pull Down (100k)
D Pull Up (100k)
Table 7-1: E8 Mode Pin drives
18
7.1.1. Boot mode
The boot mode settings for this CPU board are shown in belowTable 7-2:
MD2 MD1
MD0 LSI State after Reset
End
FDT Settings
A B
1 0 1 Boot Mode 0 0
Table 7-2: Mode pin settings
The following picture shows these settings made in the E8Direct configuration dialog from HEW.
Figure 7.1: Boot Mode FDT configuration
19
7.1.2. User Mode
For the device to enter User Mode, reset must be held active while the microcontroller mode pins are held in states specified for User Mode
operation. 100K pull up and pull down resistors are used to set the pin states during reset.
The H8SX/2215R supports four user modes. The memory map in all of these modes is 16Mbyte in size. The default user mode for CPU
board supporting H8S2215R is mode 7.
MD2 MD1
MD0 LSI State after Reset
End
FDT Settings
A B
1 1 1 User Mode 0 1
Table 7-3: Mode pin settings
Figure 7.2: User mode FDT configuration
20
Chapter 8. Programming Methods
All of the Flash ROM on the device can be programmed when the device is in Boot mode. Once in boot mode, the boot-loader program
pre-programmed into the microcontroller executes and attempts a connection with a host (for example a PC). On establishing a connection
with the microcontroller, the host may then transmit program data to the microcontroller via the appropriate programming port.
Table 8-1 below shows the programming port for this Renesas Microcontroller and its associated pins
Programming Port Table – Programming port pins and their CPU board signal names
E8 Port E8_TXD, PIN 31 E8_RXD, PIN 32
CPU board Signal Name PTTX (Port A, Pin1) PTRX (Port A, Pin2)
Table 8-1: Serial Port Boot Channel
8.1. E8 Header
This device supports an E8 debugging interface. The E8 provides additional debugging features including hardware breakpoints and
hardware trace capability. (Check with the website at
Connect the E8 to port labelled E8.
To enable the E8 functions the user must ensure that the jumper links in position J13 & J15 are removed (Default positions).
www.renesas.com or your distributor for a full feature list).
8.2. E10A Header
This device supports an optional E10A debugging interface. The E10A provides additional debugging features including hardware
breakpoints and hardware trace capability. (Check with the website at
To enable the E10A functions the user needs to fit a jumper link in position J13.
When J13 is fitted the microcontroller will not operate correctly unless operated via the E10A.
www.renesas.com or your distributor for a full feature list).
8.3. USB port programming
This sequence is not required when debugging using the E8 supplied with the kit.
The microcontroller must enter boot mode for programming, and the programming port must be connected to a host for program download.
To execute the boot transition, and allow programs to download to the microcontroller, the user must perform the following procedure:
Press the BOOT switch and keep this held down.
Press the RESET switch once, and release.
Release the BOOT switch The BOOT LED will be illuminated.
Now connect a USB cable between the host PC and USB port of the RSK.
The Flash Development Toolkit (FDT) is supplied to allow programs to be loaded directly on to the board using this method. Please select
USB Direct interface while downloading the program.
Do not use the on board boot latch function when the E8 is connected.
21
8.4. Serial Port Programming
This sequence is not required when debugging using the E8 supplied with the kit.
The microcontroller must enter boot mode for programming, and the programming port must be connected to a host for program download.
To execute the boot transition, and allow programs to download to the microcontroller, the user must perform the following procedure:
Ensure the relevant option links are made from
Connect a 1:1 serial cable between the host PC and the CPU board
Depress the BOOT switch and keep this held down
Depress the RESET switch once, and release
Release the BOOT switch
The Flash Development Toolkit (FDT) is supplied to allow programs to be loaded directly on to the board using this method.
Table 6-5
22
Chapter 9. Headers
9.1. Microcontroller Headers
Table 9-1 to show theTable 9-4 microcontroller pin headers and their corresponding microcontroller connections. The header pins
connect directly to the microcontroller pin unless otherwise stated.
1 Open drain RESn 72 2 External Clock Input CON_EXTAL* 76
3 Open drain NMI 70 4 Regulated Supply (Vss) --- --5 Open drain output --- --- 6 Serial Port TxD0* 88
7 Open drain WUP IRQ0 39 8 Serial Port RxD0* 89
9 Open drain IRQ2 87 10 Serial Port SCK0* 90
11 Up/down UD 99 12 Serial Port Handshake --- --13 Motor control Up* 35 14 Motor control Un* 36
15 Motor control Vp* 37 16 Motor control Vn 38
17 Motor control Wp* 40 18 Motor control Wn 41
19 Output TMR0 98 20 Output TMR1 97
21 Input TRIGa 100 22 Input TRIGb 42
23 Open drain ADTRG_IRQ3n* 83 24 Tristate Control TRISTn 96
25 Reserved ---
Device
Pin
---
Pin Generic Header Name CPU board
Signal Name
26 Reserved ---
Device
Pin
---
Table 9-6: JA2 Standard Generic Header
27
JA3
Pin Generic Header Name CPU board
Signal Name
Device
Pin
Pin Generic Header Name CPU board
Signal Name
Device
Pin
1 Address Bus A0 11 2 Address Bus A1 13
3 Address Bus A2 14 4 Address Bus A3 15
5 Address Bus A4 16 6 Address Bus A5 17
7 Address Bus A6 18 8 Address Bus A7 19
9 Address Bus A8* 20 10 Address Bus A9* 21
11 Address Bus A10* 23 12 Address Bus A11* 25
13 Address Bus A12* 26 14 Address Bus A13* 27
15 Address Bus A14* 28 16 Address Bus A15* 29
17 Data Bus D0_DLCDRS 111 18 Data Bus D1_DLCDE 113
19 Data Bus D2 115 20 Data Bus D3 116
21 Data Bus D4_DLCD4 117 22 Data Bus D5_DLCD5 118
23 Data Bus D6_DLCD6 119 24 Data Bus D7_DLCD7 120
25 Read/Write Control RDn 80 26 Read/Write Control LWRn* 83
27 Memory Select CS0n 105 28 Memory Select CS1n 104
29 Data Bus D8 2 30 Data Bus D9 3
31 Data Bus D10 4 32 Data Bus D11 5
33 Data Bus D12 6 34 Data Bus D13 7
35 Data Bus D14 8 36 Data Bus D15 9
37 Address Bus A16* 30 38 Address Bus A17* 31
39 Address Bus A18* 32 40 Address Bus A19* 33
41 Address Bus A20* 35 42 Address Bus A21* 36
43 Address Bus A22* 37 44 External Device Clock PHI 78
45 Memory Select CS2n 103 46 Bus Control ASn 79
47
1 DMA --- --- 2 DMA --- --3 DMA --- --- 4 Standby (Open drain) STBYn 71
5 Host Serial RS232TX* --- 6 Host Serial RS232RX* --7 Serial Port RxD1 92 8 Serial Port TxD1 91
9 Serial Port Synchronous PTTX* 31 10 Serial Port SCK1 93
11 Serial Port Synchronous SCK2* 33 12 Serial Port Synchronous PTRX* 32
13 Reserved 14 Reserved
15 Reserved 16 Reserved
17 Reserved 18 Reserved
19 Reserved 20 Reserved
21 Reserved 22 Reserved
23 Reserved 24 Reserved
25 Reserved 26 Reserved
Table 9-9: JA6 Optional Generic Header
* Marked pins are affected by option links (see 6.6).
29
Chapter 10. Code Development
10.1. Overview
Note: For all code debugging using Renesas software tools, the CPU board must either be connected to a PC serial port via a serial cable
or a PC USB port via an E8. An E8 is supplied with the RSK product.
The HMON embedded monitor code is modified for each specific Renesas microcontroller. HMON enables the High-performance
Embedded Workshop (HEW) development environment to establish a connection to the microcontroller and control code execution.
Breakpoints may be set in memory to halt code execution at a specific point.
Unlike other embedded monitors, HMON is designed to be integrated with the user code. HMON is supplied as a library file and several
configuration files. When debugging is no longer required, removing the monitor files and library from the code will leave the user’s code
operational.
The HMON embedded monitor code must be compiled with user software and downloaded to the CPU board, allowing the users’ code to
be debugged within HEW.
Due to the continuous process of improvements undertaken by Renesas the user is recommended to review the information provided on
the Renesas website at
www.renesas.com to check for the latest updates to the Compiler and Debugger manuals.
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 64k code and data. To use the compiler with programs greater than this size you will 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
The HMON library is built to support 16Mbyte Advanced Mode only, for the H8S family.
10.4. Breakpoint Support
The device does not include a user break controller. No breakpoints can be located in ROM code. However, code located in RAM may
have multiple breakpoints limited only by the size of the On-Chip RAM. To debug with breakpoints in ROM you need to purchase the
E10A-USB on-chip debugger from your local disctributor.
10.5.Code located in RAM
Double clicking in the breakpoint column in the HEW code window sets the breakpoint. Breakpoints will remain unless they are do uble
clicked to remove them. (See the Tutorial Manual for more information on debugging with the HEW environment.)
10.6. HMON Code Size
HMON is built along with the user’s code. Certain elements of the HMON code must remain at a fixed location in memory. Table 10-1
details the HMON components and their size and location in memory. For more information, refer to the map file when building code.
30
Section Description Start
Location
RESET_VECTOR HMON Reset Vector (Vector 0)
Required for Start-up of HMON
SCI_VECTORS HMON Serial Port Vectors (Vector 88, 89, 90) H' 0000 0160 0x000C
PHMON HMON Code H’0000 3000 0x22C4
CHMON HMON Constant Data H’0000 52C4 0x0148
BHMON HMON Un-initialised data Variable 0x020F
FDTInit FDT Initialization functions
This is at a fixed location and must not be moved. Should
the kernel need to be moved it must be re-compiled.
UGenU FDT UserMode MicroKernel
This is at a fixed location and must not be moved. Should
the kernel need to be moved it must be re-compiled.
CUser_Vectors
Pointer used by HMON to point to the start of user code.
H’ 0000 0000 0x0004
H’0000 1000
H’0003 F600
H’0000 0800 0x0004
0x0114
0x07AC
Size
(H’bytes)
Table 10-1: Memory Map for HMON Components
31
10.7. Memory Map
The memory map shown in this section visually describes the locations of program code sections related to HMON, the FDT kernels and
the supporting code within the ROM/RAM memory areas of the microcontroller.
Figure 10.1: Memory Map
10.8. Baud Rate Setting
HMON is initially set to connect at 250000Baud. The value set in the baud rate register for the microcontroller must be altered if the user
wishes to change either the serial communication baud rate of the serial port or the operating frequency of the microcontroller. This value
is defined in the hmonserialconfiguser.h file, as SCI_CFG_BRR (see the Serial Port section for baud rate register setting values). The
project must be re-built and the resulting code downloaded to the microcontroller once the BRR value is changed. Please refer to the
HMON User Manual for further information.
32
10.9. Interrupt mask sections
HMON has an interrupt priority of ‘6’. The serial port has an interrupt priority of ‘7’. Modules using interrupts should be set to lower than this
value (5 or below), so that serial communications and debugging capability is maintained.
33
Chapter 11. Component Placement
Figure 11-1: Component Placement
34
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 installed in the
Manual Navigator.
For information about the H8S/2215R series microcontrollers refer to the H8S/2215 Group Hardware Manual
For information about the H8S/2215R assembly language, refer to the H8S Series Programming Manual
Further information available for this product can be found on the Renesas website at:
http://www.renesas.com/renesas_starter_kits
General information on Renesas Microcontrollers can be found on the following website.
Global:
http://www.renesas.com/
35
Renesas Starter Kit for H8S2215R
User's Manual
Publication Date Rev.1.00 25.10.2006
Published by:
Renesas Technology Europe Ltd.
Dukes Meadow, Millboard Road, Bourne End Buckinghamshire
SL8 5FH, United Kingdom