Renesas H8S/2378F Technické informace

Procházejte online nebo si stáhněte Technické informace pro Sítě Renesas H8S/2378F. Renesas H8S/2378F Technical information Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 109
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
.
Zobrazit stránku 0
1 2 3 4 5 6 ... 108 109

Shrnutí obsahu

Strany 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

Strany 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

Strany 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

Strany 4

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

Strany 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

Strany 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

Strany 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

Strany 8

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

Strany 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

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

Strany 11

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

Strany 12 - 3.1 Main Functions

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

Strany 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

Strany 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

Strany 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

Strany 16

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

Strany 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

Strany 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

Strany 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

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 27

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

Strany 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

Strany 29

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

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

Strany 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

Strany 32

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

Strany 33

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

Strany 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

Strany 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

Strany 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

Strany 37

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

Strany 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

Strany 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

Strany 40

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

Strany 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

Strany 42

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

Strany 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

Strany 44

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

Strany 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

Strany 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

Strany 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

Strany 48 - The folder is removed

The device is disconnected. 35

Strany 49

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

Strany 50

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

Strany 51

The file is removed. 38

Strany 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

Strany 53

The folder is removed. 40

Strany 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

Strany 55

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

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

Strany 57

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

Strany 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

Strany 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

Strany 60

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

Strany 61

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

Strany 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

Strany 63

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

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

Strany 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

Strany 66

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

Strany 67

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

Strany 68

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

Strany 69

The configure project window appears. 54

Strany 70

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

Strany 71

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

Strany 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

Strany 73

The user boot mode has been set. 58

Strany 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

Strany 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

Strany 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

Strany 77

4.3.8 Exiting... 4

Strany 78

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

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

Strany 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

Strany 81

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

Strany 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

Strany 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

Strany 84 - 6.3 Modules

The user program mode has been set. 68

Strany 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

Strany 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

Strany 87

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

Strany 88 - 6.5 Flow of the Program

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

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 94

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

Strany 95

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

Strany 96 - 7.3 RAM Main Processing

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

Strany 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

Strany 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

Strany 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

Strany 100

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

Strany 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

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

Strany 103

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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Strany 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

Komentáře k této Příručce

Žádné komentáře