Renesas H8S/2378F Technical Information

Stöbern Sie online oder laden Sie Technical Information nach Vernetzung Renesas H8S/2378F herunter. Renesas H8S/2378F Technical information Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 109
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
.
Seitenansicht 0
1 2 3 4 5 6 ... 108 109

Inhaltsverzeichnis

Seite 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

Seite 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

Seite 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

Seite 4

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

Seite 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

Seite 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

Seite 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

Seite 8

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

Seite 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

Seite 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)

Seite 11

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

Seite 12 - 3.1 Main Functions

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

Seite 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

Seite 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

Seite 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

Seite 16

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

Seite 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

Seite 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

Seite 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

Seite 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 &

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 27

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

Seite 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

Seite 29

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

Seite 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)

Seite 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

Seite 32

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

Seite 33

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

Seite 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

Seite 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

Seite 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

Seite 37

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

Seite 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

Seite 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

Seite 40

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

Seite 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

Seite 42

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

Seite 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

Seite 44

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

Seite 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

Seite 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

Seite 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

Seite 48 - The folder is removed

The device is disconnected. 35

Seite 49

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

Seite 50

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

Seite 51

The file is removed. 38

Seite 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

Seite 53

The folder is removed. 40

Seite 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

Seite 55

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

Seite 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 (

Seite 57

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

Seite 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

Seite 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

Seite 60

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

Seite 61

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

Seite 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

Seite 63

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

Seite 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&

Seite 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

Seite 66

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

Seite 67

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

Seite 68

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

Seite 69

The configure project window appears. 54

Seite 70

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

Seite 71

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

Seite 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

Seite 73

The user boot mode has been set. 58

Seite 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

Seite 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

Seite 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

Seite 77

4.3.8 Exiting... 4

Seite 78

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

Seite 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&

Seite 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

Seite 81

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

Seite 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

Seite 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

Seite 84 - 6.3 Modules

The user program mode has been set. 68

Seite 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

Seite 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

Seite 87

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

Seite 88 - 6.5 Flow of the Program

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

Seite 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&

Seite 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

Seite 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

Seite 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

Seite 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

Seite 94

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

Seite 95

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

Seite 96 - 7.3 RAM Main Processing

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

Seite 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

Seite 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

Seite 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

Seite 100

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

Seite 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

Seite 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. /*************************************

Seite 103

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Kommentare zu diesen Handbüchern

Keine Kommentare