LIN Stepper Software Description
Designer Reference Manual
DRM047 — Rev 0
66
LIN Stepper Software Description
MOTOROLA
The following equation shows the relationship between system (raw
value range) and real (physical or normalized range) representation
(EQ 1.)
(EQ 2.)
(EQ 3.)
(EQ 4.)
where:
UWord16 Value
is the unsigned 16-bit system representation of the real
value,
SWord16 Value
is the signed 16-bit system representation of the real
value,
UWord8 Value
is the unsigned 8-bit system representation of the real
value,
SWord8 Value
is the signed 8-bit system representation of the real
value,
Real Value
is the real value of the quantity [V, A, RPM, etc.],
Real Quantity Range Max
is the maximum of the quantity range,
defined in the application [V, A, RPM, etc.],
MAX_U16
= 65535 is the maximum of the unsigned 16-bit variable,
MAX_S16
= 32768 is the maximum of the signed 16-bit variable,
MAX_U8 = 255 is the maximum of the unsigned 8-bit variable,
MAX_S8
= 127 is the maximum of the signed 8-bit variable.
UWord16 Value
MAX_U16
1
+
(
)
Real Value
Real Quantity Range Max
--------------------------------------------------------------
=
SWord16 Value
MAX_S16
1
+
(
)
Real Value
Real Quantity Range Max
--------------------------------------------------------------
⋅
=
UByte Value
MAX_U8
1
+
(
)
Real Value
Real Quantity Range Max
--------------------------------------------------------------
⋅
=
SByte Value
MAX_S8
1
+
(
)
Real Value
Real Quantity Range Max
--------------------------------------------------------------
⋅
=
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
.
..