MMA7456LR1 Freescale, MMA7456LR1 Datasheet - Page 15

no-image

MMA7456LR1

Manufacturer Part Number
MMA7456LR1
Description
Manufacturer
Freescale
Datasheet

Specifications of MMA7456LR1

Package Type
LGA
Operating Supply Voltage (min)
2.4V
Operating Supply Voltage (typ)
2.5/3.3V
Operating Supply Voltage (max)
3.6V
Operating Temperature (min)
-40C
Operating Temperature (max)
85C
Operating Temperature Classification
Industrial
Product Depth (mm)
3mm
Product Height (mm)
1mm
Product Length (mm)
5mm
Mounting
Surface Mount
Pin Count
14
Lead Free Status / RoHS Status
Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MMA7456LR1
Manufacturer:
FREESCALE
Quantity:
20 000
ASSIGNING, CLEARING & DETECTING INTERRUPTS
Assigning the interrupt pins is done in Register $18. There are 3 combinations for the interrupt pins to be assigned which are
outlined below in the table for INTREG[1:0].
Table 7. Configuring the Interrupt settings using Register $18 with INTREG[1:0] bits
00: INT1 Register is detecting Level while INT2 is detecting Pulse.
01: INT1 Register is detecting Pulse while INT2 is detecting Level.
10: INT1 Register is detecting a Single Pulse and INT2 is detecting Single Pulse (if 2
time window and second time window > 0 then INT2 will detect the double pulse only.
INTPIN: INT1 pin is routed to INT1 bit in Detection Source Register ($0A) and INT2 pin is routed to INT2 bit in Detection Source
Register ($0A).
INTPIN: INT2 pin is routed to INT1 bit in Detection Source Register ($0A) and INT1 pin is routed to INT2 bit in Detection Source
Register ($0A).
Note: When INTREG[1:0] =10 for the condition to detect single pulse on INT1 and either single or double pulse on INT2, INT1
register bit can no longer be cleared by setting CLR_INT1 bit. It is cleared by setting CLR_INT2 bit. In this case, setting CLR_INT2
clears both INT1 and INT2 register bits and resets the detection operation. Follow the example given for clearing the interrupts.
Clearing the Interrupt Pins: Register $17
CLR_INT1
1: Clear “INT1”
0: Do not clear “INT1”
After interrupt has triggered due to a detection, the interrupt pin (INT1 or INT2) need to be cleared by writing a logic 1. Then the
interrupt pin should be enabled to trigger the next detection by setting it to a logic 0.
This example is to show how to reset the interrupt flags
void ClearIntLatch(void)
{
IIC_ByteWrite(INTRST, 0x03);
IIC_ByteWrite(INTRST, 0x00);
}
$18 Control 1 Register
$17: Interrupt Latch Reset (Read/Write)
Sensors
Freescale Semiconductor
DFBW
D7
D7
0
--
0
INTREG[1:0]
00
01
10
THOPT
D6
D6
--
0
0
ZDA
D5
D5
--
0
0
Single Pulse detection
“INT1” Register Bit
Pulse Detection
Level detection
YDA
D4
D4
--
0
0
XDA
D3
D3
--
0
0
CLR_INT2
1: Clear “INT2”
0: Do not clear “INT2”
INTREG[1]
D2
D2
--
0
0
nd
INTREG[0]
Time Window = 0) or if there is a latency
CLR_INT2
Single or Double Pulse Detection
D1
D1
0
0
“INT2” Register Bit
Pulse Detection
Level Detection
CLR_INT1
INTPIN
D0
D0
0
0
MMA7456L
Function
Function
Reg $18
Reg $17
Default
Default
15

Related parts for MMA7456LR1