
preliminary
preliminary
iC-PVS
LINEAR/OFF-AXIS
BATTERY-BUFFERED ABSOLUTE POSITION HALL SENSOR
Rev A2, Page 39/51
SPI SLAVE INTERFACE
General Protocol Description
The implemented SPI slave can be activated by pa-
rameter DIOMODE (Table 7). SPI modes 0 and 3 are
supported. This means that the idle state of SCLK
(CLK) can be either low or high. Data is always sam-
pled on the rising edge of SCLK and the idle state of
MISO is high.
As shown in Figure 19, a falling edge on NCS initiates
an SPI transaction causing the MOSI signal to be fed
through to MISO. While NCS is low, SPI is set active.
Data is sent byte by byte with the MSB first. When SPI
is not active (NCS = high), the output MISO is tristate
(high Z) and clock signals on SCLK are ignored. This
allows connecting multiple SPI slaves to a single SPI
master. Refer to section "Multi-Slave configuration with
iC-PVS" on page 42 for more information.
Each SPI transaction starts with one of the opcodes
listed in 53. A SPI transmission including SCLK lines
for mode 0 and 3 is illustrated in figure 19.
OPCODE
Code
Description
0x81
Read Registers
0xCF
Write Registers
0xA6
Read Position
0xD9
Write Command
0x9C
Read Status Register
0x97
Read Register - I2C Slave Access
0xD2
Write Register - I2C Slave Access
0xAD
Get Register Communication Status
0xB0
Activate Slave in Chain
Table 53: SPI Operation Codes
CLK: SCLK MODE 3
SI: MOSI
SO: MISO
NCS
OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0
OP7 OP6 OP5 OP4 OP3 OP2 OP1 OP0
ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1
ADR7 ADR6 ADR5 ADR4 ADR3 ADR2 ADR1 ADR0
ADR0
CLK: SCLK MODE 0
Figure 19: SPI Transmission