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
Comentários a estes Manuais