AN2503 Freescale Semiconductor / Motorola, AN2503 Datasheet - Page 31

no-image

AN2503

Manufacturer Part Number
AN2503
Description
Slave LIN Driver for the MC68HC908QT/QY Family
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Write QuickAction()
Compile and
Download Your
Application
Test Your
Application
MOTOROLA
This function is included in slave_drv.c, and it’s the only function changeable
by the user in a normal application. Use this function when an action must be
performed immediately after the ID is received. Remember that functions
included in this part must not be extensive unless the LIN master guarantees
enough time between LIN transfers. An extensive function can result in an
undesired lost of frame. In AN2503SW, the pin PTB3 is toggled every time the
ID 0x1A is received with a value of 0x00 in the first byte. However, this function
is not defined because the QUICK_COMMAND definition is not used.
Check for any errors in compilation and download your application to the MCU.
Remember that the MCU must enter monitor mode and some signals are
required:
Any change in these signals could result in programming errors. Check the
board jumpers.
There are several ways to test and debug your application depending on the
application:
Slave LIN Driver for the MC68HC908QT/QY Family
Freescale Semiconductor, Inc.
For More Information On This Product,
PTA0 for MON08 communication
PTA1 tied to V
PTA4 tied to GND
IRQ tied to V
A computer program can be easily implemented to test your IDs and the
response of the MCU.
If the project is in development or for a quicker design without using a
transceiver, use PTA0 as bidirectional line and test it with the same
hardware used for programming the PC.
A simple transceiver with an RS-232 to a TTL converter can help you to
use your PC as a LIN master.
The LIN frames are very easy to see and recognize with the aid of an
oscilloscope.
Go to: www.freescale.com
tst
DD
Driver Usage and Example
AN2503/D
31

Related parts for AN2503