AN2575 Freescale Semiconductor / Motorola, AN2575 Datasheet - Page 22

no-image

AN2575

Manufacturer Part Number
AN2575
Description
MC68HC908EY16 ESCI LIN Drivers
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2575/D
}
22
}
bits = bits/2;
tens = bits/10;
units = bits%10;
Line2[1] = units + 0x30;
Line2[0] = 0x20;
Line2[2] = 0x20;
if (tens != 0)
{
}
else if (negative)
{
}
Line2[0] = tens + 0x30;
if (negative)
{
}
Line2[0] = 0xB0;
Line2[2] = 0xB0;
Freescale Semiconductor, Inc.
For More Information On This Product,
MC68HC908EY16 ESCI LIN Drivers
Go to: www.freescale.com
/* lose LS bit
/* find tens digit
/* and units digit
/* units digit
/* clear tens digit
/* and "-"
/* tens digit zero ?
/* no, display it
/* negative ?
/* yes display "-"
/* tens zero, negative ?
/* yes, put "-" in tens
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
MOTOROLA

Related parts for AN2575