AN2623 Freescale Semiconductor / Motorola, AN2623 Datasheet - Page 11

no-image

AN2623

Manufacturer Part Number
AN2623
Description
LIN Temperature Sensor Using the MC68HC908QY/QY MCU
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Appendix - Software Listing
LINtemp_sensor.c
/*******************************************************************************
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*******************************************************************************/
/*******************************************************************************
*
*
*
*******************************************************************************/
#include “MC68HC908QY4.h”
#include “LINdriver.h”
#include “Board.h”
#define EVER (;;)
#define LED_TICK 0x01
#pragma DATA_SEG SHORT _DATA_ZEROPAGE
unsigned char MsgSend[2];
unsigned char MsgRcvd [2];
unsigned char Ret;
#pragma DATA_SEG DEFAULT
MOTOROLA
$File Name
$Author
$Date
$Version
Function:
Includes, defines, globals and function prototypes
Temperature sensor based on MC68HC908QY4 slave program.
=======================================================
Slave sends (ID_SEND) and receives (ID_RECEIVE) 2-byte
messages. According to the first bit of received message the
LED on SIGN_LED.port turn on/off. Slave sends the current
state of the A/D conversion after master request reception
(ID_SEND).
(c) MOTOROLA Inc. 2003
: LINTemp_sensor.c$
: re004c$
: Nov-7-2003$
: 1.1.4.0$
LIN Temperature Sensor Using the MC68HC908QT/QY MCU
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
all rights reserved.
Appendix - Software Listing
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
AN2623/D
11

Related parts for AN2623