Renesas H8S/2378F Technical Information Seite 100

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 109
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 99
7.3.4 Flash Memory Programming (FDTWrite.c)
(1) WriteInit
The user area is selected, the operating frequency is specified, and the initial setting of the programming library is
performed.
/*
////////////////////////
// WriteInit Function //
////////////////////////
*/
BYTE WriteInit(void)
{
InitPtr WRITE_INIT = (InitPtr)INIT_ADDR;
UserMatSelect();
FKEY = WRITE_ERASE_ENABLE;
return ((*WRITE_INIT)(Frequency));
}
(2) WriteStart
The programming data storage address, programming destination address are specified and the programming library is
called. The programming data and programming destination address are received from the Flash Development Toolkit.
For details, refer to Source Files of the Sample Program.
/*
/////////////////////////
// WriteStart Function //
/////////////////////////
*/
BYTE WriteStart(BYTE *data, DWORD adr)
{
WritePtr WRITE_DATA = (WritePtr)WRITE_ERASE_ADDR;
return ((*WRITE_DATA)((BYTE *)data, (BYTE *)adr));
}
92
Seitenansicht 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 108 109

Kommentare zu diesen Handbüchern

Keine Kommentare