MMA8451Q is in off mode and communications on the I 2 C interface are ignored. The I 2 C interface may be used for
communications between other I 2 C devices and the MMA8451Q does not affect the I 2 C bus.
Table 9. Serial Interface Pin Description
Pin Name
SCL
SDA
SA0
Pin Description
I 2 C Serial Clock
I 2 C Serial Data
I 2 C least significant bit of the device address
There are two signals associated with the I 2 C bus; the Serial Clock Line (SCL) and the Serial Data line (SDA). The latter is a
bidirectional line used for sending and receiving the data to/from the interface. External pullup resistors connected to VDDIO are
expected for SDA and SCL. When the bus is free both the lines are high. The I 2 C interface is compliant with Fast mode (400 kHz),
and Normal mode (100 kHz) I 2 C standards ( Table 4 ).
5.11.1
I 2 C Operation
The transaction on the bus is started through a start condition (START) signal. START condition is defined as a HIGH to LOW
transition on the data line while the SCL line is held HIGH. After START has been transmitted by the Master, the bus is considered
busy. The next byte of data transmitted after START contains the slave address in the first 7 bits, and the eighth bit tells whether
the Master is receiving data from the slave or transmitting data to the slave. When an address is sent, each device in the system
compares the first seven bits after a start condition with its address. If they match, the device considers itself addressed by the
Master. The 9th clock pulse, following the slave address byte (and each subsequent byte) is the acknowledge (ACK). The
transmitter must release the SDA line during the ACK period. The receiver must then pull the data line low so that it remains
stable low during the high period of the acknowledge clock period.
A LOW to HIGH transition on the SDA line while the SCL line is high is defined as a stop condition (STOP). A data transfer is
always terminated by a STOP. A Master may also issue a repeated START during a data transfer. The MMA8451Q expects
repeated STARTs to be used to randomly read from specific registers.
The MMA8451Q's standard slave address is a choice between the two sequential addresses 0011100 and 0011101. The
selection is made by the high and low logic level of the SA0 (pin 7) input respectively. The slave addresses are factory
programmed and alternate addresses are available at customer request. The format is shown in Table 10 .
Table 10. I 2 C Address Selection Table
Slave Address (SA0 = 0)
0011100 (0x1C)
Slave Address (SA0 = 1)
0011101 (0x1D)
Comment
Factory Default
Single Byte Read
The MMA8451Q has an internal ADC that can sample, convert and return sensor data on request. The transmission of an
8-bit command begins on the falling edge of SCL. After the eight clock cycles are used to send the command, note that the data
returned is sent with the MSB first once the data is received. Figure 11 shows the timing diagram for the accelerometer 8-bit I 2 C
read operation. The Master (or MCU) transmits a start condition (ST) to the MMA8451Q, slave address ($1D), with the R/W bit
set to “0” for a write, and the MMA8451Q sends an acknowledgement. Then the Master (or MCU) transmits the address of the
register to read and the MMA8451Q sends an acknowledgement. The Master (or MCU) transmits a repeated start condition (SR)
and then addresses the MMA8451Q ($1D) with the R/W bit set to “1” for a read from the previously selected register. The Slave
then acknowledges and transmits the data from the requested register. The Master does not acknowledge (NAK) the transmitted
data, but transmits a stop condition to end the data transfer.
Multiple Byte Read
When performing a multi-byte read or “burst read”, the MMA8451Q automatically increments the received register address
commands after a read command is received. Therefore, after following the steps of a single byte read, multiple bytes of data
can be read from sequential registers after each MMA8451Q acknowledgment (AK) is received until a no acknowledge (NAK)
occurs from the Master followed by a stop condition (SP) signaling an end of transmission.
Single Byte Write
To start a write command, the Master transmits a start condition (ST) to the MMA8451Q, slave address ($1D) with the R/W bit
set to “0” for a write, the MMA8451Q sends an acknowledgement. Then the Master (MCU) transmits the address of the register
to write to, and the MMA8451Q sends an acknowledgement. Then the Master (or MCU) transmits the 8-bit data to write to the
designated register and the MMA8451Q sends an acknowledgement that it has received the data. Since this transmission is
MMA8451Q
Sensors
Freescale Semiconductor, Inc.
17
相关PDF资料
MMA8452QR1 IC ACCELER 2G/4G/8G 3AXIS 16QFN
MMA8453QR1 IC ACCELER 2G/4G/8G 3AXIS 16QFN
MMBF0201NLT1 MOSFET N-CH 20V 300MA SOT-23
MMBF170-7 MOSFET N-CH 60V 500MA SOT23-3
MMBF170LT1 MOSFET N-CH 60V 500MA SOT-23
MMBF170 MOSFET N-CH 60V 500MA SOT-23
MMBF2201NT1 MOSFET N-CH 20V 300MA SOT-323
MMBF2202PT1 MOSFET P-CH 20V 300MA SOT-323
相关代理商/技术参数
MMA8452Q 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:3-Axis, 12-bit/8-bit Digital Accelerometer
MMA8452QR1 功能描述:加速计 - 板上安装 LOW G 3-AXIS 12BT EX VLT RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA8452QT 功能描述:加速计 - 板上安装 LOW G 3-AXIS 12BT EX VLT RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA8453Q 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Xtrinsic MMA8453Q 3-Axis, 10-bit/8-bit Digital Accelerometer
MMA8453QR1 功能描述:加速计 - 板上安装 LOW G 3-AXIS DGTL ACCEL RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA8453QT 功能描述:加速计 - 板上安装 LOW G 3-AXIS DGTL ACCEL RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C
MMA8491Q 制造商:FREESCALE 制造商全称:Freescale Semiconductor, Inc 功能描述:Xtrinsic MMA8491Q 3-Axis Multifunction Digital Accelerometer
MMA8491QR1 功能描述:加速计 - 板上安装 3-Axis Low Voltage Discrete Tilt Sensor RoHS:否 制造商:Murata 传感轴:Double 加速:12 g 灵敏度: 封装 / 箱体: 输出类型:Analog 数字输出 - 位数:11 bit 电源电压-最大:5.25 V 电源电压-最小:4.75 V 电源电流:4 mA 最大工作温度:+ 125 C 最小工作温度:- 40 C