Renesas H8S/2378F Informacje Techniczne Strona 96

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 109
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 95
7.3 RAM Main Processing
RAM main processing transfers a library, and erases and programs flash memory. This processing is executed in RAM.
7.3.1 Library Transfer (FDTUMain.c)
(1) LibTrans
When the command ID is prepareErase (0x48), FECS is set to EraseMode (0x01) and the erasing library is selected.
When the command ID is other than the above (prepareUserAreaWrite, 0x43), FPCS is set to WriteMode (0x01) and the
programming library is selected. FKEY is set to FkeyEnable (0xA5) to select transfer and the SCO bit is set.
/*
///////////////////////
// LibTrans Function //
///////////////////////
*/
void LibTrans(BYTE commandID)
{
if (commandID == prepareErase){
FECS = EraseMode;
}else{
FPCS = WriteMode;
}
FKEY = FkeyEnable;
ScoBitSet();
}
88
Przeglądanie stron 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 108 109

Komentarze do niniejszej Instrukcji

Brak uwag