Renesas H8S/2378F Technical Information

Browse online or download Technical Information for Networking Renesas H8S/2378F. Renesas H8S/2378F Technical information User Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 109
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
To our customers,
Old Company Name in Catalogs and Other Documents
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Renesas Electronics website: http://www.renesas.com
April 1
st
, 2010
Renesas Electronics Corporation
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry
.
Page view 0
1 2 3 4 5 6 ... 108 109

Summary of Contents

Page 1 - To our customers

To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology C

Page 2

2. H8S/2378F (H8S Family) 2.1 Flash Memory Configuration The flash memory of the H8S/2378F has two types of memory MATs: User MAT (user area) and us

Page 3

7.3.4 Flash Memory Programming (FDTWrite.c) (1) WriteInit The user area is selected, the operating frequency is specified, and the initial setting of

Page 4

(3) Executing programming end processing (WriteFLASH) Flash memory programming end processing is partially shown below. For details, refer to Source F

Page 5 - Renesas Technology Corp

8. Programming Guide This section describes how to write a program using the 0.18-μm F-ZTAT microcomputer standard boot program. The section also cont

Page 6 - Contents

8.2.3 Selecting a Library To select a library, set the corresponding bit of the FPCS or FECS register to 1. Table 8-3 Registers for Selecting a Pr

Page 7

8.3 Using the Libraries This section describes how to use the libraries. 8.3.1 Transfer Perform transfer operation using the procedure below: (1) S

Page 8

8.4 Modules There are the following libraries: Transfer library, erasing library, and programming library. The function of each module is shown below:

Page 9 - 1. Introduction

8.5.2 Erase Initial Setting Name Erase initial setting Type typedef BYTE (*InitPtr)(WORD); Function Performs erase initial setting. Argument WORD

Page 10 - 2. H8S/2378F (H8S Family)

8.5.5 Programming Name Programming Type typedef BYTE (*WritePtr)(BYTE *, BYTE *); Function Performs programming. Arguments BYTE * (first argument)

Page 11

Flash Development Toolkit Application Note (Applications) User Program Mode (H8S/2378F) Publication Date: Jun. 28

Page 12 - 3.1 Main Functions

1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 JapanFlash Development ToolkitREJ06J0003-0100Application Note (Applications)

Page 13

2.3 On-Board Programming Modes There are three on-board programming modes: Boot mode, user program mode, and user boot mode. The on-board programming

Page 14

3. Functions of the Flash Development Toolkit The Renesas Flash Development Toolkit is an on-board flash programming tool for Renesas F-ZTAT microcom

Page 15

The graphical user interface screen of the Flash Development Toolkit is shown in Figure 3-1. Figure 3-1 Graphical User Interface of the Flash Deve

Page 16

4. Operating the Flash Development Toolkit 4.1 Connecting the Adapter Board On-board programming adapter board for F-ZTAT* microcomputers HS0008EAUF

Page 17

The pin numbers and corresponding signals of the user system interface cable used for connecting the adapter board and user system are shown below. Ta

Page 18

H8S/2378FTxD1RxD1MD0MD1RES15Vcc171VIN(Vcc)RXDTXDRESGND2,4,6,8,10,12,14,16Adapter board(HS0008EAUF1H)Pulled up at 47 kΩor more.Pulled up atabout 1 kΩ.N

Page 19

4.2 Setting the Flash Development Toolkit Set the Flash Development Toolkit first to write a program in flash memory. 4.2.1 Starting the Flash De

Page 20

4.2.3 Setting a New Project Workspace Set a new project workspace. Use "Browse..." and select a directory, and specify the device name in &

Page 21

4.2.4 Selecting the Device and Kernel Select the target device from the pull-down menu. Select "Generic BOOT Device" because the H8S/2378

Page 22

Notice 1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to chang

Page 23

4.2.5 Selecting a Communications Port Select the adapter board (FDM) from the pull-down menu. When you have selected the communications port, click

Page 24

