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
Loading...
+ 25 hidden pages