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

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 109
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 104
8.4 Modules
There are the following libraries: Transfer library, erasing library, and programming library. The function of each
module is shown below:
Table 8-6 Libraries and Entries
Library Module Name Entry Function
Transfer Transfer start Setting the SCO bit to 1 Transfers the program corresponding to the specified
program type and program code.
Erase initial
setting
(Transfer destination +
32 bytes)
Calculates the erasing wait time using the specified
operating frequency.
Erasing
Block erasing (Transfer destination +
16 bytes)
Erases the specified block.
Programming
initial setting
(Transfer destination +
32 bytes)
Calculates the programming wait time using the
specified operating frequency.
Programming
Programming (Transfer destination +
16 bytes)
Programs the specified data in the specified
programming destination address.
8.5 Module Specifications
The library module specifications are listed below for your information. For details, refer to the Hardware Manual.
8.5.1 Transfer Start
Name Transfer start
Type None
Sets the SCO bit of the FCCS bit to 1 to transfer a library.
Function Transfers a program.
Argument None
Input For the programming library, set the PPVS bit (bit 0) of the FPCS register to 1.
For the erasing library, set the EPVB bit (bit 0) of the FECS register to 1.
Specify the transfer destination in RAM in the FTDAR register.
Set the FKEY register to H'A5.
Set the first byte of the transfer destination in RAM to H'FF.
Return
Value
None
Output FTDAR register TDER bit (bit 7): Parameter check flag
Normal termination: 0
FTDAR register value error: 1 (downloading is suspended.)
First byte of the transfer destination in RAM: Processing result
Normal termination: H'00
FKEY register value error: H'03
Multi-selection error: H'05
Processing Selects the library corresponding to the PPVS bit of the FPCS register or the EPVB bit of the FECS
register.
If a library selection error occurs, sets the processing result and returns control.
If FKEY is not H'A5, sets the processing result and returns control.
If an FTDAR error occurs, sets the TDER bit to 1 and returns control.
Transfers the library to the RAM area specified using FTDAR.
Clears the SCO bit to 0.
Returns control to the instruction next to that for setting the SCO bit.
97
Vista de pagina 104
1 2 ... 100 101 102 103 104 105 106 107 108 109

Comentarios a estos manuales

Sin comentarios