Renesas Renasas Single-Chip Microcomputer SH7086 Informations techniques Page 99

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 108
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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));
}
Vue de la page 98
1 2 ... 94 95 96 97 98 99 100 101 102 103 104 ... 107 108

Commentaires sur ces manuels

Pas de commentaire