MMA955xL
Sensors
10 Freescale Semiconductor, Inc.
3.3 Pin Function Descriptions
This section provides a brief description of the various pin functions available on the MMA955xL platform. Ten of the device pins
are multiplexed with Rapid GPIO (RGPIO) functions. The “Pin Function #1” column in Table 3 on page 9 lists which function is
active when the hardware exits the Reset state. Freescale or user firmware can use the pin mux-control registers in the System
Integration Module (SIM) to change pin assignments for each pin after reset. For detailed information about these registers, see
the MMA955xL Three-Axis Accelerometer Reference Manual (MMA955xLRM).
V
DD
and V
SS
: Digital power and ground. V
DD
is nominally 1.8 V.
V
DDA
and V
SSA
: Analog power and ground. V
DDA
is nominally 1.8 V. To optimize performance, the V
DDA
line can be filtered to
remove any digital noise that can be present on the 1.8 V supply. (See Figure 5 and Figure 6 on page 16.)
RESETB: The RESETB pin is an open-drain, bidirectional pin with an internal, weak, pullup resistor. At start-up, it is configured
as an input pin, but also can be programmed to become bidirectional. Using this feature, the MMA955xL device can reset external
devices for any purpose other than power-on reset. Reset must be pulled high at power up to boot to Application code space. If
low, it will boot to ROM code. After startup, Reset may be asserted to reset the device. The total external capacitance to ground
has to be limited when using RESETB-pin, output-drive capability. For more details, see the “System Integration Module” chapter
of the MMA955xL Three-Axis Accelerometer Reference Manual (MMA955xLRM).
Slave I
2
C port: SDA0 and SCL0: These are the slave-I
2
C data and clock signals, respectively. The MMA955xL device can be
controlled via the serial port or via the slave SPI interface.
Master I
2
C: SDA1 and SCL1: These are the master-I
2
C data and clock signals, respectively.
Analog-to-Digital Conversion: AN0, AN1: The on-chip ADC can be used to perform a differential, analog-to-digital conversion
based on the voltage present across pins AN0(-) and AN1(+). Conversions for these pins are at the same Output Data Rate
(ODR) as the MEMS transducer signals. Input levels are limited to 1.8 V differential.
Rapid General Purpose I/O: RGPIO[9:0]: The CPU has a feature called Rapid GPIO (RGPIO). This is a 16-bit, input/output port
with single-cycle write, set, clear, and toggle functions available to the CPU. The MMA955xL device brings out the lower 10 bits
of that port as pins of the device. At reset, All of the RGPIO pins are configured as input pins, although pin muxing does reassign
some pins to non-RGPIO function blocks. Pull-ups are disabled.
RGPIO[9] is connected to BKGD/MS. RGPIO[9:6] can be set as interrupt pins for most interrupt sources.
RGPIO[1:0] SDA0 and SCL0 are connected at reset.
Interrupts: INT: This input pin can be used to wake the CPU from a deep-sleep mode. It can be programmed to trigger on either
rising or falling edge, or high or low level. This pin operates as a Level-7 (high-priority) interrupt.
Debug/Mode Control: BKGD/MS: At start-up, this pin operates as mode select. If this pin is pulled high during start up, the CPU
will boot normally and run code. If this pin is pulled low during start-up, the CPU will boot into active Background-Debug Mode
(BDM). In BDM, this pin operates as a bidirectional, single-wire, background-debug port. It can be used by development tools for
downloading code into on-chip RAM and flash and to debug that code. There is an internal pullup resistor on this pin. It may be
left floating.
Timer: PDB_A and PDB_B: These are the two outputs of the programmable delay block.
Slave SPI Interface: SCLK, SDI, SDO and SSB: These pins control the slave SPI clock, data in, data out, and slave-select
signals, respectively. The MMA955xL platform can be controlled via this serial port or via the slave-I
2
C interface. SSB has a spe-
cial function at startup that selects the Slave interface mode. Low at startup selects SPI and high selects I
2
C.
INT_O: The slave-port output interrupt pin. This pin can be used to flag the host when a response to a command is available to
read on the slave port. This Interrupt pin can only output the COCO bit interrupt. Other than for the MMA9559, use RGPIO6–
RGPIO9 for full interrupt capability.
TPMCH0 and TPMCH1: The I/O pin associated with 16-bit, TPM channel 0 and 1.
3.4 System Connections
3.4.1 Power Sequencing
An internal circuit powered by V
DDA
provides the device with a power-on-reset signal. In order for this signal to be properly rec-
ognized, it is important that V
DD
is powered up before or simultaneously with V
DDA
. The voltage potential between V
DD
and V
DDA
must not be allowed to exceed the value specified in Table 7 on page 16.
3. RGPIO3/SDA1/SSB = Low at startup selects SPI. High at startup selects I
2
C. This is a function of the application boot code, not of the hardware.
MMA955xL
Sensors
Freescale Semiconductor, Inc. 11
3.4.2 Layout Recommendations
Provide a low-impedance path from the board power supply to each power pin (V
DD
and V
DDA
) on the device and from the
board ground to each ground pin (V
SS
and V
SSA
).
Place 0.01 to 0.1 µF capacitors as close as possible to the package supply pins to meet the minimum bypass requirement.
The recommended bypass configuration is to place one bypass capacitor on each of the V
DD
/V
SS
pairs. V
DDA
/V
SSA
ceramic
and tantalum capacitors tend to provide better tolerances.
Ensure that capacitor leads and associated printed-circuit traces that connect to the chip V
DD
and V
SS
(GND) pins are as
short as possible.
Bypass the power and ground with a capacitor of approximately 1 µF and a number of 0.1-µF ceramic capacitors.
Minimize PCB trace lengths for high-frequency signals. This is especially critical in systems with higher capacitive loads that
could create higher transient currents in the V
DD
and V
SS
circuits.
Take special care to minimize noise levels on the V
DDA
and V
SSA
pins.
Use separate power planes for V
DD
and V
DDA
and separate ground planes for V
SS
and V
SSA
. Connect the separate analog
and digital power and ground planes as close as possible to power supply outputs. If both analog circuit and digital circuits
are powered by the same power supply, it is advisable to connect a small inductor or ferrite bead in series with both the V
DDA
and V
SSA
traces.
Physically separate the analog components from noisy digital components by ground planes. Do not place an analog trace
in parallel with digital traces. It is also desirable to place an analog ground trace around an analog signal trace to isolate it
from digital traces.
Provide an interface to the BKGD/MS pin if in-circuit debug capability is desired.
Ensure that resistors R
P1
and R
P2
, in the following figure, match the requirements stated in the I
2
C standard. For the shown
configuration, the value of 4.7 kΩ would be appropriate.
3.4.3 MMA955xL Platform as an Intelligent Slave
I
2
C pullup resistors, a ferrite bead, and a few bypass capacitors are all that are required to attach this device to a host platform.
The basic configurations are shown in the following two figures. In addition, the RGPIO pins can be programmed to generate
interrupts to a host platform in response to the occurrence of real-time application events. In this case, the pins should be routed
to the external interrupt pins of the CPU.
NOTE
Immediately after a device reset, the state of pin number 8 (RGPIO3/SDA1/SSB functions) is used to select the slave port inter-
face mode. This implies important rules in the way the host controller or, more generally, the complete system should be handling
this pin.
First of all, whenever a reset occurs on the MMA955xL, the RGPIO3 pin level shall be consistent with the interface mode of op-
eration. This is particularly important if this pin is driven from external devices. If the RGPIO3 level does not match the current
mode of operation, an alternate mode is selected and communication with the host is lost.
If I
2
C mode is used, a good practice is to tie RGPIO3 to a pull-up resistor so that it defaults to high level. Note that such a con-
nection exists when the Master I
2
C interface is used (SDA1 function for pin 8). When using I
2
C mode for the slave interface, the
RGPIO3 pin plays two roles: RGPIO3 and mode selection. When the MMA955xL is powered on and the mode selection is I
2
C,
the RGPIO3 pin is released as a GPIO pin. The default setting of RGPIO3 is as an output pin and output low. In order to reduce
the leakage current on the pull-up resistor, a large resistor value can be used or RGPIO3 can be set as an input pin.
When using SPI mode for the slave interface, the situation is more complex as the same pin plays two roles: SSB and mode
selection. Moreover, after a SPI read or write operation, the SSB line returns to high level. Consequently, if the host is sending a
command to the MMA955xL that induces a subsequent reset, immediately after the write transaction, the host shall force the
SSB line to low level so that SPI mode is still selected after reset. Keeping the duration for the SSB line low typically depends on
the latency between the write transaction and the execution of the reset command. Such latency can be significant for the
MMA9553L pedometer firmware as the Command Interpreter and Scheduler Application are running at 30 Hz, which gives a 33
ms typical latency. The MMA9550L and MMA9551L firmware, on the other hand, operate the Command Interpreter and Sched-
uler Applications at 488 Hz, which gives a 2 ms typical latency.
The rule obviously applies also when a hardware reset is issued by the host through MMA955xL pin number 3 (RESETB active
low). Again the host has to drive the SSB line low prior to release of the hardware reset line to high level, which triggers immediate
MMA955xL reset and boot sequence. Keeping the SSB line low for a 1 ms duration (after RESETB is released) is enough for the
MMA955xL slave device to reboot into SPI mode.
MMA955xL
Sensors
12 Freescale Semiconductor, Inc.
Figure 4. Platform as an I
2
C slave
9
4XLHW9''$IRU
EHVWSHUIRUPDQFH
&
ȝ)
&
ȝ)




,17B287
,
&B'$7$
,
&B&/.
.ȍ
5
9
&
ȝ)
9
8
00$;
9''
%.*'06,2
5(6(7%
6&/,26&/.
966
,2$1
,2$1
,23'%B$,17B2
966
,2,17
6'$,26',
,26'2
,266%
966$
,23'%B%
9''$




.ȍ
5
9
.ȍ
5
9
.ȍ
5
,2FDQRQO\EH
FRQILJXUHGDV
&2&2ELWLQWHUUXSW
)RUPRVWLQWHUUXSW
VRXUFHVXVH
,2,2
&LVQRWQHFHVVDU\IRU
DOOLPSOHPHQWDWLRQVEXWLV
UHFRPPHQGHGDVJRRG
GHVLJQSUDFWLFHIRUDFKLHYLQJ
ORZQRLVHRSHUDWLRQ
6HHWKH127(LQWKLVVHFWLRQ

MMA9550LR1

Mfr. #:
Manufacturer:
NXP / Freescale
Description:
Accelerometers 3-AXIS low g
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union