4.2.6 Adapter Board Pin Settings Set the pins on the adapter board (FDM) for the boot mode. For example, set the output of FWx pin to high (1) (open

Page 25

An example of connecting the H8S/2378F and Renesas adapter board (HS0008EAUF1H) is shown in Figure 4-2. The pull-up and pull-down resistor values show

Page 26

4.2.7 Selecting a USB Device Check the device. Select the adapter board (FDM). When you have selected USB device, click "OK." 15

Page 27

4.2.8 Selecting a Device Check the device. Select HD64F2378. When you have selected the device, click "OK." 16

Page 28

4.2.9 Selecting the Clock Mode Check the device. Select the clock mode. When you have selected the clock mode, click "OK." 17

Page 29

4.2.10 Checking the Generic Device The device has been checked. Click "OK." 18

Page 30

4.2.11 Setting the Device (Input Clock) In the first column enter the frequency of the clock used for the board in MHz. For example, enter 8.25 (MHz)

Page 31

4.2.12 Selecting the Connection Type (Communication Speed) Select a baud rate from the pull-down menu. For example, select 19200 (baud). When you ha

Page 32

4.2.13 Selecting Programming Options (Protection Level and Messaging Level) Select the protection level and messaging level. For example, select &quo

Page 33

www.renesas-electoronics.comFlash Development ToolkitApplication Note (Applications)Application NoteRev.1.00 2006.06User Program Mode (H8S/2378F)

Page 34

4.2.14 Reset Mode Pin Settings Set pins on the adapter board for restarting the device in the reset mode. These settings are not required for this pr

Page 35

4.2.15 Completion of Connection The H8S/2378F board has been connected to the Flash Development Toolkit in the boot mode. At this time, the contents

Page 36

4.3 Boot Mode 1 (Programming the User Boot Area) Write a program in the user boot area in the boot mode. The program to be written is sample test pro

Page 37

In the "Add File(s)" dialog, add file "2378F.mot." When you have selected the file, click "Add." File 2378F.mot is adde

Page 38

4.3.2 Programming To program the user boot area, set the user boot area. Click the right mouse button on file 2378F.mot to display the pop-up menu. Cl

Page 39

Click the right mouse button on file 2378F.mot again to display the pop-up menu. Click "Download File to [User Boot Area]" to download file

Page 40

You can check that the program has been downloaded to the user boot area. 28

Page 41

4.3.3 Blank Check To confirm that the user boot area has been programmed, perform a blank check. Click "Device" to open the pull-down menu a

Page 42

Click "Device" again to open the pull-down menu and click "Blank Check." 30

Page 43 - The device is disconnected

The result of the blank check for the selected area is displayed. The user boot area is not blank. 31

Page 44

1. This document is provided for reference purposes only so that Renesas customers may select the appropriate Renesas products for their use. R

Page 45

4.3.4 Checksum To confirm that the user boot area has been programmed, display a checksum. Click "Device" to open the pull-down menu and cli

Page 46 - The file is removed

The result of the checksum calculation is displayed. When the user boot area is blank, the following value is displayed as the result: Calculating de

Page 47

4.3.5 Disconnecting the Device After programming has been completed, disconnect the device. Click "Device" to open the pull-down menu and c

Page 48 - The folder is removed

The device is disconnected. 35

Page 49

4.3.6 Removing a File Remove a file. Click "Project" to open the pull-down menu and click "Remove Files..." 36

Page 50

The file is displayed. Click "Remove All." Click "OK." 37

Page 51

The file is removed. 38

Page 52

4.3.7 Removing a Folder Remove a folder. Click the right mouse button on a folder to display the pop-up menu and click "Remove Folder." 3

Page 53

The folder is removed. 40

Page 54 - 4.4.4 Selecting a File

4.3.8 Exiting Save the work folder and exit the Flash Development Toolkit. Click "File" to open the pull-down menu and click "Exit.&quo

Page 55

Renesas Flash Development Toolkit Application Note (Applications) User Program Mode (H8S/2378F) Revision 1.0 Renes

Page 56

4.4 Boot Mode 2 (Programming the User Area) Write a program in the user area in the boot mode. The same program as used in section 4.3, Boot Mode 1 (

Page 57

Project 2378 is displayed. The Flash Development Toolkit can also be started by directly opening (or double-clicking on) project workspace file 2378

Page 58

4.4.3 Connecting the Device Connect the USB adapter board (FDM) to a PC and the H8S/2378F board to the adapter board and set the H8S/2378F board in t

Page 59 - 4.5 User Boot Mode

Select the adapter board (FDM). When you have selected USB device, click "OK." The adapter board is connected. 45

Page 60

4.4.4 Selecting a File To select a file to be programmed, select "Add Files..." from the "Project" pull-down menu. 46

Page 61

In the "Add File(s)" dialog, add file "2378F.mot." When you have selected the file, click "Add." File 2378F.mot is adde

Page 62

4.4.5 Programming Click the right mouse button on file 2378F.mot to display the pop-up menu. Click "Download File to [User Area]" to downloa

Page 63

You can check that the program has been downloaded to the user area. 49

Page 64

4.4.6 Blank Check and Checksum To confirm that the user area has been programmed, perform a blank check and calculate a checksum. Click "Device&

Page 65

4.5 User Boot Mode In the user boot mode, the user area can be programmed or erased. The user boot area cannot be programmed or erased. 4.5.1 Writi

Page 66

Contents 1. Introduction ...1 2. H8S/237

Page 67

4.5.2 Disconnecting the Device Click "Device" to open the pull-down menu and click "Disconnect." 52

Page 68

4.5.3 Configuring the Project Click "Device" to open the pull-down menu and click "Configure Flash Project." 53

Page 69

The configure project window appears. 54

Page 70

4.5.4 Setting the User Program Mode Select the "Device" tab in the configure project window and double-click "Connection" and &qu

Page 71

Set the connection type. Select "USER Program Mode" in "Select Connection:." Set the baud rate to 9600 bps. When you have set th

Page 72 - 4.6 User Program Mode

Set the pins on the adapter board (FDM) for the user boot mode. For example, set the output of FWx to high (1) and that of MD2 to low (0). In this exa

Page 73

The user boot mode has been set. 58

Page 74

4.5.5 Connecting the Device Click "Device" to open the pull-down menu and click "Connect to Device." Select the adapter board (F

Page 75

4.5.6 Programming Write a program in the user area in the user boot mode. To program a file in the user area, specify a download area. Click the right

Page 76

Click the right mouse button on file 2378F.mot again to display the pop-up menu. Click "Download [User Area]" to download file 2378F.mot to

Page 77

4.3.8 Exiting... 4

Page 78

You can check that the program has been downloaded to the user area. 62

Page 79

4.5.7 Blank Check and Checksum To confirm that the user area has been programmed, perform a blank check and calculate a checksum. Click "Device&

Page 80

4.6 User Program Mode In the user program mode, the user area can be programmed or erased. The user boot area cannot be programmed or erased. 4.6.1

Page 81

4.6.2 Setting the User Program Mode Select the "Device" tab in the configure project window and double-click "Connection" and &qu

Page 82 - 6. Sample Program

Set the connection type. Select "USER Program Mode" in "Select Connection:." Set the baud rate to 9600 bps. When you have set the

Page 83 - 6.2 Source Files

Set the pins on the adapter board (FDM) for the user boot mode. For example, set the output of FWx to high (1) and that of MD2 to low (0). In this exa

Page 84 - 6.3 Modules

The user program mode has been set. 68

Page 85

4.6.3 Connecting the Device Click "Device" to open the pull-down menu and click "Connect to Device(C)." Select the adapter board

Page 86

4.6.4 Programming Write a program in the user area in the user program mode. Click the right mouse button on file 2378F.mot to display the pop-up menu

Page 87

You can check that the program has been downloaded to the user area. 71

Page 88 - 6.5 Flow of the Program

7.1.2 I/O Register Definition (io2378.h) ... 84 7.1.3 Macro D

Page 89

4.6.5 Blank Check and Checksum To confirm that the user area has been programmed, perform a blank check and calculate a checksum. Click "Device&

Page 90

5. Flash Development Toolkit Processing The Flash Development Toolkit can be connected in either of the following two modes: the boot mode or the use

Page 91 - 7.1 Header Files

6. Sample Program This section describes the sample program in the user program mode of the H8S/2378F. 6.1 File Configuration The file configuration

Page 92

6.2 Source Files The source files are listed in Table 6-1. Table 6-1 Source Files File File Name Description Baud rate BaudRate.src BRR calculati

Page 93

6.3 Modules The modules are listed in Table 6-2. Table 6-2 Modules File Module Module Name Function BaudRate.src BRR calculation cal_brr Calcula

Page 94

6.4 Module Hierarchical Structure The module hierarchical structure is shown in Figure 6-2. RESET_VECTOR (0x0000) Reset vector ⏐⎯startup (0x10

Page 95

(Continued) ⏐⎯RamMain (0xFF4000) RAM main processing ⏐⎯ProcessCommand Command processing

Page 96 - 7.3 RAM Main Processing

(Continued) ⏐⎯ReadMemory Memory read ⏐ ⏐⎯UserBootSelect User boot area selection

Page 97

6.5 Flow of the Program This section describes the flow of the sample program with referencing the module hierarchical structure. 6.5.1 Program Pro

Page 98

6.5.2 Main Processing (main) The flow of main processing is shown below: (1) The reset vector causes a branch to start (startup). (2) Start (startu

Page 99

1. Introduction This application note describes the following items with respect to the use of the Renesas Flash Development Toolkit and the use of th

Page 100

6.5.4 RAM Main Processing (RamMain) The flow of RAM main processing (RamMain) is shown below: (1) Command processing (ProcessCommand) processes comm

Page 101

7. Source Files of the Sample Program This section describes main source files of the sample program. 7.1 Header Files This sample program uses the

Page 102 - 8. Programming Guide

7.1.2 I/O Register Definition (io2378.h) The registers and bits related to the SCI module and ROM are defined. /*************************************

Page 103

#define FECS (*(volatile unsigned char *)0xFFFFC6) #define FKEY (*(volatile unsigned char *)0xFFFFC8) #define FMATS (*(volatile unsigned char

Page 104 - 8.3 Using the Libraries

7.2 Main Processing and ROM Main Processing 7.2.1 Module Hierarchical Structure The module hierarchical structure of main processing and ROM main

Page 105 - 8.5 Module Specifications

7.2.3 Transfer Start (Ugenu.c and rom2ram.src) The following modules are transferred from ROM to RAM according to the transfer table (rom2ram.src) wh

Page 106

7.3 RAM Main Processing RAM main processing transfers a library, and erases and programs flash memory. This processing is executed in RAM. 7.3.1 Lib

Page 107

(2) ScoBitSet The library transfer destination address is set in the FTDAR register and the SCO bit of the FCCS register is set to 1. At least four NO

Page 108

7.3.2 Area Selection (FDTUMain.c) To select the user boot area or user area, FmatsUserBootMat (0xaa) or FmatsUserMat (0x00) is set in the FMATS regis

Page 109 - Flash Development Toolkit

7.3.3 Flash Memory Erasing (FDTErase.c) (1) EraseInit The user area is selected, the operating frequency is specified, and the erasing library is ini

Comments to this Manuals

No comments