AN2573 Freescale Semiconductor / Motorola, AN2573 Datasheet - Page 9

no-image

AN2573

Manufacturer Part Number
AN2573
Description
LINkits LIN Evaluation Boards
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
MOTOROLA
STANDBY MODE VIA THE MC33399
ENTER SLEEP MODE BY PUTTING
LIN WAKE-UP SWITCHES MCU
(MCU IS SWITCHED OFF)
THE REGULATOR INTO
Figure 3. MC68HC908EY16 Slave Software Main Flow Chart
WRITE DATA TO LEDS
POWER ON
If it is less, the counter is incremented. If it is, or has now become, equal to the
mode change requirement then the mode is changed to ID configuration mode
(if the key is pressed) or to normal mode (if it isn’t). This arrangement ensures
that the mode defaults automatically to normal if the key remains not pressed
for three seconds (the time it takes the counter to reach the mode change
number — 224 for the EY16).
Freescale Semiconductor, Inc.
For More Information On This Product,
LINkits LIN Evaluation Boards
Go to: www.freescale.com
NO
YES
AND LIN DRIVERS. ENABLE INTERRUPTS
TAKE APPROPRIATE ACTION (FIGURE 4)
INITIALIZE CONFIG, PORTS, TBM, ICG,
INCREMENT COUNT, TOGGLE “TICK”
READ PUSH-BUTTON SWITCH AND
ADD RESPOND FIELD TO THE LIN
MESSAGE WITH SELECTED ID
CHECK LIN BUS STATUS
COUNT BIT 4 HIGH
WRITE ID TO LEDS
CLEAR TBM FLAG
INACTIVE FOR 5 s
TBM FLAG SET
ID MODE
?
?
?
?
YES
YES
YES
NO
NO
NO
ALL LEDS OFF
Slave Software
AN2573/D
9

Related parts for AN2573