English
Language : 

IC-MU_17 Datasheet, PDF (33/66 Pages) IC-Haus GmbH – MAGNETIC OFF-AXIS POSITION ENCODER - POLE WIDTH 1.28MM
iC-MU MAGNETIC OFF-AXIS
POSITION ENCODER - POLE WIDTH 1.28MM
SPI Interface: general description
Rev D1, Page 33/66
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 18: SPI transmission SPI-Mode 0 and 3, using opcode Read REGISTER(single) as an example
MODEA
Code
0x0
0x1
Description
SPITRI
SPI
Table 45: MODEA: SPI
3. The master transmits the opcode OP and address
ADR via MOSI; iC-MU 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 19).
SCLK
NCS0
NCS1
SPI
Master
iC-MU
MOSI
MISO
(1)
iC-MU
MOSI
MISO
(0)
MOSI
MISO
Figure 19: 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 18). Each data transmission starts with the
master sending an opcode (Table 46) 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 18):
1. The master initializes a transmission with a falling
edge at NCS.
2. iC-MU passes the level on from MOSI to MISO.
5. iC-MU 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 46: 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-MU has one RACTIVE and one PACTIVE reg-
ister. These registers are used pairwise to configure
the register data channel and the sensor/actuator data
channel of a slave.
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 22). The register and