Renesas H8SX/1582 User Manual

Browse online or download User Manual for Unknown Renesas H8SX/1582. Renesas H8SX/1582 User`s manual

  • Download
  • Add to my manuals
  • Print

Summary of Contents

Page 1 - User's Manual

REG10J0001-0100 D005961_11 Renesas Starter Kit for H8SX1582User's ManualRENESAS SINGLE-CHIP MICROCOMPUTER H8SX FAMILY

Page 2 - Table of Contents

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 T

Page 3

6.4.Serial port The microcontroller programming serial port (SCI4) is connected to the E8 connector. This serial port can optionally be connected to

Page 4

6.5.LCD Module A LCD module can be connected to the connector J13. Any module that conforms to the pin connections and has a KS0066u compatible contr

Page 5 - Chapter 2.Purpose

6.6.Option Links Table 6-6 below describes the function of the option links contained on this CPU board. The default configuration is indicated by BO

Page 6 - Chapter 3.Power Supply

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. Table

Page 7 - Chapter 4.Board Layout

Chapter 7.Modes The CPU board supports User mode, Boot mode and User Boot mode. User mode may be used to run and debug user code, while Boot mode may

Page 8 - 4.2.Board Dimensions

7.1.1.Boot mode The boot mode settings for this CPU board are shown in Table 7-2 below: FDT Settings MD1 MD0 LSI State after Reset End A B 1 0 Boo

Page 9 - Chapter 5.Block Diagram

7.1.2.User Boot mode A Note on Mats: The H8SX/1582 possesses two distinct areas of Flash, User MAT (768KByte) and User Boot MAT (8KByte). The User Bo

Page 10 - Chapter 6.User Circuitry

7.1.3.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 Use

Page 11 - 6.4.Serial port

Chapter 8.Programming Methods All of the Flash ROM on the device (i.e. both MATs) can be programmed when the device is in Boot mode. Once in boot mod

Page 12 - 6.5.LCD Module

Table of Contents Table of Contents...

Page 13 - 6.6.Option Links

Chapter 9.Headers 9.1.Microcontroller Headers Table 9-1 to Table 9-4 show the microcontroller pin headers and their corresponding microcontroller con

Page 14 - 6.8.Reset Circuit

J2 Pin Circuit Net Name Device Pin Pin Circuit Net Name Device Pin 1 PIN31 31 2 PIN32 32 3 PIN33 33 4 PIN34 34 5 PIN35 35 6 IO_0 36 7 P

Page 15 - Chapter 7.Modes

J3 Pin Circuit Net Name Device Pin Pin Circuit Net Name Device Pin 1 DLCD7 61 2 GROUND 62 3 PIN63 63 4 UC_VCC 64 5 DLCDE 65 6 DLCD6 66

Page 16 - 7.1.1.Boot mode

J4 Pin Circuit Net Name Device Pin Pin Circuit Net Name Device Pin 1 E8_BUSY 91 2 MD1_E8B 92 3 AD4 93 4 AD5 94 5 AD6 95 6 AD7 96 7 AD0

Page 17 - 7.1.2.User Boot mode

9.2.Application Headers Table 9-5 and Table 9-6 below show the standard application header connections. JA1 Pin Generic Header Name CPU board Signa

Page 18 - 7.1.3.User Mode

JA5 Pin Generic Header Name CPU board Signal Name Device Pin Pin Header Name CPU board Signal Name Device Pin 1 ADC4 I4 AD4 93 2 ADC5 I5 A

Page 19 - 8.2.E10A Header

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 s

Page 20 - Chapter 9.Headers

Section Description Start Location Size (H’bytes) RESET_VECTOR HMON Reset Vector (Vector 0) Required for Start-up of HMON H’ 0000 0000 0x0004 SC

Page 21

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 t

Page 22

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 altere

Page 23

10.8. Baud Rate Setting...

Page 24 - 9.2.Application Headers

Chapter 11. Component Placement 30

Page 25

Chapter 12. Additional Information For details on how to use High-performance Embedded Workshop (HEW), refer to the HEW manual available on the CD o

Page 26 - Chapter 10.Code Development

Renesas Starter Kit for H8SX1582 User's Manual Renesas Technology Europe Ltd. Dukes Meadow, Millboard Road,

Page 27

REG10J0002-0100 D005963_11 Renesas Starter KitRSK H8SX1582 Tutorial ManualRENESAS SINGLE-CHIP MICROCOMPUTER Rev

Page 28 - 10.7.Memory Map

Table of Contents Table of Contents...

Page 29 - 10.9.Interrupt mask sections

Chapter 1. Preface Cautions This document may be, wholly or partially, subject to change without notice. All rights reserved. No one is permitted t

Page 30

Chapter 2.Introduction This manual is designed to answer, in tutorial form, the most common questions asked about using a Renesas Starter Kit (RSK):

Page 31

Chapter 3.Tutorial Project Workspace The workspace includes all of the files for two build configurations. The tutorial code is common to both the De

Page 32

Chapter 4. Project Workspace 4.1.Introduction HEW is an integrated development tool that allows the user to write, compile, program and debug a soft

Page 33 - RSK H8SX1582 Tutorial Manual

• The project name field will be pre-filled to match the workspace name above; this name may be changed. Note: HEW allows you to add multiple projec

Page 34

Chapter 1. Preface Cautions This document may be, wholly or partially, subject to change without notice. All rights reserved. No one is permitted t

Page 35 - Chapter 1. Preface

Chapter 5. Building the Tutorial Project The tutorial project build settings have been pre-configured in the tool-chain options. To view the tool ch

Page 36 - Chapter 2.Introduction

The Quick Start Guide provided with the RSK board gives detailed instructions on how to connect the E8 to the host computer. The following assumes th

Page 37

• Select E8DIRECT as the communication Port • Press <Next>. • The default settings are suitable for an un-modified RSK board. • Confirm t

Page 38 - 4.1.Introduction

• Confirm the default selections of ‘Automatic’ and ‘Advanced’. • Press <Next>. • The following warning dialog will be displayed. • Press

Page 39 - 4.3.2.Debug Session

Damage to the microcontroller can be sustained with incorrect settings. • Confirm the mode pin settings. • Press <Finish>. The Flash configu

Page 40 - 5.2.Connecting the debugger

A further dialog will be displayed to confirm if it acceptable to assume only one E8 device will be connected to the host computer while using this p

Page 41

Chapter 6.Downloading and Running the Tutorial Once the code has been built in HEW it needs to be downloaded to the RSK. Now that you are connected t

Page 42

We will now skip over the initialisation code and proceed to the main tutorial. • Open the file called ‘resetprg.c’ by double clicking it in the pr

Page 43

The code window will open ‘main.c’ and show the new position of the program counter. Support for the LCD display is included in the tutorial code. W

Page 44 - 5.3.1.Connecting To HMon

The code will run and flash the LEDs 200 times. The debugger will not stop running until all 200 flashes have completed or a button is pressed on the

Page 45

Chapter 2.Purpose This RSK is an evaluation tool for Renesas microcontrollers. Features include: • Renesas Microcontroller Programming. • User Cod

Page 46

• Open the file ‘main.c’ • Insert a breakpoint on ‘StaticsTest();’. The statics test is used to demonstrate that the initialisation has successfull

Page 47

Chapter 7.Project Files 7.1.Standard Project Files The RSK tutorials are configured so that it is possible to provide the same tutorial code on multi

Page 48

7.1.2.Board initialisation code (Hwsetup.c / hwsetup.h) There are four common stages to the configuration of the microcontroller device. The code to

Page 49

7.1.3.Main tutorial code (Main.c / main.h) The main tutorial code is common to all tutorial projects. The display initialisation and string display f

Page 50

Chapter 8.Additional Information For details on how to use High-performance Embedded Workshop (HEW), refer to the HEW User manual available on the CD

Page 51 - Chapter 7.Project Files

REVISION HISTORY Description Rev. Date Page Summary 1.00 25.11.2005 - First issue

Page 52

Renesas Starter Kit Tutorial Manual Renesas Technology Europe Ltd. Dukes Meadow, Millboard Road, Bourne End Buck

Page 53

REJ10J0807-0200(T) E8 EmulatorRev.2.00 Aug. 1, 2005 Additional Document for User's ManualR0E000080KCE00EP2Renesas Microcomputer Development E

Page 54

1. Renesas Technology Corp. puts the maximum effort into making semiconductor productsbetter and more

Page 55 - REVISION HISTORY

Contents Section 1 Specifications of the E8 Emulator...

Page 56 - Tutorial Manual

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 curren

Page 57 - E8 Emulato

1 Section 1 Specifications of the E8 Emulator Table 1.1 shows the specifications of the R8C/10, R8C/11, R8C/12 and R8C/13 Groups E8 Emulator. Table

Page 58

3 Section 2 Connecting the Emulator with the User System Before connecting an E8 emulator (hereafter referred to as emulator) with the user system,

Page 59 - Contents

5 Section 3 Pin Assignments of the E8 Connector Figure 3.1 shows the pin assignments of the connector. Pin 1 markPin 2Pin 1 markConnectorPin NO.R8

Page 60

7 Section 4 Example of E8 Connection Figure 4.1 shows the connecting example. *: Open-colloctor bufferMODEP00/TxD11P37/RxD1CNVssRESETR8C/13R8C/12R

Page 61 - User system interface cable

8 Notes: 1. P00 and P37 pins are used by the E8 emulator. Pull up and connect the emulator and MCU pins. P00/TxD11P37/RxD1R8C/13R8C/12R8C/11R8C/10P

Page 62

9 4. The RESET pin is used by the E8 emulator. Create the following circuit by connecting the open-collector output buffer so that reset input can b

Page 63

10 8. Figure 4.6 shows the interface circuit in the E8 emulator. Use this figure as a reference when determining the pull-up resistance value. P37CN

Page 64

11 Section 5 Differences between the MCUs and the Emulator 1. Program area for the E8 emulator Table 5.1 lists the program area for the E8 emula

Page 65 - *: Open-collector buffer

12 2. ID code of flash memory When starting up the High-performance Embedded Workshop in ‘Does not download emulator firmware’ mode, the dialog bo

Page 66

13 3. When the emulator system is initiated, it initializes the general registers and part of the control registers as shown in Table 5.3. Table 5.

Page 67

Chapter 4.Board Layout 4.1.Component Layout The following diagram shows top layer component layout of the board. JA5 JA1JA6 JA2J1J3J2User LEDsPowerA

Page 68

14 11 SFR used by the program for the E8 emulator The SFR listed in Table 5.4 is used by the program for the E8 emulator as well as the user progra

Page 69

15 16. Debugging of a watchdog timer During the program for the E8 emulator operation, the watchdog timer is being refreshed. Note that if a memory

Page 70

16 18. Exceptional step operation a) Software-interrupt instruction STEP operation cannot be performed by continuously executing the internal proce

Page 71

17 Section 6 Applicable Tool Chain and Partner Tools With the R8C/Tiny Series E8 emulator, you can debug a module created by the inhouse tool chain

Page 72

E8 EmulatorAddtional Document for User's Manual

Page 73

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

Page 74

Chapter 5.Block Diagram Figure 5-1 shows the CPU board components and their connectivity. MicrocontrollerUser: 4 LEDS1Green, 1Orange, 2RedApplicat

Comments to this Manuals

No comments