Renesas H8S2215R User Manual

REG10J0022-0100
Renesas Starter Kit for H8S2215R
User's Manual
RENESAS SINGLE-CHIP MICROCOMPUTER
H8S FAMILY
Rev.1.00 Renesas Technology Europe Ltd. Revision date 25.10.2006 www.renesas.com
Chapter 1. Preface..................................................................................................................................................4
Chapter 2. Purpose.................................................................................................................................................5
Chapter 3. Power Supply........................................................................................................................................6
3.1. Requirements...............................................................................................................................................6
3.2. Power – Up Behaviour .................................................................................................................................6
Chapter 4. Board Layout.........................................................................................................................................7
4.1. Component Layout.......................................................................................................................................7
4.2. Board Dimensions........................................................................................................................................8
Chapter 5. Block Diagram.......................................................................................................................................9
Chapter 6. User Circuitry.......................................................................................................................................10
6.1. Switches.....................................................................................................................................................10
6.2. LEDs...........................................................................................................................................................10
6.3. Potentiometer.............................................................................................................................................10
6.4. Serial port...................................................................................................................................................10
6.5. LCD Module................................................................................................................................................11
6.6. Option Links................................................................................................................................................12
6.7. Oscillator Sources ......................................................................................................................................16
6.8. Reset Circuit...............................................................................................................................................17
6.9. USB Port.....................................................................................................................................................17
Chapter 7. Modes..................................................................................................................................................18
7.1. FDT Settings...............................................................................................................................................18
7.1.1. Boot mode............................................................................................................................................19
7.1.2. User Mode ...........................................................................................................................................20
Chapter 8. Programming Methods........................................................................................................................21
8.1. E8 Header ..................................................................................................................................................21
8.2. E10A Header..............................................................................................................................................21
8.3. USB port programming...............................................................................................................................21
8.4. Serial Port Programming............................................................................................................................22
Chapter 9. Headers...............................................................................................................................................23
9.1. Microcontroller Headers.............................................................................................................................23
9.2. Application Headers ...................................................................................................................................27
Chapter 10. Code Development ...........................................................................................................................30
10.1. Overview...................................................................................................................................................30
10.2. Compiler Restrictions...............................................................................................................................30
10.3. Mode Support...........................................................................................................................................30
10.4. Breakpoint Support...................................................................................................................................30
10.5. Code located in RAM ...............................................................................................................................30
10.6. HMON Code Size.....................................................................................................................................30
ii
10.7. Memory Map.............................................................................................................................................32
10.8. Baud Rate Setting ....................................................................................................................................32
10.9. Interrupt mask sections............................................................................................................................33
Chapter 11. Component Placement......................................................................................................................34
Chapter 12. Additional Information........................................................................................................................35
iii

Chapter 1. Preface

Cautions
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.
Copyright
© Renesas Technology Europe Ltd. 2006. All rights reserved. © Renesas Technology Corporation. 2006. All rights reserved. © Renesas Solutions Corporation. 2006. All rights reserved. Website:
Glossary
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.
Programming via SCI 2 SCI 0 Fit Remove
E8 E8 RS232 R6, R7, R28, R29 R37, R38 Serial RS232 Disconnected R37, R38 R6, R7, R28, R29
Table 6-3 - Serial Option Links
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
:
Table 6-10
Component
Crystal (X1) Not Fitted 48MHz (HC49/4H package) Crystal (X2) Fitted 24MHz (HC49/4H package)
Table 6-10: Oscillators / Resonators
16
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.
J1
Pin Circuit Net Name Device
Pin
1 EMLEn 1 2 D8 2 3 D9 3 4 D10 4 5 D11 5 6 D12 6 7 D13 7 8 D14 8 9 D15 9 10 Board_VCC 10 11 A0 11 12 GROUND 12 13 A1 13 14 A2 14 15 A3 15 16 A4 16 17 A5 17 18 A6 18 19 A7 19 20 A8_IO0 20 21 A9_IO1 21 22 No connection 22 23 A10_IO2 23 24 No connection 24 25 A11_IO3 25 26 A12_IO4 26 27 A13_IO5 27 28 A14_IO6 28
Pin Circuit Net Name Device
Pin
29 A15_IO7 29 30 A16_LED2 30
Table 9-1: J1
23
J2
Pin Circuit Net Name Device
Pin
Pin Circuit Net Name Device
Pin
1 A17_PTTX 31 2 A18_PTRX 32 3 A19_SCK2 33 4 No connection 34 5 A20_Up 35 6 A21_Un 36 7 A22_Vp 37 8 Vn 38 9 IRQ0n 39 10 Wp 40 11 Wn 41 12 TRIGb 42 13 CON_AVSS 43 14 AN15_DA1 44 15 AN14_DA0 45 16 AN3 46 17 AN2 47 18 AN1 48 19 AN0_ADPOT 49 20 CON_VREF 50 21 CON_AVCC 51 22 No connection 52 23 USPND 53 24 No connection 54 25 VBUS_DET 55 26 UBPMn 56 27 Board_VCC (DRVCC) 57 28 No connection (USD-) 58 29 No connection (USD+) 59 30 GROUND (DRVSS) 60
Table 9-2: J2
24
J3
Pin Circuit Net Name Device
Pin
Pin Circuit Net Name Device
Pin
1 GROUND 61 2 GROUND (DRVSS) 62 3 No connection (PLLCAP) 63 4 CON_PLLVCC 64 5 CON_XTAL48 65 6 CON_EXTAL48 66 7 MD0 67 8 MD1 68 9 FWE 69 10 NMI 70 11 STBYn 71 12 RESn 72 13 GROUND 73 14 CON_XTAL 74 15 Board_VCC 75 16 CON_EXTAL 76 17 MD2 77 18 PHI 78 19 ASn 79 20 RDn 80 21 HWRn 81 22 No connection 82 23 LWRn_ADTRG_IRQ3n 83 24 No connection 84 25 LED1 85 26 LED0 86 27 IRQ2n 87 28 TxD0 88 29 TxD0 89 30 SCK0 90
Table 9-3: J3
25
J4
Pin Circuit Net Name Device
Pin
Pin Circuit Net Name Device
Pin
1 TxD1 91 2 RxD1 92 3 SCK1 93 4 PUD+ 94 5 No connection 95 6 TRISTn 96 7 TMR1 97 8 TMR0 98 9 UD 99 10 TRIGa 100 11 LED3 101 12 IRQ7n 102 13 CS2n 103 14 CS1n 104 15 CS0n 105 16 TDO 106 17 TCK 107 18 TMS 108 19 TRISTn 109 20 TDI 110 21 D0_DLCDRS 111 22 No connection 112 23 D1_DLCDE 113 24 No connection 114 25 D2 115 26 D3 116 27 D4_DLCDD4 117 28 D5_DLCDD5 118 29 D6_DLCDD6 119 30 D7_DLCDD7 120
Table 9-4: J4
26

