It is also time to use the internal Flash Memory for Logging various important parameters. In order to do this, I like to use the XE164 internal flash memory: in fact it has 3x256Kb flash modules and for my purpose one module could be enought:
The SW becomes:
// Update LOG data
LogData.uiSpeed = uiSpeed;
LogData.uiRPM_REAR = uiRPM_REAR;
LogData.uiRPM_ENGINE = uiRPM_ENGINE;
LogData.uiRPM_FRONT = uiRPM_FRONT;
LogData.uiGEAR = uiGEAR;
LogData.uiDistanceOdo = uiDistanceTrip;
// Transmit the measured values to RS232 for debug purpose or store in some external memory as a log-file
if ( bTransmit )
{
LOGGER_AppendChunk( (void near *) &LogData );
}
Saturday, February 28, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment