LIN Stepper Software Description
LIN Stepper Software Application State Diagram
DRM047 — Rev 0
Designer Reference Manual
MOTOROLA
LIN Stepper Software Description
63
•
initializes LIN drivers
•
initializes stepIndex = STEP_INDEX_INIT_DEFAULT
•
initializes actual position
positionAct = sParameterRAM.positionPark
Figure 6-6. LIN Stepper Software Application State Diagram
6.2.2 iApp.Init
The Application Initialization state is a defined state which the
application enters after MCU Init, or can be forced by the
l_bool_rd_AppInitFlag message. The application performs the following:
•
initializes timers
MCU Init
App Prepare
Sleep
App Wake-up
App Init
Done
App Run
Done
App Sleep
SysMasterRequest_Sleep
Done
LIN Wake-up Request
Done
l_bool_rd_AppInitFlag
App Position
Reset
l_bool_rd_PosResetFlag
PositResetDone
App
Configuration
l_u8_rd_nodeIDCurent()==sParameterRAM.nodeID &
(SysMasterRequest_Download OR
SysMasterRequest_Store OR
SysMasterRequest_LINReconfig)
Done
NO Position Correction
MCU_Reset
App Position
Reset Set Stall
positionAct = positionResetRqValue
App Prepare
Config
Position Correction Done
App Clear
Errors
l_bool_rd_ClrFlag &
AppState != App Init
return
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..