9.2. Application Headers

Table 9-5 and belowTable 9-9 show the standard application header connections.
JA1
Pin Generic Header Name CPU board
Signal Name
1 Regulated Supply (5V) --- --- 2 Regulated Supply 1 (Gnd) --- --­3 Regulated Supply (3V3) --- --- 4 Regulated Supply 2 (Gnd) --- --­5 Analog Supply AVcc* 51 6 Analog Supply AVss 43 7 Analog Reference AVref* 50 8 ADTRG ADTRG_IRQ3n* 83 9 AD0 AN0* 49 10 AD1 AN1 48 11 AD2 AN2 47 12 AD3 AN3 46 13 DAC0 DAC0* 45 14 DAC1 DA1* 44 15 IOPort IO0* 20 16 IOPort IO1* 21 17 IOPort IO2* 23 18 IOPort IO3* 25 19 IOPort IO4* 26 20 IOPort IO5* 27 21 IOPort IO6* 28 22 IOPort IO7* 29 23 Open drain IRQ3n ADTRG_IRQ3n* 83 24 IIC_EX --- --­25 IIC_SDA --- --- 26 IIC_SCL --- ---
Device
Pin
Table 9-5: JA1 Standard Generic Header
Pin Generic Header Name CPU board
Signal Name
Device
Pin
JA2
Pin Generic Header Name CPU board
Signal Name
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
Data Bus Strobe HWRn 81
48
Data Bus Strobe LWRn* 83
49 Reserved 50 Reserved
Table 9-7: JA3 Expansion bus Header
28
JA5
Pin Generic Header Name CPU board
Signal Name
Device
Pin
Pin Generic Header Name CPU board
Signal Name
Device
Pin
1 AD4 AN14* 45 2 AD5 AN15* 44 3 AD6 --- --- 4 AD7 --- --­5 CAN1TX --- --- 6 CAN1RX --- --­7 CAN2TX --- --- 8 CAN2RX --- --­9 AD8 --- --- 10 AD9 --- --­11 AD10 --- --- 12 AD11 --- --­13 TIOC0A --- --- 14 TIOC0B --- --­15 TIOC0C --- --- 16 M2_TRISTn --- --­17 TCLKC --- --- 18 TCLKD --- --­19 M2_Up --- --- 20 M2_Un --- --­21 M2_Vp --- --- 22 M2_Vn --- --­23 M2_Wp --- --- 24 M2_Wn --- ---
Table 9-8: JA5 Optional Generic Header
JA6
Pin Generic Header Name CPU board
Signal
Device
Pin
Pin Generic Header Name CPU board
Signal Name
Device
Pin
Name
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
©2006 Renesas T echnology Europe and Renesas Solutions Corp., All Rights Reserved.
Renesas Starter Kit for H8S2215R
User's Manual
Renesas Technology Europe Ltd.
Dukes Meadow, Millboard Road, Bourne End Buckinghamshire SL8 5FH, United Kingdom
Loading...