LIN Stepper Software Description
LIN Stepper Software Implementation
DRM047 — Rev 0
Designer Reference Manual
MOTOROLA
LIN Stepper Software Description
67
From the above equations for the Real Value:
(EQ 5.)
(EQ 6.)
(EQ 7.)
(EQ 8.)
According to the variable type, the equations EQ1 to EQ8 also can be
converted to the EQ9 and EQ11
(EQ 9.)
where:
(EQ 10.)
where:
System Variable X
- is the system variable
Real Value X
- is the physical value of the quantity represented by
Variable X
Resolution Quantity X
- resolution of the system variable X in real. (It
represents the physical value represented by LSB bit of the Variable X)
Max Type Variable X
- system Variable X maximum according to the
Variable Type:
Type
UWord16
MAX_U16
= 65535
Type
SWord16
MAX_S16
= 32768
Type
UByte
MAX_U8
= 255
Type
SByte
MAX_S8
= 127
And hence the Real Value:
(EQ 11.)
Real Value
UWord16 Value*Real Quantity Range Max
MAX_U16
1
+
(
)
----------------------------------------------------------------------------------------------------------
=
Real Value
SWord16 Value*Real Quantity Range Max
MAX_S16
1
+
(
)
---------------------------------------------------------------------------------------------------------
=
Real Value
UByte Value*Real Quantity Range Max
MAX_U8
1
+
(
)
---------------------------------------------------------------------------------------------------
=
Real Value
SByte Value*Real Quantity Range Max
MAXSU8
1
+
(
)
--------------------------------------------------------------------------------------------------
=
System Variable X
Real Value X
Resolution Quantity X
------------------------------------------------------
=
Resolution Quantity X
Real Quantity X Range Max
MAX Type Variable X
--------------------------------------------------------------------
=
Real Value X
Resolution Quantity X*System Variable X
=
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
.
..