Renesas Renasas Single-Chip Microcomputer SH7086 Información técnica Pagina 99

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 108
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 98
Flash Development Toolkit
Method for Using the User Program Mode (SH7086 Application)
REJ06J0071-0100 /Rev.1.00 2009.2 Page 97 of 106
(4) Flash memory write (FDTWrite.c)
• WriteInit
Select the user area and after specifying the operating clock frequency, initialize the write library.
/*
////////////////////////
// WriteInit Function //
////////////////////////
*/
BYTE WriteInit(void)
{
InitPtr WRITE_INIT = (InitPtr)INIT_ADDR;
FKEY = WRITE_ERASE_ENABLE;
return ((*WRITE_INIT)(Frequency,0));
}
• WriteStart
After specifying the address where the data to write is stored and the address to which to write, call the
write library.
The write data and the write destination address are received from the Flash Development Toolkit. For
details, refer to the sources of the files for user program mode.
/*
/////////////////////////
// WriteStart Function //
/////////////////////////
*/
BYTE WriteStart(BYTE *data, DWORD adr)
{
WritePtr WRITE_DATA = (WritePtr)WRITE_ERASE_ADDR;
return ((*WRITE_DATA)((BYTE *)data, (BYTE *)adr));
}
Vista de pagina 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 107 108

Comentarios a estos manuales

Sin comentarios