AN2264 Motorola Semiconductor Products, AN2264 Datasheet - Page 7

no-image

AN2264

Manufacturer Part Number
AN2264
Description
Freescale Semiconductor, Inc.
Manufacturer
Motorola Semiconductor Products
Datasheet
MOTOROLA
Read binary temperature from LIN buffer
Initialize CONFIG, ports, PIT and LIN
degree digit, units digit (with decimal
point), tens digit (blanked if zero) and
minus sign (if temperature negative)
Convert temp to BCD and place half
output current digit to port lines
into display array (see figure 3)
drivers. Enable interrupts
Check LIN bus status
Positive temperature
Increment digit and
Freescale Semiconductor, Inc.
clear negative flag
into variable temp
temp = temp - 60
60 or more ?
For More Information On This Product,
Clear POF
POF set ?
ID: 0A ?
Active ?
(figure 4)
Figure 2. Main software flow chart
Y
Y
Y
Y
LIN Node Temperature Display
Go to: www.freescale.com
N
N
N
N
Enter sleep mode by putting the regulator
LIN wake-up switches MCU supply on
into standby mode via the MC33399
Set display array to ----
(MCU is switched off)
Negative temperature
temp = 60 - temp
set negative flag
AN2264/D
Software
7

Related parts for AN2264