English
Language : 

FXLS8471Q Datasheet, PDF (20/75 Pages) Freescale Semiconductor, Inc – Linear Accelerometer
6.2.2 SPI READ/WRITE operations
A READ operation is initiated by transmitting a 0 for the R/W bit. Then the 8-bit register address, ADDR[7:0] is encoded in the
first and second serialized bytes. Subsequent bits are ignored by the part. The read data is deserialized from the MISO pin.
Similarly a WRITE operation is initiated by transmitting a 1 for the R/W bit. After the first and second serialized bytes multiple-
data bytes can be transmitted into consecutive registers, starting from the indicated register address in ADDR[7:0].
An SPI transaction is started by asserting the CS_B pin (high-to-low transition), and ended by deasserting the CS_B pin (low-to-
high transition).
R/W bit followed by ADDR [6:0] ADDR[7] followed by 7 “don’t care” bits
Data0*
Data1
—
Datan
* Data bytes must be transmitted to the slave (FXLS8471Q) using the MOSI pin by the master when R/W = 1. Data bytes will be transmitted by
the slave (FXLS8471Q) to the master using the MISO pin when R/W = 0. The first 2 bytes are always transmitted by the master using the MOSI
pin. That is, a transaction is always initiated by master. 1
Figure 8. SPI single-burst READ/WRITE transaction diagram
The registers embedded inside FXLS8471Q are accessed through either an I2C, or a SPI serial interface. To enable either
interface the VDDIO line must be connected to the interface supply voltage. If VDD is not present and VDDIO is present
FXLS8471Q is in shutdown mode and communications on the interface are ignored. If VDDIO is held high, VDD can be powered
off and the communications pins will be in a high impedance state. This will allow communications to continue on the bus with
other devices.
6.2.3
Table 10. Serial interface pin descriptions
Pin Name
VDDIO
SA1/CS_B
SCL/SCLK
SDA/MOSI
SA0/MISO
Pin Description
Digital interface power
I2C second least significant bit of device address/SPI chip select
I2C/SPI serial clock
I2C serial data/SPI master serial data out slave serial data in
I2C least significant bit of the device address/SPI master serial data in slave out
I2C/SPI auto detection
Table 11. I2C/SPI auto detection
SA0
GND
VDDIO
Floating
Slave address
I2C
I2C
SPI
FXLS8471Q employs an interface mode, auto-detection circuit that will select either I2C or SPI interface mode based on the state
of the SA0 pin during power up or when exiting reset. Once set for I2C or SPI operation, the device will remain in I2C or SPI mode
until the device is reset or powered down and the auto-detection process is repeated. Please note that when SPI interface mode
is desired, care must be taken to ensure that no other slave device drives the common SA0/MISO pin during the 1 ms period
after a hard or soft reset or powerup event.
6.2.4 Power supply sequencing and I2C/SPI mode auto-detection
FXLS8471Q does not have any specific power supply sequencing requirements between VDD and VDDIO voltage supplies to
ensure normal operation. To ensure correct operation of the I2C/SPI auto-detection function, VDDIO should be applied before or
at the same time as VDD. If this order cannot be maintained, the user should either toggle the RST line or power cycle the VDD
rail in order to force the auto-detect function to restart and correctly identify the desired interface. FXLS8471Q will indicate
completion of the reset sequence by toggling the INT1 pin from logic high to low to high over a 500 ns period. If the INT1 pin was
already low prior to the reset event, it will only go high.
FXLS8471Q
20
Sensors
Freescale Semiconductor, Inc.