AN2264 Motorola Semiconductor Products, AN2264 Datasheet - Page 12

no-image

AN2264

Manufacturer Part Number
AN2264
Description
Freescale Semiconductor, Inc.
Manufacturer
Motorola Semiconductor Products
Datasheet
AN2264/D
12
{
PITSC &= ~(0x80);
LIN_IdleClock ();
if (LIN_DriverStatus () != 0x01)
{
}
else
{
display[0] = 0x01;
display[1] = 0x01;
display[2] = 0x01;
display[3] = 0x01;
PTE
if (LIN_MsgStatus (0x0A) != 0)
{
}
else
{
}
if (error_count > 200)
{
}
else
{
if (error_count < 201 )
{
}
error_count = 0;
display[0] = 0x02;
display[1] = 0x02;
display[2] = 0x02;
display[3] = 0x02;
LIN_GetMsg (0x0A, Mirror_data);
bits = Mirror_data[0];
if (bits < 60)
{
}
else
{
}
display[3] = seg7[0];
if (bits & 0x01 == 0x01)
{
}
bits = bits/2;
tens = bits/10;
units = bits%10;
error_count ++;
bits = 60 - bits;
negative = 1;
bits = bits - 60;
negative = 0;
display[3] = seg7[5];
= 0x00;
Freescale Semiconductor, Inc.
For More Information On This Product,
LIN Node Temperature Display
Go to: www.freescale.com
/* yes, clear it
/* check for bus activity
/* bus idle for 400 trys ? */
/* LIN_STATUS_IDLE is 2
/* but 3 is returned
/* display ....(MMDS only) */
/* real AZ60A powers down
/* from MC33399 enable low */
/* bus active but have we
/* had an ID of 0x0A ?
/* no, error counter
/* already 201 ?
/* no, inc error counter
/* yes, new data available */
/* data in last second ?
/* no, display ----
/* to signify no valid
/* data from temperature
/* sensor
/* yes, data available
/* read sensor message
/* and extract temp. byte
/* negative ?
/* yes,convert to positive */
/* but remember it wasn’t
/* no, remove offset and
/* clear negative flag
/* display zero after
/* decimal point but if LS */
/* bit is a 1 display 5
/* lose LS bit
/* find tens digit
/* and units digit
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
MOTOROLA

Related parts for AN2264