Freescale MMA6222EG Digital dual axis micromachined accelerometer Datasheet

Document Number: MMA6222EG
Rev 1, 10/2008
Freescale Semiconductor
Technical Data
Digital Dual Axis Micromachined
Accelerometer
The MMA62XXEG is a two-axis member of Freescale’s family of
SPI-compatible accelerometers. These devices incorporate digital signal
processing for filtering, trim and data formatting.
MMA6222EG
MMA6255EG
MMA621010EG
Features
•
Available in ±20/20g, ±50/50g, or ±100/100g versions. Additional g-ranges
between 20 and 100g may be available upon request
•
Full-scale range is independently specified for each axis
•
400 Hz low-pass filter, 0.1 Hz high-pass filter, 4-pole, 16 μs sample time,
additional filter options are available
•
Ratiometric analog voltage output
•
10-bit digital signed data output
•
SPI-compatible serial interface
•
Capture/hold input for system-wide synchronization support
•
3.3 or 5 V single supply operation
•
On-chip temperature sensor and voltage regulator
•
Bidirectional internal self-test
•
Minimal external component requirements
•
Pb-free 20-pin SOIC package
•
Automotive AEC-Q100 qualified
EG SUFFIX (Pb-free)
20-LEAD SOIC
CASE 475A-02
PIN CONNECTIONS
Typical Applications
•
Crash detection (Airbag)
•
Impact and vibration monitoring
•
2-AXIS
SPI-COMPATIBLE
ACCELEROMETER
Shock detection
N/C
1
20
N/C
N/C
2
19
N/C
XOUT
3
18
CREGA
VSSA
4
17
CREGA
CREF
YOUT
5
16
CAP/HOLD
6
15
CREF
DIN
7
14
VCC
VPP
8
13
VSS
CREG
9
12
DOUT
10
11
SCLK
CS/RESET
20-PIN SOIC PACKAGE
N/C: NO INTERNAL CONNECTION
ORDERING INFORMATION
Device Name
X-Axis g-Level Y-Axis g-Level
Temperature
Range
Package
Packaging
MMA6222EG
20
20
-40 to +105°C
475A-02
Tubes
MMA6222EGR2
20
20
-40 to +105°C
475A-02
Tape & Reel
MMA6255EG
50
50
-40 to +105°C
475A-02
Tubes
MMA6255EGR2
50
50
-40 to +105°C
475A-02
Tape & Reel
MMA621010EG
100
100
-40 to +105°C
475A-02
Tubes
MMA621010EGR2
100
100
-40 to +105°C
475A-02
Tape & Reel
© Freescale Semiconductor, Inc., 2008. All rights reserved.
VCC
VCC
CS_A
CS_D
SCLK
SCLK1
SCLK2
SCLK
CREGA
DI
MOSI1
MOSI2
DI
CREF
DO
MISO1
MISO2
DO
CREG
100 nF
1 μF
1 μF
100 nF
CS
MMA62XXEG
VSSA
XOUT
VSS
YOUT
CS
Main MCU
Deployment IC
ADC
VPP/TEST
Safing
Sensor(s)
Filter
/
Comparator
DEPLOY_EN1
DEPLOY_EN2
Note: If one axis of the MMA62XXEG sensor is expected to be used as a confirmation of the other axis, Freescale
recommends that MMA62XXEG used in conjunction with an additional sensing/safing device for each axis.
Figure 1-1 Simplified Airbag Application Diagram
1.1
INTRODUCTION
The MMA62XXEG is intended for applications which utilize serial communications as the primary data transfer mechanism. In
addition, an analog output with lower accuracy is available.
Device serial number, acceleration range, filter characteristics and status information are available along with acceleration data
via the SPI interface. A pair of digital-to-analog converters is enabled to provide ratiometric voltage outputs in addition to the digital acceleration value accessible via the SPI.
MMA6222EG
2
Sensors
Freescale Semiconductor
1.2
BLOCK DIAGRAM
A block diagram illustrating the major components of the design is shown in Figure 1-2.
VPP
UNIT
PROGRAMMABLE
DATA ARRAY
VCC
CREG
CREGA
VOLTAGE
REGULATOR
CREGA
REFERENCE
OSCILLATOR
CLOCK
MONITOR
PRIMARY
OSCILLATOR
INTERNAL
CLOCK
CREF
CREF
DIN
VSS
DOUT
SPI
SCLK
CONTROL
LOGIC
VSSA
CS
CAP/HOLD
g-CELL
(Y)
SD
CONVERTER
CONTROL
IN
SINC
FILTER
STATUS
OUT
DIGITAL
OUT
Y IN
TEMP.
SENSOR
SELF-TEST
INTERFACE
TEMP
DSP
(SEE FIGURE 1-2)
Y OUT
DAC
YOUT
X OUT
DAC
XOUT
X IN
g-CELL
(X)
SD
CONVERTER
SINC
FILTER
Figure 1-2 MMA62XXEG Block Diagram
CONTROL
IN
DSP
CONTROL
OUT
OFFSET
MONITOR
Y IN
X IN
LOW-PASS
FILTER
OFFSET,
GAIN,
LINEARITY
ADJUST
HIGH-PASS
FILTER
TEMP
OUTPUT
SCALING
DIGITAL
OUT
OUTPUT
SCALING
TO Y DAC
TO X DAC
Figure 1-3 MMA62XXEG DSP Block Diagram
NOTE: Models of signal chain are available upon request.
MMA6222EG
Sensors
Freescale Semiconductor
3
1.3
PIN FUNCTIONS
The pinout for the MMA62XXEG device is illustrated in Figure 1-4. Pin functions are described below. When self-test is active,
the output becomes more positive in both axes if ST1 is cleared, or more negative in both axes if ST1 is set, as described in
Section 3.1.1.
N/C
1
20
N/C
N/C
2
19
N/C
XOUT
3
18
CREGA
VSSA
4
17
CREGA
YOUT
5
16
CREF
CAP/HOLD
6
15
CREF
DIN
7
14
VCC
VPP
8
13
VSS
CREG
9
12
DOUT
10
11
SCLK
CS/RESET
20-PIN SOIC PACKAGE
N/C: NO INTERNAL CONNECTION
X: +1g
Y: 0g
X: 0g
Y: +1g
X: 0g
Y: -1g
TO CENTER OF
GRAVITATION FIELD
X: -1g
Y: 0g
Response to static orientation within 1g field.
Figure 1-4 MMA62XXEG Pinout
MMA6222EG
4
Sensors
Freescale Semiconductor
1.4
1.4.1
PIN FUNCTION DESCRIPTIONS
VCC
This pin supplies power to the device. Careful printed wiring board layout and capacitor placement is critical to ensure best performance. An external bypass capacitor between this pin and VSS is required, as described in Section 1.5.
1.4.2
VSS
This pin is the power supply return node for the digital circuitry on the MMA62XXEG device.
1.4.3
VSSA
This pin is the power supply return node for analog circuitry on the MMA62XXAEG device. An external bypass capacitor between
this pin and VCC is required, as described in Section 1.5.
1.4.4
CREG
This pin is connected to the internal digital circuitry power supply rail. An external filter capacitor must be connected between this
pin and VSS, as described in Section 1.5.
1.4.5
CREGA
These pins are connected in parallel to the internal analog circuitry power supply rail. One or two external filter capacitors must
be connected between these pins and VSSA, as described in Section 1.5. Two pins are provided to support redundant connection
to the printed wiring board assembly. Redundant external capacitors may be connected to these pins for maximum reliability, as
described in Section 1.5.
1.4.6
CREF
These pins are connected in parallel to an internal reference voltage node utilized by the analog circuitry. One or two external
filter capacitors must be connected between these pins and VSSA, as described shown in Section 1.5. Two pins are provided to
support redundant connection to the printed wiring board assembly. Redundant external capacitors may be connected to these
pins for maximum reliability, as described in Section 1.5.
1.4.7
VPP
This pin should be tied directly to VSS.
1.4.8
SCLK
This input pin provides the serial clock to the SPI port. The state of this pin is also used as a qualifier for externally-controlled
reset. An internal pull-down device is connected to this pin. This input may be left unconnected unless it is desired to initiate device reset as described in Section 1.4.9.
1.4.9
CS/RESET
This pin provides two functions. When the SPI is enabled, this pin functions as the chip select input for the SPI port. The state of
the DIN pin during low-to-high transitions of SCLK is latched internally and DOUT is enabled when CS is at a logic low level.
This pin may also be used to initiate a hardware reset. If CS is held low and SCLK is held high for 512 μs, the internal reset signal
is asserted.
An internal pull-up device is connected to this pin.
1.4.10
DOUT
This pin functions as the serial data output for the SPI port.
Immediately following device reset, DOUT is placed in a high impedance state for approximately 800 μs. At the end of this time,
DOUT is driven high and a 3ms stabilization delay required by the internal circuitry begins. Reset is reported by the device so the
system can be aware of potential difficulties if unexpected resets occur.
1.4.11
DIN
This pin functions as the serial data input to the SPI.
MMA6222EG
Sensors
Freescale Semiconductor
5
1.4.12
CAP/HOLD
When this input pin is low, the SPI acceleration result registers are updated by the DSP whenever a data sample becomes available. Upon a low-to-high transition of CAP/HOLD, the contents of the acceleration result registers are frozen. The result registers
will not be updated so long as this pin remains at a logic ‘1’ level. This pin may be tied directly to VSS if the hold function is not
desired.
1.4.13
XOUT, YOUT
Two Digital-to-Analog Converters (DACs) translate output of the DSP block into voltage levels proportional to the magnitude of
the numerical result and ratiometric to VCC. The DAC outputs have an inherent accuracy of about ±12%.
1.5
EXTERNAL COMPONENTS
The connections illustrated below are recommended. Careful printed wiring board layout and component placement is essential
for best performance. Low ESR capacitors must be connected to CREG and CREGA pins for the best performance. A grounded
land area with solder mask should be placed under the package for improved shielding of the device from external effects. If a
land area is not provided, no signals should be routed beneath the package. See Figure 1-1.
MMA6222EG
6
Sensors
Freescale Semiconductor
SECTION 2 PERFORMANCE SPECIFICATION
2.1
MAXIMUM RATINGS
Maximum ratings are the extreme limits to which the device can be exposed without permanently damaging it. The device contains circuitry to protect the inputs against damage from high static voltages; however, do not apply voltages higher than those
shown in the table below. Keep input and output voltages within the range VSS ≤ V ≤ VCC.
Ref
Rating
Symbol
Value
Unit
1 Supply Voltage
VCC
-0.3 to +7
V
(1)
2 CREG, CREGA, CREF
VREG
-0.3 to +3
V
(1)
3 VPP
VREG
-0.3 to +11
V
(1)
4 SCLK, CS, DIN, CAP/HOLD
VIN
-0.3 to VCC + 0.3
V
(1)
5 DOUT (high impedance state)
VIN
-0.3 to VCC + 0.3
V
(1)
I
10
mA
(1)
7 Acceleration (without hitting internal g-cell stops)
gmax
±800
g
(1)
8 Powered Shock (six sides, 0.5 ms duration)
gpms
±1500
g
(1)
9 Unpowered Shock (six sides, 0.5 ms duration)
gshock
±2000
g
(1)
hDROP
1.2
m
(1)
VESD
VESD
VESD
±2000
±500
±200
V
V
V
(1)
(1)
(1)
Tstg
-40 to +125
°C
(1)
6 Current Drain per Pin Excluding VCC and VSS
10 Drop Shock (to concrete surface)
11
12
13
Electrostatic Discharge
Human Body Model (HBM)
Charge Device Model (CDM)
Machine Model (MM)
14 Storage Temperature Range
Notes:
1. Verified by characterization, not tested in production.
2.2
OPERATING RANGE
The operating ratings are the limits normally expected in the application and define the range of operation.
Ref
16
17
Characteristic
Supply Voltage
Standard Operating Voltage, 3.3V operating range
Standard Operating Voltage, 5V operating range
Symbol
Min
Typ
Max
Units
VCC
VCC
VL
+3.15
+4.75
+3.3
+5.0
VH
+3.45
+5.25
V
V
(1)
(1)
TA
TL
-40
⎯
TH
+105
C
(2)
Operating Temperature Range
18
Notes:
1. Characterized at all values of VL and VH. Production test is conducted at typical voltage unless otherwise noted.
2. Parameters tested 100% at final test.
MMA6222EG
Sensors
Freescale Semiconductor
7
2.3
ELECTRICAL CHARACTERISTICS
VL ≤ (VCC - VSS) ≤ VH, TL ≤ TA ≤ TH, |ΔTA| < 4 K/min unless otherwise specified
Ref
Characteristic
Symbol
Min
Typ
Max
Units
IDD
⎯
⎯
9.5
mA
(2)
(2)
(2)
(2)
(2)
19
Supply Current Drain
VCC = 5.25 V, tS = 16 μs
20
21
22
23
Power-On Recovery Threshold (See Figure 2-1)
VCC
CREG
CREGA
CREF
VPOR_N
VPOR_N
VPOR_N
VPOR_N
2.77
1.80
2.18
1.11
⎯
⎯
⎯
⎯
3.15
2.32
2.50
1.29
V
V
V
V
24
25
26
27
Power-On Reset Threshold (See Figure 2-1)
VCC
CREG
CREGA
CREF
VPOR_A
VPOR_A
VPOR_A
VPOR_A
2.77
1.80
2.18
1.11
⎯
⎯
⎯
2.95
2.10
2.31
1.19
V
V
V
V
28
29
30
31
Hysteresis (VPOR_N - VPOR_A, See Figure 2-1)
VCC
CREG
CREGA
CREF
VHYST
VHYST
VHYST
VHYST
0
0
0
0
388
300
261
150
mV
mV
mV
mV
VDACU
⎯
⎯
2.0
V
(2)
VDD
V2.5
VREF
2.42
2.42
1.20
2.50
2.50
1.25
2.58
2.58
1.29
V
V
V
(1)
(1)
(1)
CREG
ESR
800
⎯
1000
⎯
⎯
200
nF
mΩ
(2)
(2)
⎯
⎯
0.004
digit/mv
(2)
(2)
#
32 Minimum Functional Voltage (See Figure 2-1)
33
34
35
Internally Regulated Voltages
CREG
CREGA (3)
CREF
36
37
External Filter Capacitor (CREG, CREGA)
Value
ESR (including interconnect resistance)
38
39
Power Supply Coupling (4)
Digital output
Analog output
Digital Sensitivity (DOUT)
20 g Range
35 g Range
50 g Range
100 g Range
Sensitivity Error
TA = 25°C
44
45
-40°C ≤ TA ≤ 105°C
40
41
42
43
Notes:
1.
2.
3.
4.
5.
(#)
(*)
*
*
⎯
⎯
⎯
⎯
See Figure 2-2
(2)
(2)
(2)
(2)
*
*
*
*
SENS
SENS
SENS
SENS
⎯
⎯
⎯
⎯
0.04097
0.0717
0.1024
0.2048
⎯
⎯
⎯
⎯
g/digit
g/digit
g/digit
g/digit
(1)(5)
(1)(5)
(1)(5)
(1)(5)
*
*
ΔSENS
ΔSENS
-4
-4
⎯
⎯
+4
+4
%
%
(1)(5)
(1)(5)
Parameters tested 100% at final test.
Verified by characterization, not tested in production.
Tested at VCC = VL and VCC = VH.
Power supply ripple at frequencies greater than 900 kHz should be minimized to the greatest extent possible.
Devices are trimmed at 100 Hz with 1000 Hz low pass filter selected.
Indicates a FSL significant parameter (CPK > 1.33).
Indicates a FSL critical parameter (CPK > 1.67).
MMA6222EG
8
Sensors
Freescale Semiconductor
2.3
ELECTRICAL CHARACTERISTICS (CONTINUED)
VL ≤ (VCC - VSS) ≤ VH, TL ≤ TA ≤ TH, |ΔTA| < 4 K/min unless otherwise specified
Ref
Characteristic
Analog Sensitivity (XOUT, YOUT)
20 g Range
35 g Range
50 g Range
100 g Range
Sensitivity Error
TA = 25°C
50
51
-40°C ≤ TA ≤ 105°C
46
47
48
49
Symbol
Min
Typ
Max
Units
*
*
*
*
ASENS
ASENS
ASENS
ASENS
⎯
⎯
⎯
⎯
23.4
13.40
9.37
4.68.
⎯
⎯
⎯
⎯
mV/V/g
mV/V/g
mV/V/g
mV/V/g
(1)
(1)
(1)
(1)
*
*
ΔSENS
ΔSENS
-16
-16
⎯
⎯
+16
+16
%
%
(1)
(1)
*
*
DOUT
AOUT
-40
0.44 × VCC
0
0.5 × VCC
+40
0.56 × VCC
digit
V
(1)
(1)
RANGE
OFS
ORS
URS
UFS
UNUSED
UNUSED
-509
—
—
—
—
—
510
509
-510
-511
511
-512
508
—
—
—
—
digit
digit
digit
digit
digit
digit
digit
(5)
(5)
(5)
(5)
(5)
(5)
(5)
(2)
52
53
Offset at 0 g (High-pass filter disabled)
10-bits, signed
Analog output trimmed for digital operation
54
55
56
57
58
59
60
Range of Output (DOUT, 10 bits, signed)
Normal
Positive Acceleration Overflow Code
Positive Acceleration Overrange Code
Negative Acceleration Underrange Code
Negative Acceleration Underlfow Code
Unused Code
Unused Code
61
62
63
64
Output value on overrange
20 g Range
35 g Range
50 g Range
100 g Range
gOVER
gOVER
gOVER
gOVER
+20.0
+35.0
+50.0
+100.1
+20.9
+36.6
+52.1
+104.3
+22.1
+38.7
+55.3
+110.5
g
g
g
g
65
66
67
68
Output value on underrange
20 g Range
35 g Range
50 g Range
100 g Range
gUNDER
gUNDER
gUNDER
gUNDER
-20.1
-35.1
-50.0
-100.1
-20.9
-36.6
-52.2
-104.5
-22.2
-38.8
-55.4
-110.7
g
g
g
g
gSAT
-200
—
+200
g
(2)
NLOUT
-1
—
1
% FSR
(2)
nSD
—
—
1.1
mg/√Hz
(2)
*
*
ΔST
ΔST
67
62
72
72
77
82
digit
digit
(1)
(1)
*
*
ΔST
ΔST
10
10
—
—
18
18
% FS
% FS
(1)
(1)
Maximum acceleration without saturation of internal
circuitry
All ranges
69
70 Nonlinearity
71 Noise (1Hz-1kHz)
72
73
74
75
Positive Self Test Output Change
(DOUT, digital)
TA = 25°C
-40°C ≤ TA ≤ 105°C
(XOUT, YOUT, analog)
TA = 25°C
-40°C ≤ TA ≤ 105°C
Notes:
1.
2.
5.
(*)
(2)
Parameters tested 100% at final test.
Verified by characterization, not tested in production.
Functionality verified 100% via scan.
Indicates a FSL critical parameter (CPK > 1.67).
MMA6222EG
Sensors
Freescale Semiconductor
9
2.3
ELECTRICAL CHARACTERISTICS (CONTINUED)
VL ≤ (VCC - VSS) ≤ VH, TL ≤ TA ≤ TH, |ΔTA| < 4 K/min unless otherwise specified
Ref
Characteristic
Symbol
Min
Typ
Max
Units
ΔST
ΔST
-78
-82
-72
-72
-66
-62
digit
digit
(6)
(6)
ΔST
ΔST
-18
-18
—
—
-10
-10
% FS
% FS
(6)
(6)
VZX
VYX
VZY
VXY
-4
-4
-4
-4
—
—
—
—
+4
+4
+4
+4
%
%
%
%
(6)
(6)
(6)
(6)
AVLOW
AVHIGH
OFST
GERR
DNL
—
VCC - 0.25
-0.2
-0.3
-2
—
—
—
—
0.25
—
+0.2
+0.3
+2
V
V
%FSR
%FSR
digit
(2)
(2)
(2)
(2)
(2)
INL
INL
-3
-3.5
—
—
+3
+3.5
digit
digit
(2)
(6)
Output High Voltage
DOUT (ILoad = -100 μA)
91 3.15 V ≤ (VCC - VSS) ≤ 3.45 V
92 4.75 V ≤ (VCC - VSS) ≤ 5.25 V
VOH
VOH
3.25
3.75
—
—
—
—
V
V
(2)
(2)
Output Low Voltage
DOUT, (ILoad = 100 μA)
93 3.15 V ≤ (VCC - VSS) ≤ 3.45 V
94 4.75 V ≤ (VCC - VSS) ≤ 5.25 V
VOL
VOL
—
—
—
—
0.4
0.4
V
V
(2)
(2)
78
79
Negative Self Test Output Change
(DOUT, digital)
TA = 25°C
-40°C ≤ TA ≤ 105°C
(XOUT, YOUT, analog)
TA = 25°C
-40°C ≤ TA ≤ 105°C
80
81
82
83
Cross-Axis Sensitivity
VZX
VYX
VZY
VXY
76
77
DAC Characteristics (XOUT, YOUT)
Minimum Output Level, IOUT = -200 μA
Maximum Output Level, IOUT = 200 μA
Offset Error
Gain Error
Differential Nonlinearity
Integral Nonlinearity
89
TA = 25°C
90
-40°C ≤ TA ≤ 105°C
84
85
86
87
88
95
96
Output Loading (DOUT)
Load Resistance
Load Capacitance
ZOUT
COUT
47
—
—
—
—
35
kΩ
pF
(6)
(6)
97
98
Output Loading (XOUT, YOUT)
Load Resistance
Load Capacitance
ZOUT
COUT
25
—
—
—
—
60
kΩ
pF
(6)
(6)
Input High Voltage
CS/RESET, SCLK, DIN/ST, CAP/HOLD
99 3.15 V ≤ (VCC - VSS) ≤ 3.45 V
100 4.75 V ≤ (VCC - VSS) ≤ 5.25 V
VIH
VIH
1.5
2.5
—
—
—
—
V
V
(2)
(2)
Input Low Voltage
CS/RESET, SCLK, DIN/ST, CAP/HOLD
101 3.15 V ≤ (VCC - VSS) ≤ 3.45 V
102 4.75 V ≤ (VCC - VSS) ≤ 5.25 V
VIL
VIL
—
—
—
—
0.85
1.0
V
V
(2)
(2)
IIH
RIN
-30
190
-50
270
-260
350
μA
kΩ
(2)
(2)
IIL
30
50
260
μA
(2)
Input Current
High (at VIH)
SCLK, DIN, CAP/HOLD
103
104
VPP/TEST (internal pulldown resistor)
Low (at VIL)
105
CS/RESET
Notes:
1. Parameters tested 100% at final test.
2. Verified by characterization, not tested in production.
6. Parameters tested 100% at unit probe.
MMA6222EG
10
Sensors
Freescale Semiconductor
2.4
CONTROL TIMING
VL ≤ (VCC - VSS) ≤ VH, TL ≤ TA ≤ TH, |ΔTA| < 4 K/min unless otherwise specified
Ref
Characteristic
Symbol
Min
Typ
Max
Units
380
400
420
Hz
(1)
335
353
371
Hz
(1)
fC(HPF)
OHPF
0.095
—
0.1
1
0.105
—
Hz
1
(1)
(1)
tOP
tXY
—
—
—
—
840
10
μs
ms
(1)
(2)
112 Internal Oscillator Frequency
fOSC
3.8
4.0
4.2
MHz
(3)
113 Clock Monitor Threshold
fMON
3.6
—
4.4
MHz
(1)
114 Chip Select to Internal Reset (See Figure 2-3)
tCSRES
486
512
538
μs
(1)
115
116
117
118
119
120
121
Serial Interface Timing (See Figure 2-4)
Clock period
CS asserted to SCLK high
Data setup time
Data hold time
SCLK low to data out
SCLK high to CS negated
CS negated to CS asserted
tSCLK
tCSCLK
tDC
tCDIN
tCDOUT
tCHCSH
tCSN
120
60
20
10
—
60
526
—
—
—
—
—
—
—
—
—
—
—
50
—
—
ns
ns
ns
ns
ns
ns
ns
(1)
(1)
(1)
(1)
(1)
(1)
(1)
122
DAC Low-Pass Filter
Cutoff Frequency
fC
5
10
20
kHz
(4)
BWGCELL
—
3
—
kHz
(2)
DSP Low-Pass Filter (5)
Cutoff frequency (6)
106
DSP Low-Pass Filter
Cutoff frequency (-3dB, referenced to 0 Hz)
107
108
109
DSP High-Pass Filter
Cutoff frequency
Filter Order
110
111
Power-On Recovery Time
POR negated to CS low
Power applied to XOUT, YOUT valid
123 Sensing Element Rolloff Frequency (-3 dB)
Notes:
1.
2.
3.
4.
5.
6.
Functionality verified 100% via scan. Timing characteristic is directly determined by internal oscillator frequency.
Verified by characterization, not tested in production.
Parameters tested 100% at final test.
Parameters tested 100% at unit probe.
Devices are trimmed at 100 Hz with 1000 Hz low-pass filter option selected.
Cutoff frequencies shown are -4dB referenced to 0 Hz response, to correspond with previous specifications.
MMA6222EG
Sensors
Freescale Semiconductor
11
5.5V
VPOR_N
VPOR_A
VDACU
VCC
POR
tXY
XOUT/YOUT
DAC OUTPUT
UNCERTAIN
Figure 2-1 Power-Up Timing
Figure 2-2 Power Supply Coupling - DAC Outputs
MMA6222EG
12
Sensors
Freescale Semiconductor
CS
tCSRES
INTERNAL RESET
SCLK
Figure 2-3 CS Reset Timing
CS
tCSN
tCSCLK
tSCLK
tCHCSH
SCLK
tDC
tCDIN
DIN
tCDOUT
DATA
VALID
DOUT
Figure 2-4 Serial Interface Timing
MMA6222EG
Sensors
Freescale Semiconductor
13
SECTION 3 INTERNAL MODULES
3.1
ONE-TIME PROGRAMMABLE DATA ARRAY
A 400-bit programmable data array allows each device to be customized. The array interface incorporates parity circuitry for fault
detection along with a locking mechanism to prevent unintended changes. Portions of the array are reserved for factory-programmed trim values. Customer accessible data stored in the array are shown in the table below.
Addresses $00 - $0D are associated with the programmable data array. A writable register at address $0E is provided for device
control operations. Two read-only registers at addresses $0F and $10 provide status information.
Unused bits within the data array are always read as ‘0’ values. Unprogrammed OTP bits are also read as ‘0’ values.
Table 3-1 Customer Accessible Data
Location
Bit Function
Type
Address
Register
7
6
5
4
3
2
1
0
$00
SN0
SN[7]
SN[6]
SN[5]
SN[4]
SN[3]
SN[2]
SN[1]
SN[0]
$01
SN1
SN[15]
SN[14]
SN[13]
SN[12]
SN[11]
SN[10]
SN[9]
SN[8]
$02
SN2
SN[23]
SN[22]
SN[21]
SN[20]
SN[19]
SN[18]
SN[17]
SN[16]
$03
SN3
SN[31]
SN[30]
SN[29]
SN[28]
SN[27]
SN[26]
SN[25]
SN[24]
$04
DEVCFG0
Factory Programmed
$05
DEVCFG1
Factory Programmed
$06
DEVCFG2
Factory Programmed
$07
DEVCFG3
Factory Programmed
$08
DEVCFG4
Factory Programmed
$09
DEVCFG5
LOCK2
PAR2
COMP1
COMP0
SPARE
DACEN
AD3
AD2
$0A
AXCFG_X
RNG_X[2]
RNG_X[1]
RNG_X[0]
LPF_X[4]
LPF_X[3]
LPF_X[2]
LPF_X[1]
LPF_X[0]
$0B
AXCFG_Y
RNG_Y[2]
RNG_Y[1]
RNG_Y[0]
LPF_Y[4]
LPF_Y[3]
LPF_Y[2]
LPF_Y[1]
LPF_Y[0]
F
$0C
Unused
$0E
DEVCTL
RES_1
RES_0
CE
Reserved
$0D
DSPCFG
SPARE
SPARE
INTERP
OVLD
$0F
TEMP
TEMP[7]
TEMP[6]
TEMP[5]
TEMP[4]
$10
DEVSTAT
IDE
OSCF
DEVINIT
TF
$11
COUNT
COUNT[7]
COUNT[6]
COUNT[5]
COUNT[4]
N/A
HPFB
YINV
ST1
ST0
R/W
SD
HPFD
TEMP[3]
TEMP[2]
HPFSEL
OFMON
F
TEMP[1]
TEMP[0]
HPF
OFF_Y
OFF_X
DEVRES
COUNT[3]
COUNT[2]
COUNT[1]
COUNT[0]
R
Type codes
F: Factory programmed OTP location
R: Read-only register
R/W: Read/write register
N/A: Not applicable
3.1.1
‘DEVICE CONTROL REGISTER (DEVCTL)
A read-write register at address $0E supports a number of device control operations as described below. Reserved bits within
DEVCTL are always read as logic ‘0’ values.
Table 3-2 Device Control Register
Bit
Address
$0E
Register
DEVCTL
7
6
5
4
3
2
1
0
RES1
RES0
CE
Reserved
HPFB
YINV
ST1
ST0
MMA6222EG
14
Sensors
Freescale Semiconductor
3.1.1.1
Reset Control (RES_1, RES_0)
A specific series of three write operations involving these two bits will cause the internal digital circuitry to be reset. The state of
the remaining bits in the DEVCTL register do not affect the reset sequence, however any write operation involving this register
in which both RES_1 and RES_0 are cleared will terminate the sequence.
To reset the internal digital circuitry, the following register write operations must be performed in the order shown:
1. Set RES1. RES0 must remain cleared.
2. Set RES1 and RES0.
3. Clear RES1 and set RES0.
RES1 and RES0 are always read as logic ‘0’ values. After reset sequence has been completed DEVCTL register will read 0X00.
It should be noted that after a reset or power-cycle sequence is completed the DEVCTL register reset to the value 0X00.
3.1.1.2
Clear Error (CE)
Setting this bit to a logic ‘1’ state will clear transient error status conditions. It is necessary to either set this bit or perform a device
reset if an error condition has been reported by the device before acceleration data transfer can be resumed. The device reset
condition may be cleared only after device initialization has completed.
Error conditions and classification are described in Section 4.2.
The state of this bit is always read as logic ‘0’.
3.1.1.3
High-Pass Filter Bypass (HPFB)
Setting this bit will remove the high-pass filter from the signal chain within the DSP block. The state of this bit is indicated when
DEVCTL is read. This bit is always cleared following reset.
The state of the high-pass filter is frozen when this bit is at a logic ‘1’ level.
3.1.1.4
Self-Test Control (ST1, ST0)
Bidirectional self-test control is provided through manipulation of these bits. ST1 controls direction while ST0 enables and disables the self-test circuitry. ST1 and ST0 are always cleared following internal reset. When ST0 is set, the high-pass filter is bypassed and the values within the high-pass filter are frozen. Both axes are affected simultaneously by the state of these bits. If
the offset monitor is enabled, self-test activation in a single direction should be limited to less than 30 ms.
The state of the ST0 bit is indicated as part of all acceleration results.
3.1.1.5
Y-Axis Signal Inversion Control (YINV)
This control function is provided as a means to verify operation of the two-channel multiplexor which alternately provides X-axis
and Y-axis data to the DSP. An inverter block and multiplexor at the Y-axis input to the DSP are controlled by the YINV bit. Setting
this bit when ST0 is set has the effect of changing the sign of acceleration in the Y-axis. Operation of the YINV bit is illustrated in
Figure 3-1 below. Y-axis inversion may be selected only during self-test; the state of this bit has no effect when ST0 is cleared.
ST0
YINV
DSP
1
ΣΔ
SINC
FILTER
ΣΔ
SINC
FILTER
Y CONVERTER
X CONVERTER
0
Figure 3-1 Y-Axis Inversion Function
MMA6222EG
Sensors
Freescale Semiconductor
15
Self-test operations controlled by YINV along with ST1 and ST0 are summarized in the following table.
Table 3-3 Self-Test Control Operations
Self-Test Operation
YINV
ST1
ST0
X-Axis
Y-Axis
X
X
0
Self Test Disabled, Y-Axis Signal Inversion Disabled
0
0
1
Positive Deflection
0
1
1
1
0
1
Positive Deflection
Negative Deflection
1
1
1
Negative Deflection
Positive Deflection
Negative Deflection
NOTE:
Offset correction is applied within the DSP, and is not affected by the state of the YINV bit. Consequently, inversion of the Y-axis signal may result in saturation of the Y-axis output value.
MMA6222EG
16
Sensors
Freescale Semiconductor
Correct operation of the DSP input multiplexor may be confirmed by performing the operations shown in Figure 3-2.
YINV = 0, ST1 = 0, ST0 = 1
READ ACCELERATION (R1)
YINV = 0, ST1 = 0, ST0 = 1
READ ACCELERATION (R1)
YINV = 0, ST1 = 1, ST0 = 1
READ ACCELERATION (R2)
YINV = 0, ST1 = 1, ST0 = 1
READ ACCELERATION (R2)
N
R1 > R2
N
R1 > R2
Y
Y
YINV = 1, ST1 = 0, ST0 = 1
READ ACCELERATION (R3)
YINV = 1, ST1 = 0, ST0 = 1
READ ACCELERATION (R3)
YINV = 1, ST1 = 1, ST0 = 1
READ ACCELERATION (R4)
YINV = 1, ST1 = 1, ST0 = 1
READ ACCELERATION (R4)
N
R3 ≥ R4
N
R3 ≤ R4
Y
Y
MULTIPLEXOR
VERIFICATION
SUCCESSFUL
MULTIPLEXOR
VERIFICATION
SUCCESSFUL
MULTIPLEXOR
VERIFICATION
FAILED
MULTIPLEXOR
VERIFICATION
FAILED
X-axis
Y-axis
Figure 3-2 DSP Input Multiplexor Verification Flow Chart
3.1.2
Temperature Sensor Value (TEMP)
This read-only register contains a signed value which provides a relative temperature indication. The temperature sensor is uncalibrated and its output for a given temperature will vary from one device to the next. The value in this register increases with
temperature.
Table 3-4 Temperature Sensor Value Register
Location
Bit Function
Address
Register
7
6
5
4
3
2
1
0
$0F
TEMP
TEMP[7]
TEMP[6]
TEMP[5]
TEMP[4]
TEMP[3]
TEMP[2]
TEMP[1]
TEMP[0]
3.1.3
Device Status Register (DEVSTAT)
This read-only register is accessible in all modes.
Table 3-5 Device Status Register
Location
Bit Function
Address
Register
7
6
5
4
3
2
1
0
$10
DEVSTAT
IDE
OSCF
DEVINIT
TF
HPF
OFF_Y
OFF_X
DEVRES
3.1.3.1
Internal Data Error Flag (IDE)
This flag will be set if a register data parity fault or a marginally programmed fuse is detected. Device reset is required to clear
this fault condition. If a parity error is associated with the data stored in the fuse array, this fault condition cannot be cleared. This
flag is disabled when the device is in test mode.
MMA6222EG
Sensors
Freescale Semiconductor
17
3.1.3.2
Oscillator Fault Flag (OCSF)
This flag will be set if the primary oscillator and reference oscillator frequencies vary by an amount greater than the specified
tolerance. In normal operating mode, an oscillator fault condition will result in DOUT being driven high when CS is asserted.
3.1.3.3
Device Initialization Flag (DEVINIT)
This flag is set during the interval between negation of internal reset and completion of device initialization. DEVINIT is cleared
automatically.
3.1.3.4
Temperature Fault Flag (TF)
This flag is set if the value reported by the on-chip temperature sensor exceeds specified limits. TF may be cleared by writing a
logic ‘1’ value to the CE bit in DEVCTL, provided that the fault condition is no longer detected.
3.1.3.5
High-Pass Filter Status (HPF)
This bit is set when a high-pass filter is present in the DSP signal chain when the HPFB bit has been set.
3.1.3.6
Y-Axis Offset Error Flag (OFF_Y)
3.1.3.7
X-Axis Offset Error Flag (OFF_X)
The offset error flags are set if the associated signal reaches the specified offset limit. These flags may be cleared by writing a
logic ‘1’ value to the CE bit in DEVCTL. Offset faults are not reported for 1.5 seconds following reset.
3.1.3.8
Device Reset Flag (DEVRES)
This flag is set during device initialization. A logic ‘1’ must be written to the CE bit in the Device Control register (DEVCTL) to
clear this bit.
3.1.4
Counter Register (COUNT)
This read-only register provides the value of a free-running 8-bit counter derived from the primary oscillator. A five-bit prescaler
divides the 4 MHz primary oscillator frequency by 32. Thus, the value in the register increases by one count every 8 μs, and the
counter rolls over every 2.048 ms.
Table 3-6 Counter Register
Location
Bit Function
Address
Register
7
6
5
4
3
2
1
0
$11
COUNT
COUNT[7]
COUNT[6]
COUNT[5]
COUNT[4]
COUNT[3]
COUNT[2]
COUNT[1]
COUNT[0]
MMA6222EG
18
Sensors
Freescale Semiconductor
SECTION 4 SERIAL COMMUNICATIONS
Digital data communication with MMA62XXEG is completed through synchronous serial transfers via the SPI port. Conventional
SPI protocol is employed, with MMA62XXEG acting as a slave device observing CPOL = 0, CPHA = 0, MSB first. A number of
data integrity features are incorporated into the transfer protocol.
4.1
SPI PROTOCOL
4.1.1
Overview
Each transfer is completed through a sequence of two operations, termed phases. During the first phase, the type of transfer and
associated control information is transmitted from the SPI master to MMA62XXEG. Data from MMA62XXEG is transmitted during
the second phase. Single-level queuing is employed as illustrated in Figure 4-1.
SCLK
CS
DIN
Phase One: Type and Control
Request Error
Phase Two: Data
DOUT
Request Error only reported on
first access following reset
Figure 4-1 Transfer Phase Detail
Any activity on DIN or SCLK is ignored when CS is negated. Consequently, intermediate transfers involving other SPI devices
may occur between Phase One and Phase Two.
SCLK
CS
DIN
T1P1
T2P1
T3P1
T1P2
T2P2
T3P2
DOUT
Figure 4-2 Single-Level Communications Queuing Detail
MMA6222EG
Sensors
Freescale Semiconductor
19
The first data transmitted by MMA62XXEG following reset is the Request Error message shown below. This occurs because
MMA62XXEG transmits during Phase Two and there is no corresponding Phase One for the first transfer.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
P
1
1
1
0
0
0
0
0
0
0
RE
0
SCLK
CS
DOUT
0
Figure 4-3 Request Error Frame
4.1.2
Command Format
The following abbreviations are used in the following figures.
Bit Address
Bit Name
Description
DIN
DOUT
A[4:0]
Register address
12:8
12:8
D[9:0]
10-bit acceleration data
N/A
9:0
Acceleration data indicator
13
13
Axis specifier
14
14
P
Parity
N/A
12
S[1:0]
Status
N/A
11:10
Acc
AXIS
Commands are transferred from the SPI master to MMA62XXEG. Commands fall into three categories: acceleration data requests, register operations and device test. Acceleration data requests are initiated when bit 13 from the master is set to a
logic ‘1’ state. Register operations and device test are when bit 13 is set to logic’0’ and are further distinguished by the states of
bits 15 and 14.
4.1.3
Acceleration Data Transfers
Acceleration data requests are initiated when bit 15 from the master is set to a logic ‘0’ state and bit 13 is set to a logic ‘1’ state.
The axis associated with the acceleration to be transferred is determined by DIN bit 14.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
AXIS
Acc
X
X
X
X
X
X
X
X
X
X
X
X
0
SCLK
CS
DIN
0
X
Figure 4-4 Acceleration Command Format
MMA6222EG
20
Sensors
Freescale Semiconductor
Acceleration data is returned as illustrated below. In addition to the acceleration value, the axis associated with the measurement
is indicated in bit 13, while bits 11 and 10 provide status information.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
AXIS
P
S1
S0
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
SCLK
CS
DOUT
Figure 4-5 Acceleration Command Response
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
AXIS
P
S1
S0
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
SCLK
CS
DOUT
Figure 4-6 Acceleration Command Response, Self-Test Active
4.1.4
AXIS Bit
Bit 13 indicates the axis associated with acceleration data, as shown below.
Table 4-1 AXIS Bit Definitions
4.1.5
AXIS
Selected Axis
0
X
1
Y
Status Bits
Data bits 11 and 10 convey additional information regarding the acceleration data being transmitted. If an error condition is indicated, bits D9 through D0 contain flags which further describe the nature of the error.
Table 4-2 STATUS Bit Definitions
Status Bit
Definition
S1
S0
0
0
Not Applicable
0
1
Acceleration Data
1
0
Self-test Data
1
1
Error
The combination S1 = 0, S0 = 0 is never transmitted by MMA62XXEG in response to an acceleration data command.
MMA6222EG
Sensors
Freescale Semiconductor
21
4.1.6
Acceleration Response Error Status
Several error conditions may be detected and reported in response to an acceleration data command.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
AXIS
P
1
1
0
0
0
0
0
ND
0
HE
0
0
SCLK
CS
DOUT
0
Figure 4-7 ND/HE Error Frame
4.1.6.1
ND - No Data Available
Bit 4 will be set to indicate a “No Data” condition if acceleration data is requested while the device is undergoing device initialization following reset. To ensure that an unexpected device reset will always be detectable regardless of the interval at which the
sensor is accessed, “No Data” status will be returned in response to the first acceleration data request following device initialization.
4.1.6.2
HE - Hardware Error
A fault has been detected within the MMA62XXEG device. Detectable fault conditions are listed below
•
•
•
Device over-temperature
Offset error
Internal parity error
Specific error conditions are indicated in the device status register. The contents of this register are returned in response to a
device test operation, as described in Section 4.1.10. Oscillator fault status will be reported only if the internal oscillator is functional but frequency comparison between the primary and reference oscillators fails. If an oscillator fault condition exists, the device will respond as described in Section 4.2.2.2.
4.1.6.3
CNC - Conditions Not Correct
Acceleration data will not be provided when bit 15 of command is detected as logic ‘1’. The response to such requests is illustrated below. Should a No Data Available or Hardware Error condition also exist, it will be reported as well.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
AXIS
P
1
1
0
0
0
0
0
ND
1
HE
0
0
SCLK
CS
DOUT
0
Figure 4-8 CNC Error Frame
4.1.7
Non-Acceleration Transfers
Three different types of non-acceleration transfers are supported; register write, register read and device test. Non-acceleration
data transfers are initiated when bit 13 from the master is set to a logic ‘0’ state. The operation to be performed is indicated by
bits 15 and 14.
Table 4-3 Non-Acceleration Operations
Bit 15
Bit 14
Operation
0
0
Unused
0
1
Register Write
1
0
Register Read
1
1
Device Test
MMA6222EG
22
Sensors
Freescale Semiconductor
Non-acceleration transfers will always succeed except in the case of oscillator fault, SPI error or request error conditions. Only
oscillator failure, SPI error or request error conditions are reported in response to non-acceleration commands. Other error condition are reported as hardware errors in response to acceleration data requests.
4.1.8
Register Write Operations
Register write operations are initiated when bits 15 and 13 from the master is set to a logic ‘0’ and bit 14 is set to a logic ‘1’. Bits
12 through 8 contain a five-bit address, while the last eight bits contain the data value to be written. Only the DEVCTL register is
writable. If an attempt is made to write to any register other than DEVCTL, a request error response (see Figure 4-15) will occur.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
1
0
A4
A3
A2
A1
A0
D7
D6
D5
D4
D3
D2
D1
D0
SCLK
CS
DIN
Figure 4-9 Register Write Command
Response to a register write operation is illustrated below. DEVCTL bits which can be read as logic ‘1’ (HPFB, ST1 and ST0) will
be indicated during the last eight clock cycles, as shown.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
1
P
1
1
1
0
0
0
0
0
HPFB
0
ST1
0
SCLK
CS
DOUT
ST0
Figure 4-10 Register Write Command Response
4.1.9
Register Read Operations
Register read operations are initiated when bit 15 from the master is set to a logic ‘1’ state and bits 14 and 13 are driven to a logic
low level. The address of the register to be accessed is contained in bits 12 through 8. DIN bits 7 through 0 are ignored by
MMA62XXEG during register read command transfers.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
0
0
A4
A3
A2
A1
A0
X
X
X
X
X
X
X
X
SCLK
CS
DIN
Figure 4-11 Register Read Command
Data read from the selected register is returned in bits 7 through 0, as shown below.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
1
0
P
1
1
1
0
D7
D6
D5
D4
D3
D2
D1
D0
SCLK
CS
DOUT
Figure 4-12 Register Read Command Response
MMA6222EG
Sensors
Freescale Semiconductor
23
4.1.10
Device Test Operation
A device test operation is conducted when DIN bits 15 and 14 are at a logic high level and bit 13 is driven to a logic low level.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
1
1
0
X
X
X
X
X
X
X
X
X
X
X
X
0
SCLK
CS
DIN
X
Figure 4-13 Device Test Command
The content of the device status register are transmitted in bits D7 through D0 in response to a device test operation. Refer to
Section 3.1.3 for details regarding the device status register
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
1
1
P
1
1
1
0
D7
D6
D5
D4
D3
D2
D1
D0
SCLK
CS
DOUT
Figure 4-14 Device Test Command Response
Status register bit 0 is set following any device reset. This bit will remain set until explicitly cleared by writing the CE bit in the
device control register, as described in Section 3.1.1.
4.1.11
Non-Acceleration Request Error
An error condition is indicated if a non-acceleration command is detected and DIN bits 15 and 14 are both zero, as no operation
is specified for this combination.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
P
1
1
1
0
0
0
0
0
0
0
1
0
SCLK
CS
DOUT
0
Figure 4-15 Non-Acceleration Request Error
4.1.12
SPI Error Response
The following conditions detected at DIN will result in a SPI error. Since the error condition likely indicate a corrupted transfer, the
response frame is the same regardless of the state of bit 13 at DIN.
•
•
•
•
SCLK high when CS asserted
Fewer than 16 rising edges of SCLK detected while CS is asserted
Greater than 16 rising edges of SCLK detected while CS is asserted
SCLK high when CS negated
MMA6222EG
24
Sensors
Freescale Semiconductor
The response to a SPI error condition is shown below.
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
0
0
P
1
1
1
0
0
0
0
0
0
1
0
0
SCLK
CS
DOUT
0
Figure 4-16 SPI Error Response
4.1.13
Initial Response
During initialization phase one, the device does not respond to SPI access attempts. During the second initialization phase, register operations complete normally, however the device will respond to sensor data requests with No Data (ND) status. The first
acceleration request following completion of device initialization will also result in a No Data response. This ensures that an unexpected reset will always be detectable, even in systems which poll the device at longer intervals than required for device initialization.
4.2
ERROR CONDITIONS
A number of error conditions may be detected. If an error condition is detected, MMA62XXEG will always transmit an error indicator in place of acceleration data. Error indicators are defined in the following sections.
4.2.1
Error Condition Classification
Error conditions fall into five classes, as described below.
4.2.1.1
Critical Errors
Error condition affects device operation. Critical errors are always reported regardless of other error conditions which may be
detected.
4.2.1.2
Initialization
Initialization is a special case condition which occurs after reset until internal circuitry is ready to provide accurate acceleration
results. The duration of the initialization period depends upon whether a high-pass filter has been selected or not. If no high-pass
filter has been selected, initialization requires approximately 3 ms after power-up. If a high-pass filter has been selected, an additional 200 ms is required. During the device initialization period, this status is reported in response to any acceleration data
request, however normal register access operations may be performed.
Device initialization status is cleared automatically.
4.2.1.3
Reset
Reset is also a special case condition. Reset will occur at power-on, as the result of a temporary undervoltage condition, or in
response to explicit actions taken by the controller. Upon negation of the internal reset signal, the DEVRES flag in the device
status (DEVSTAT) register is set. Because it is critically important that the system can detect any unintended reset condition, this
flag may only be cleared by writing a logic ‘1’ to the CE bit in the device control register (DEVCTL) after device initialization has
completed.
4.2.1.4
Transient Errors
An error condition which may be the result of a condition which precludes an accurate acceleration measurement but which may
not persist. Transient errors are reported in response to acceleration data transfer requests. If a transient error condition has been
detected, a logic ‘1’ may be written to the clear error (CE) bit in the device control (DEVCTL) register to clear the associated flag.
Should the error condition still exists, the flag will only be cleared momentarily.
MMA6222EG
Sensors
Freescale Semiconductor
25
4.2.1.5
External Errors
An error condition resulting from an invalid command input or corrupted data transfer. External errors are reported only once.
Errors are prioritized as shown in the table. In the event that multiple error conditions are detected, the highest priority error will
be reported.
4.2.2
Error Definitions
4.2.2.1
Internal Data Error
Class: Critical error
A parity fault has been detected in the internal data registers. In the event of a soft error (bit-flip within the register), an internal
data error may be recoverable by resetting the device.
4.2.2.2
Internal Oscillator Fault
Class: Critical error
If an oscillator fault condition is detected, DOUT is driven high continuously when CS is asserted, as illustrated below.
SCLK
CS
DOUT
Figure 4-17 Oscillator Failure Response
4.2.2.3
Device Initialization
Class: Reset
Following a reset condition, the device requires a period of time to complete initialization of the DSP and internal registers. If
multiple SPI transfers are attempted during this initialization period, the second and all subsequent transfers will result in this
status. The first transfer following reset, regardless of the state of initialization returns device reset status.
4.2.2.4
Temperature Fault
Class: Transient error
The internal temperature sensor value exceeds the allowable limits for the device.
4.2.2.5
Unexpected Axis Selection
Class: External error
An acceleration data request has been received with an axis specification which is not supported.
4.2.2.6
Offset Error
Class: Transient error
This condition exists if the output of the offset monitor circuit reaches 10% of the full-scale value and the OFMON bit is set in the
DSPCFG1 register.
4.2.2.7
Device Reset
Class: Reset
Following any reset operation, the device returns this status during the first acceleration data access.
4.2.2.8
SPI Clock Fault
Class: External error
A SPI clock fault may result from the following conditions:
•
•
4.3
The number of rising clock edges detected while CS is asserted is not equal to 16
SCLK is high when CS is asserted
ACCELERATION DATA REPRESENTATION
Acceleration values may be determined from the 10-bit digital output (DV) as follows:
MMA6222EG
26
Sensors
Freescale Semiconductor
a = sensitivity × DV
(signed data representation)
Sensitivity is determined by nominal full-scale range (FSR), linear range of digital values and a scaling factor to compensate for
sensitivity error.
The linear range of digital values for MMA62XXEG is limited to accommodate overrange values produced by the DSP along with
two reserved end values. The linear range of digital values and signed values is from -509 to +508. Note that the ranges are
asymmetrical by 1 LSB.
The sensitivity error scaling factor is determined as follows:
scale_factor = (100.0 - error_tolerance) / 100.0
Finally, the nominal sensitivity in terms of acceleration per LSB is determined:
1 LSB = (FSR / scale_factor) / ((Max_Linear_Value - Min_Linear_Value) / 2.0);
For the linear ranges of digital values indicated and projected sensitivity values, the nominal value of 1 LSB for each full-scale
range is shown in the table below.
Table 4-4 Nominal Sensitivity (10-bit data)
Full-Scale
Range
(g)
Nominal
Sensitivity
(g/digit)
Sensitivity Error = 4%
100
0.2048
50
0.1024
35
0.07170
20
0.04097
MMA6222EG
Sensors
Freescale Semiconductor
27
Table 4-5 Nominal Signed Acceleration Data Values
Nominal Acceleration
Digital
Value
10-Bit Range (Self Test Disabled)
20 g
35 g
50 g
511
Reserved
510
Overflow
509
100 g
Overrange
508
+20.8
+36.4
+52.0
+104
507
+20.8
+36.4
+51.9
+104
506
+20.7
+36.3
+51.8
+104
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
127
+5.20
9.11+
+13.0
+26.0
126
+5.16
+9.03
+12.9
+25.8
125
+5.12
+8.96
+12.8
+25.6
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
3
+0.123
+0.215
+0.307
+0.614
2
+0.082
+0.143
+0.205
+0.410
1
+0.041
+0.072
+0.102
+0.205
0
0
0
0
0
-1
-0.041
-0.072
-0.102
-0.205
-2
-0.082
-0.143
-0.205
-0.410
-3
-0.123
-0.215
-0.307
-0.614
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
-126
-5.16
-9.03
-12.9
-25.8
-127
-5.20
-9.11
-13.0
-26.0
-128
-5.24
-9.18
-13.1
-26.2
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
-507
-20.8
-36.4
-51.9
-104
-508
-20.8
-36.4
-52.0
-104
-509
-20.9
-36.5
-52.1
-104
-510
Underrange
-511
Underflow
-512
Reserved
MMA6222EG
28
Sensors
Freescale Semiconductor
4.3.1
Overrange Response
Positive acceleration levels which exceed the full-scale range of the device fall into two categories: overrange and overflow. Overrange conditions exist when the signal level is beyond the full-scale range of the device but within the computational limits of the
DSP. An overflow condition occurs if the output of the low-pass filter equals or exceeds the maximum digital value which can be
output from the sinc filter. Sinc filter saturation will occur before the internal datapath width is exceeded. At 25°C the sinc filter will
not saturate at sustained acceleration levels with the range of ±200 g. The DSP operates predictably under all cases of overrange, although the signal may include residual high frequency components for some time after returning to the normal range of
operation due to non-linear effects of the sensor. If an overflow condition occurs, the signal is internally clipped. The DSP will
recover from an overflow condition within a few sample times after the input signal returns to the input range of the DSP. Due to
internal clipping within the DSP, some high-frequency artifacts may be present in the output following an overflow condition.
For negative acceleration levels, corresponding underrange and underflow conditions are defined.
4.4
CAP/HOLD INPUT
The CAP/HOLD input provides a system-level synchronization mechanism. When driven high, transfer of acceleration results
from the DSP to the SPI buffers does not occur. The DSP continues its normal operation regardless of the state of CAP/HOLD.
Data read from the device when CAP/HOLD is high will reflect the last values available from the DSP at the time of the signal
transition.
MMA6222EG
Sensors
Freescale Semiconductor
29
SECTION 5 OPERATING MODES
MMA62XXEG operates in one of two modes, factory test programming mode and normal operating mode. Factory test and programming mode is entered only when certain conditions are met, and provides support for programming of customer-defined
data. Normal mode is entered by default when the device is powered on.
5.1
NORMAL OPERATING MODE
Normal mode is entered whenever the device is powered and the VPP pin is held at or below the level of VCC. In normal mode,
acceleration data and device support data transfers are supported.
5.1.1
Power-On Reset
Upon application of voltage at the VCC pin, the internal regulators will begin driving the internal power supply rails. The CREG and
CREGA pins are tied to the internal rails. As voltages at VCC, CREG and CREGA rise, the device becomes operational. An internal
reset signal is asserted at this time. Separate comparators on monitor all three voltages, and when all are above specified thresholds, the reset signal is negated and the device begins its initialization process.
5.1.2
Device Initialization
Following any reset, the device completes a sequence of operations which initialize internal circuitry. Device initialization is completed in two phases. During the first phase, the fuse array is read and its contents are transferred to mirror registers. Power to
the fuse array is then removed to reduce supply current load. A voltage reference used within the sensor interface stabilizes during the second phase. If the HPFSEL bit is set in the DSP configuration register (DSPCFG), the high-pass filter is also initialized
during phase two.
The device will not respond to SPI accesses during initialization phase one. Acceleration results are not available during initialization phase two, however the SPI is functional and register operations may be performed. If an acceleration data access is
attempted, the device will respond with non-acceleration data.
The first initialization phase requires approximately 800 μs to complete. The second phase completes in approximately 3 ms if
no high-pass filter is selected, and 200 ms if the HPFSEL bit is programmed to a logic ‘1’ state. The DEVINIT bit in the device
status register (DEVSTAT) remains set following reset until the second phase of device initialization completes.
MMA6222EG
30
Sensors
Freescale Semiconductor
APPENDIX A
Table A-1: Low-Pass Filter Options
Filter Option
Cutoff
Frequency
LPF_X[4]
LPF_Y[4]
LPF_X[3]
LPF_Y[3]
LPF_X[2]
LPF_Y[2]
LPF_X[1]
LPF_Y[1]
LPF_X[0]
LPF_Y[0]
Reference
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
1
0
0
1
0
0
1
0
0
0
0
0
0
Equivalent
Poles
Sample
Time
fC (HZ)
tS μs
0
10
256
1
15
128
0
2
30
64
1
3
50
0
0
4
75
0
1
5
100
1
1
0
6
130
1
1
1
7
160
1
0
0
0
8
200
1
0
0
1
9
250
0
1
0
1
0
10
300
0
1
0
1
1
11
350
0
1
1
0
0
12
400
0
1
1
0
1
13
500
0
1
1
1
0
14
600
0
1
1
1
1
15
700
1
0
0
0
0
16
800
1
0
0
0
1
17
900
1
0
0
1
0
18
1000
1
0
0
1
1
19
10
1
0
1
0
0
20
15
1
0
1
0
1
21
30
1
0
1
1
0
22
50
1
0
1
1
1
23
75
1
1
0
0
0
24
100
1
1
0
0
1
25
130
1
1
0
1
0
26
160
1
1
0
1
1
27
200
1
1
1
0
0
28
250
1
1
1
0
1
29
300
1
1
1
1
0
30
350
1
1
1
1
1
31
400
32
16
4
64
32
2
16
MMA6222EG
Sensors
Freescale Semiconductor
31
PACKAGE DIMENSIONS
MMA6222EG
32
Sensors
Freescale Semiconductor
PACKAGE DIMENSIONS
MMA6222EG
Sensors
Freescale Semiconductor
33
How to Reach Us:
Home Page:
www.freescale.com
Web Support:
http://www.freescale.com/support
USA/Europe or Locations Not Listed:
Freescale Semiconductor, Inc.
Technical Information Center, EL516
2100 East Elliot Road
Tempe, Arizona 85284
1-800-521-6274 or +1-480-768-2130
www.freescale.com/support
Europe, Middle East, and Africa:
Freescale Halbleiter Deutschland GmbH
Technical Information Center
Schatzbogen 7
81829 Muenchen, Germany
+44 1296 380 456 (English)
+46 8 52200080 (English)
+49 89 92103 559 (German)
+33 1 69 35 48 48 (French)
www.freescale.com/support
Japan:
Freescale Semiconductor Japan Ltd.
Headquarters
ARCO Tower 15F
1-8-1, Shimo-Meguro, Meguro-ku,
Tokyo 153-0064
Japan
0120 191014 or +81 3 5437 9125
[email protected]
Asia/Pacific:
Freescale Semiconductor China Ltd.
Exchange Building 23F
No. 118 Jianguo Road
Chaoyang District
Beijing 100022
China
+86 10 5879 8000
[email protected]
For Literature Requests Only:
Freescale Semiconductor Literature Distribution Center
P.O. Box 5405
Denver, Colorado 80217
1-800-441-2447 or +1-303-675-2140
Fax: +1-303-675-2150
[email protected]
Information in this document is provided solely to enable system and software
implementers to use Freescale Semiconductor products. There are no express or
implied copyright licenses granted hereunder to design or fabricate any integrated
circuits or integrated circuits based on the information in this document.
Freescale Semiconductor reserves the right to make changes without further notice to
any products herein. Freescale Semiconductor makes no warranty, representation or
guarantee regarding the suitability of its products for any particular purpose, nor does
Freescale Semiconductor assume any liability arising out of the application or use of any
product or circuit, and specifically disclaims any and all liability, including without
limitation consequential or incidental damages. “Typical” parameters that may be
provided in Freescale Semiconductor data sheets and/or specifications can and do vary
in different applications and actual performance may vary over time. All operating
parameters, including “Typicals”, must be validated for each customer application by
customer’s technical experts. Freescale Semiconductor does not convey any license
under its patent rights nor the rights of others. Freescale Semiconductor products are
not designed, intended, or authorized for use as components in systems intended for
surgical implant into the body, or other applications intended to support or sustain life,
or for any other application in which the failure of the Freescale Semiconductor product
could create a situation where personal injury or death may occur. Should Buyer
purchase or use Freescale Semiconductor products for any such unintended or
unauthorized application, Buyer shall indemnify and hold Freescale Semiconductor and
its officers, employees, subsidiaries, affiliates, and distributors harmless against all
claims, costs, damages, and expenses, and reasonable attorney fees arising out of,
directly or indirectly, any claim of personal injury or death associated with such
unintended or unauthorized use, even if such claim alleges that Freescale
Semiconductor was negligent regarding the design or manufacture of the part.
Freescale™ and the Freescale logo are trademarks of Freescale Semiconductor, Inc.
All other product or service names are the property of their respective owners.
© Freescale Semiconductor, Inc., 2008. All rights reserved.
RoHS-compliant and/or Pb-free versions of Freescale products have the functionality and electrical
characteristics of their non-RoHS-compliant and/or non-Pb-free counterparts. For further
information, see http:/www.freescale.com or contact your Freescale sales representative.
For information on Freescale’s Environmental Products program, go to http://www.freescale.com/epp.
MMA6222EG
Rev. 1
10/2008
Similar pages