Datasheet

Table Of Contents
Datasheet
BMM150 Geomagnetic Sensor
Page 32
BST-BMM150-DS001-01 | Revision 1.0 | April 2013 Bosch Sensortec
© Bosch Sensortec GmbH reserves all rights even in the event of industrial property rights. We reserve all rights of disposal such as copying and passing on to
third parties. BOSCH and the symbol are registered trademarks of Robert Bosch GmbH, Germany.
Note: Specifications within this document are subject to change without notice.
6. Digital interfaces
The BMM150 supports SPI and I²C digital interface protocols for communication as a slave with
a host device.
The active interface is selected by the state of the “protocol select” pin (PS):
PS: “0” (“1”) selects SPI (I²C).
By default, SPI operates in the standard 4-wire configuration. It can be re-configured by
software to work in 3-wire mode instead of standard 4-wire mode.
Both interfaces share the same pins. The mapping for each interface is given in the following
table:
Table 27: Mapping of the interface pins
Pin#
Name
use w/
SPI
use w/ I²C
Description
C1
SDO
SDO
I²C address
selection
SPI: Data Output (4-wire mode)
I²C: Used to set LSB of I²C address
B4
SDI
SDI
SDA
SPI: Data Input (4-wire mode) Data Input /
Output (3-wire mode)
I²C: Serial Data
A5
CSB
CSB
I²C address
selection
SPI: Chip Select (enable)
I²C: Used to set bit1 of I²C address
A3
SCK
SCK
SCL
SPI: Serial Clock
I²C: Serial Clock