Renesas H8S/2378F Informações Técnicas Página 96

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 109
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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
Vista de página 95
1 2 ... 91 92 93 94 95 96 97 98 99 100 101 ... 108 109

Comentários a estes Manuais

Sem comentários