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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 109
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 89
6.5.4 RAM Main Processing (RamMain)
The flow of RAM main processing (RamMain) is shown below:
(1) Command processing (ProcessCommand) processes commands. The following commands are to be processed. The
sample program cannot process user boot area programming selection or block erasing for the user boot area
because it runs in the user program mode.
User area programming selection
128-byte programming
Erasing selection
Block erasing
Memory read
User boot area sum check
User area sum check
User boot area blank check
User area blank check
Boot program status inquiry
(2) For the user area programming selection command, command processing transfers the programming library using
library transfer (LibTrans) and branches to flash programming (WriteFLASH).
(3) Flash programming (WriteFLASH) sets the frequency using programming initial setting (WriteInit).
Then, it reads a command. When the command is 128-byte programming, programming data reception
(GetWriteData) receives programming data and programming start (WriteStart) programs flash memory.
When 128-byte data is programming end address data, the programming end codes are set in data to be
programmed and programming destination address to end programming (call programming start (WriteStart)
actually) and programming terminates.
In this sample program, 128-byte programming end address data is H'FFFFFFFF, the programming end code of
data to be programmed is H'F0F0F0F0, and the programming end code of the programming destination address is
H'0F0F0F0F.
(4) For the erasing selection command, library transfer (LibTrans) transfers the erasing library and branches to flash
erasing (EraseFLASH).
(5) Flash erasing (EraseFLASH) sets the frequency using erase initial setting (EraseInit).
Then, it reads a command. When the command is block erasing, erase data reception (GetEraseData) receives erase
data and erasing start (EraseStart) erases the specified block.
When erase data is erasing end data, erasing terminates.
(6) For the memory read command, command read (GetCmdData) specifies the read address. Memory read
(ReadMemory) reads memory in the user boot area or user area.
(7) For the user boot area sum check or user area sum check command, sum check (SumCheck) calculates a checksum
of data in the user boot area or user area.
(8) For the user boot area blank check or user area blank check command, blank check (CheckBlank) checks the blank
status of the user boot area or user area.
(9) For the boot program status inquiry command, program status (RequestBootPrgSts) sends the boot processing
status.
82
Vista de pagina 89
1 2 ... 85 86 87 88 89 90 91 92 93 94 95 ... 108 109

Comentarios a estos manuales

Sin comentarios