AN2623 Freescale Semiconductor / Motorola, AN2623 Datasheet - Page 8

no-image

AN2623

Manufacturer Part Number
AN2623
Description
LIN Temperature Sensor Using the MC68HC908QY/QY MCU
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2623/D
8
LIN Temperature Sensor Using the MC68HC908QT/QY MCU
variable). Then the voltage reference is measured (and stored in the
MeasuredReference variable).
The next step is to determine the correction of the current measured A/D value.
To do this without using a floating point value (which takes a lot of MCU CPU
time), the TEMP_REFERENCE symbolic constant is multiplied by 256 and
then divided by the MeasuredReference value. So, after the calculated value is
used to correct the current temperature value and then divided by 256, the
correct value is reached without the need to use floating point variables.
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
Figure 3. Main Program Flowchart
CLEAR OVERFLOW FLAG
LIN MESSAGE TRANSFER
UPDATE LED STATUS
MCU PERIPHERY
INIT LIN DRIVER
INITIALIZATION
START main()
LIN_response()
OVERFLOW?
LED_display()
LIN_Init()
TIMER
YES
NO
MOTOROLA

Related parts for AN2623