AN2311 Freescale Semiconductor / Motorola, AN2311 Datasheet - Page 14

no-image

AN2311

Manufacturer Part Number
AN2311
Description
Bootstrapping the MSC8101 Device Through the HDI16 Port
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Related Documents
14
for (ulii=0; ulii < 2; ulii++)
{
}
uliSize = uliCounter-4;
uliRemainder=(uliSize+4)%8; /* add 4 bytes for bootload crc and */
if (uliRemainder != 0)
{
}
uliSize = (uliSize+uliRemainder)/2;
if (uliSize <= 0xF)
{
}
else
{
}
putc(’,’,pfiOut);
putc(’0’,pfiOut);
putc(’x’,pfiOut);
putc(’0’,pfiOut);
putc(’0’,pfiOut);
aucTemp[0] = getc(pfiIn);
putc(aucTemp[0],pfiOut);
aucTemp[0] = getc(pfiIn);
putc(aucTemp[0],pfiOut);
putc(’,’,pfiOut);
putc(’0’,pfiOut);
putc(’x’,pfiOut);
for (ulij=0; ulij<4; ulij++)
{
}
/* Get data words */
Freescale Semiconductor, Inc.
For More Information On This Product,
uliCounter <<= 4;
ucLength = getc(pfiIn);
if (ucLength == CHAR_NUMBER1) uliCounter |= 0x0001;
if (ucLength == CHAR_NUMBER2) uliCounter |= 0x0002;
if (ucLength == CHAR_NUMBER3) uliCounter |= 0x0003;
if (ucLength == CHAR_NUMBER4) uliCounter |= 0x0004;
if (ucLength == CHAR_NUMBER5) uliCounter |= 0x0005;
if (ucLength == CHAR_NUMBER6) uliCounter |= 0x0006;
if (ucLength == CHAR_NUMBER7) uliCounter |= 0x0007;
if (ucLength == CHAR_NUMBER8) uliCounter |= 0x0008;
if (ucLength == CHAR_NUMBER9) uliCounter |= 0x0009;
if (ucLength == CHAR_LETTER_A) uliCounter |= 0x000A;
if (ucLength == CHAR_LETTER_B) uliCounter |= 0x000B;
if (ucLength == CHAR_LETTER_C) uliCounter |= 0x000C;
if (ucLength == CHAR_LETTER_D) uliCounter |= 0x000D;
if (ucLength == CHAR_LETTER_E) uliCounter |= 0x000E;
if (ucLength == CHAR_LETTER_F) uliCounter |= 0x000F;
uliRemainder = (8-uliRemainder);
fprintf(pfiOut, "0%X", uliSize);
fprintf(pfiOut, "%X", uliSize);
aucTemp[0] = getc(pfiIn);
putc(aucTemp[0],pfiOut);
Go to: www.freescale.com
/* see how short of div by 8 it is
/* take away ucLength and crc
*/
*/

Related parts for AN2311