English
Language : 

IC-PMX Datasheet, PDF (15/27 Pages) IC-Haus GmbH – ENERGY HARVESTING MULTITURN COUNTER/ENCODER
iC-PMX
ENERGY HARVESTING MULTITURN COUNTER/ENCODER
Rev A3, Page 15/27
General Protocol Description
SPI modes 0 and 3 are supported, i.e. data is captured
on the rising edge of SCK and the idle polarity of SCK
is insignificant. Data is sent bytewise with the MSB first.
Each data transmission begins with the master sending
an opcode. MISO is in high impedance state if NCS is
high and it stays in high impedance state until a read
command is received. This allows to connect MISO
and MOSI to realize a 3-wire SPI interface.
The opcodes 0x20 to 0x24 are used to set configuration
parameters in iC-PMX. This is done by sending the
opcode followed by 8 bit configuration data as shown
in fig. 1. The 3 least significant bits of the opcode are
used to select the address in the configuration memory.
The parameter values are stored when the 16th rising
edge of SCK is received.
NCS
SCK
MOSI
MISO
0 0 1 0 0 OP2 OP1 OP0 DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Figure 1: 16-bit Set Commands
The opcodes 0x28 to 0x2f are used to read data from
iC-PMX. This is done by sending the opcode and pro-
viding 8 additional clocks on SCK as shown in fig. 1.
The 3 least significant bits of the opcode are used to
select the address in the configuration memory. Output
pin MISO leaves its high impedance state on the first
falling edge of SCK after the opcode was received.
The opcodes 0x10 to 0x1f are single byte commands
to configure the most important singleturn Hall sensor
parameters (see fig. 3).
NCS
SCK
MOSI
MISO
HOP/HON
0 0 0 1 OP3 OP2 OP1 OP0
Figure 3: Singleturn Hall Output Selection
OPCODES
Code
0x10-0x1f
0x20
0x21
0x22
0x23
0x24
0x28
0x29
0x2a
0x2b
0x2c
0x2e
0x2f
0x30
Description
SELH (Select Hall Output Signal for Differential
Output HOP/HON)
Set Singleturn Configuration
Set Current Ramp Parameter
Set BIAS and WI Parameter
Set TEST1 Parameter
Set TEST2 Parameter
Read Singleturn Configuration
Read Current Ramp Status
Read BIAS and WI Parameter
Read TEST1 Parameter
Read TEST2 Parameter
Read Status
Read Device Revision
Read POS
Table 9: OPCODE Summary
NCS
SCK
MOSI
MISO
0 0 1 0 1 OP2 OP1 OP0
DB7 DB6 DB5 DB4 DB3 DB2 DB1 DB0
Figure 2: 16-bit Read Commands