AN2264 Motorola Semiconductor Products, AN2264 Datasheet - Page 11

no-image

AN2264

Manufacturer Part Number
AN2264
Description
Freescale Semiconductor, Inc.
Manufacturer
Motorola Semiconductor Products
Datasheet
/******************************************************************************
*
* Function:
* Description:
*
*
* Returns:
*
******************************************************************************/
void LIN_Command()
{
}
/*****************************************************************************
*
*
*
*
*
******************************************************************************/
void main (void)
{
unsigned char bits;
unsigned char units;
unsigned char tens;
unsigned char negative;
unsigned char error_count;
CONFIG1 = 0x31;
CONFIG2 = 0x11;
DDRA
DDRB
DDRC
DDRD
DDRE
DDRF
DDRG
DDRH
PTE
asm CLI;
LIN_Init();
PITSC = 0x10;
PMODH = 0x27;
PMODL = 0x10;
while (1)
{
MOTOROLA
while (1)
{
}
if (PITSC & 0x80)
Function name: Main
Originator:
Date:
= 0xFF;
= 0xFF;
= 0x3F;
= 0xFF;
= 0xFD;
= 0x7F;
= 0x07;
= 0x03;
= 0x04;
LIN_Command
User call-back.
Called by the driver after successful transmission or
receiving of the Master Request Command Frame (ID: 0x3C).
never returns
P. Topping
5th January 2002
Freescale Semiconductor, Inc.
For More Information On This Product,
LIN Node Temperature Display
Go to: www.freescale.com
/* disable LVI and COP
/* AZ60A, MSCAN disabled
/* configure unused port
/* pins as outputs
/* segment drive
/* LIN interface (MC33399) */
/* digit drive via FETs
/* MC33399 enable high
/* clear interrupt mask
/* initialise LIN drivers
/* start PIT at /1
/* /10000 for a repetition */
/* rate of 200Hz @ 8MHz.
/* is PIT overflow set?
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
Software listing
AN2264/D
11

Related parts for AN2264