Renesas H8S/2378F Información técnica Pagina 89

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 109
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 88
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 (startup) sets the stack pointer and calls main processing (main).
(3) Main processing (main) calls SCI initial setting (InitSCI) and branches to ROM main processing (RomMain).
(4) ROM main processing (RomMain) transfers RAM main processing to RAM, receives and processes a command,
and sets items.
After setting items, ROM main processing branches to RAM main processing (RamMain) in RAM.
(5) RAM main processing (RamMain) processes the received commands and performs the following processing:
Transferring the programming/erasing library (LibTrans)
Erasing flash memory (EraseFLASH)
Programming flash memory (WriteFLASH)
Reading memory in the user boot area or user area (ReadMemory)
Calculating a checksum of data in the user boot area or user area (SumCheck)
Checking the blank status of the user boot area or user area (CheckBlank)
Note: ROM main processing (RomMain) is also called a micro-kernel. It runs in ROM.
RAM main processing (RamMain) is also called a main kernel. It runs in RAM.
6.5.3 ROM Main Processing (RomMain)
The flow of ROM main processing (RomMain) is shown below:
(1) Transfer start (TransStart) transfers the program in ROM to RAM.
This operation is for performing library transfer, erasing, and programming in RAM.
(2) Command function (CmdFunc) processes each command, responds to each inquiry, and sets selection.
(3) Reference function (ReferFunc) and program status (RequestBootPrgSts) respond to each inquiry that corresponds
to one of the following commands:
Supported device inquiry
Clock mode inquiry
Multiplication ratio inquiry
Operating frequency inquiry
User boot area information inquiry
User area information inquiry
Erase block information inquiry
Programming unit inquiry
Boot program status inquiry
(4) A selection setting command is set using one of the following modules:
Device selection (SelectDevice): Selects a device code.
Clock mode selection (SelectClockMode): Notifies the selected clock mode.
New bit rate setting (SetNewBaudRate): Selects a new bit rate.
(5) Inquiry/selection processing is completed and a branch is caused to RAM main processing (RamMain) transferred
to RAM.
81
Vista de pagina 88
1 2 ... 84 85 86 87 88 89 90 91 92 93 94 ... 108 109

Comentarios a estos manuales

Sin comentarios