Renesas H8S/2378F Technical Information Seite 102

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 109
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 101
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 contains tips on creating programs and notes. For details, refer to the Hardware Manual.
8.1 Overview
The 0.18-μm F-ZTAT microcomputer standard boot program consists of a transfer library, erasing library, and
programming library. The functions are listed below:
(1) Transfers the programming library or erasing library to the specified RAM area.
(2) Specifies the operating frequency by the initial setting.
(3) Specifies a block number and erases the relevant block.
(4) Specifies data to be programmed and the programming destination address and programs the data.
(5) Selects the user boot area or user area.
8.2 Control Registers and Control Bits
The control registers and control bits related to the library transfer function and user boot area are described below.
8.2.1 Selecting a Function
To select transfer, programming, or erasing, use the FKEY register. To transfer the programming or erasing library, set
the FKEY register to H'A5. To perform programming or erasing, set the register to H'5A.
Table 8-1 FKEY Register
State Value Function
Transfer enabled H’A5 Can transfer a library.
Can write a value to the SCO bit.
Programming/erasing enabled H’5A Can program or erase flash memory.
8.2.2 Starting Library Downloading
To transfer a library, set the SCO bit (bit 0 of the FCCS register) to 1.
Table 8-2 SCO Bit (Bit 0 of the FCCS Register)
State Value Function
Source program copy disabled 0 Does not download a library to RAM.
Source program copy enabled 1 Issues a request to download a library to RAM.
H'A5 must be written to FKEY and execution in on-chip RAM
must be in progress.
The SCO bit is cleared to 0 when downloading is completed.
94
Seitenansicht 101

Kommentare zu diesen Handbüchern

Keine Kommentare