English
Language : 

IC-MU150 Datasheet, PDF (32/64 Pages) IC-Haus GmbH – MAGNETIC OFF-AXIS POSITION ENCODER - POLE WIDTH 1.50MM
iC-MU150 MAGNETIC OFF-AXIS
POSITION ENCODER - POLE WIDTH 1.50MM
SPI interface: general description
Rev B1, Page 32/64
NCS
SCLK: MODE 0
SCLK: MODE 3
MOSI
MISO
OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0 ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1 ADR0
OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0 ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1 ADR0
Figure 19: SPI transmission SPI-Mode 0 and 3, using opcode Read REGISTER(single) as an example
MODEA
Code
0x0
0x1
Description
SPITRI
SPI
Table 48: MODEA: SPI
3. The master transmits the opcode OP and address
ADR via MOSI; iC-MU150 immediately outputs
OP and ADR via MISO.
4. The master terminates the command with a rising
edge at NCS.
In mode SPITRI MISO (Pin PA3) is set to tristate if the
slave is not selected by the master, i.e. NCS=1. This
function is used for a parallel SPI bus configuration
(Figure 20).
SCLK
NCS0
NCS1
SPI
Master
MOSI
MISO
iC-MU150
MOSI
MISO
(1)
iC-MU150
MOSI
MISO
(0)
Figure 20: Example configuration SPI bus with 2 par-
allel Slaves
SPI modes 0 and 3 are supported, i.e. idle level of
SCLK 0 or 1, acceptance of data on a rising edge. Data
is sent in packages of 8 bits and with the MSB first
(see Figure 19). Each data transmission starts with the
master sending an opcode (Table 49) to the slave.
The following describes the typical sequence of an SPI
data transmission, taking the command Read REGIS-
TER (single) as an example (see Figure 19):
5. iC-MU150 switches its MISO output to 1
(MODEA=0x1) or tristate (MODEA=0x0).
OPCODE
Code
0xB0
0xA6
0xF5
0x97
0xD2
0xAD
Description
ACTIVATE
SDAD-transmission (sensor data)
SDAD Status (no latch)
Read REGISTER(single)
Write REGISTER (single)
REGISTER status/data
Table 49: SPI OPCODEs
For the setup to be compatible with SPI protocol, when
setting the sensor data length for the command "SDAD
transmission" with parameters OUT_MSB, OUT_LSB,
and OUT_ZERO, it must be ensured that the output
data length is a multiple of 8 bits.
SPI interface: Command ACTIVATE
Each iC-MU150 has one RACTIVE and one PACTIVE
register. These registers are used pairwise to configure
the register data channel and the sensor/actuator data
channel of a slave.
1. The master initializes a transmission with a falling
edge at NCS.
2. iC-MU150 passes the level on from MOSI to
MISO.
Using the ACTIVATE command, the register and sen-
sor data channels of the connected slaves can be
switched on and off. The command causes all slaves
to switch their RACTIVE and PACTIVE registers be-
tween MOSI and MISO and set them to 0 (slaves in
daisy chain connection, Figure 23). The register and