Renesas H8S/2378F Technické informace Strana 100

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 109
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 99
1 2 ... 95 96 97 98 99 100 101 102 103 104 105 ... 108 109

Komentáře k této Příručce

Žádné komentáře