AN2432 Freescale Semiconductor / Motorola, AN2432 Datasheet - Page 4

no-image

AN2432

Manufacturer Part Number
AN2432
Description
LIN Sample Application for the MC68HC908EY16 Evaluation Board
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2432/D
Use of the evaluation board with Cyclone, Multilink and MMDS/MMEVS
4
LIN Sample Application for the MC68HC908EY16 Evaluation Board
A second method of using the monitor mode development environment is to
connect via the 16-pin P4 connector. This is configured for a Cyclone or
Multilink interface. Operation is very similar to that described above, the
advantage being that the users PCB does not need to incorporate an RS232
interface or a 9.8304MHz clock source. The high voltage for IRQ and the
appropriate levels on pins A1, B3 and B4 are also supplied by the interface so
no monitor mode hardware is required on the target hardware as long as these
pins are allowed to go to the required levels. Link J1 must be connected
between pin 1 (IRQ HIGH) and pin 2 (IRQ). All other links and the 9.8304MHz
canned oscillator module should be removed. The following procedure should
be used.
10. Code should now run. If the source code has not been changed then the
1. Copy folder “Lin08EY” from CD to an appropriate place on local hard
2. Launch Codewarrior (Programs - Metrowerks - CodeWarrior
3. From folder “Lin08EY” drag file:
4. Connected to the Cyclone via its 16-way cable (pin1, marked red, to the
5. In “Component” pull-down menu, select “Set target” and then “HC08”
6.
7. Check “PEDebug” pull-down menu for “device” (EY16) and “mode” (In-
8. In “PEDebug” pull-down menu, select “load” and file “slave.abs” (in “bin”
9. Run program by clicking on green “GO” arrow.
Freescale Semiconductor, Inc.
For More Information On This Product,
drive.
CW08_V2.1 – CodeWarrior IDE).
…\sample\ide\EYLEDemo\LEDemo.mcp into Codewarrior window.
corner of the evaluation board) and switch the board on. Run the
debugger by clicking on either green arrow. Error messages relating to
the limitations of the Codewarrior license may appear, they will not
reoccur as long as the rest of this procedure is followed and the
debugger is kept open. If any compilation or linking is required it will
happen before the debugger starts up.
and “P&E Target Interface”. Press OK.
security”, select “Target Hardware Type” class V and click on “contact
target with these settings”. This window may also prompt for any monitor
mode security issues.
circuit debug/programming) and, if required, change to these settings.
directory). This will overwrite the code in FLASH with that contained in
“slave.abs” (select yes when prompted for permission to overwrite
FLASH).
LED LIN monitor described in this application note will now be running
and LED D4 flashing at 1HZ. To obtain full functionality, a LIN master
If prompted by a window headed “Attempting to contact target and pass
Go to: www.freescale.com
MOTOROLA

Related parts for AN2432