iC-MD RS-422 QUADRATURE
ENCODER RECEIVER/COUNTER WITH SPI AND BiSS
Rev A1, Page 15/23
COMMUNICATION CONTROL
ABRES2
Code
1
Addr. 0x30; bit 2
0
iC-MD can communicate simultaneously via SPI and
BiSS in order to exchange data between SPI and BiSS.
For this purpose, SPI writes the data to be read by
BiSS in the AB register, and BiSS reads the SPICH
(BiSS channel 0 configured as SPICH, see table 45).
Function
reset of counter 2
Table 22: Counter 2 Reset
ZCEN
Code
1
Addr. 0x30; bit 3
1
If both interfaces attempt to read or write at the same
time a different RAM address than the SPICH (Adr.
0x20 to 0x25), then the bit error COMCOL (table 37)
is set and the communication of the interface without
priority (see table 43) is not valid.
Function
enable zero codification
Table 23: Enable Zero Codification
TP
Addr. 0x30; bit 4
Function
-
Code
1
Instruction Byte
load TP2 with TP1 value, and TP1 with ABCNT
value
Notes
counter must be configured to 24 bit length
Register address 0x30 contains the write only instruc-
tion byte. When one of these bits is set to 1, then the
corresponding operation is executed and then set back
to 0, excepts the bits ACT0 and ACT1 which remain to
the written value.
Table 24: Touch Probe Instruction
The instruction bits ACT0 and ACT1 set the actuator
pins ACT0 and ACT1 to high or low voltage.
ACT0
Code
0
Addr. 0x30; bit 5
Function
0
ABRES0
Code
1
Addr. 0x30; bit 0
Function
0
actuator pin 0 set to GND
actuator pin 0 set to VDD
1
reset of counter 0
Table 25: Actuator Pin 0
Table 20: Counter 0 Reset
ACT1
Code
0
Addr. 0x30; bit 6
Function
0
ABRES1
Code
1
Addr. 0x30; bit 1
Function
0
actuator pin 1 set to GND
actuator pin 1 set to VDD
reset of counter 1
1
Table 21: Counter 1 Reset
Table 26: Actuator Pin 1
STATUS REGISTER and ERROR/WARNING INDICATION
The three bytes status registers (Adr. 0x48 to 0x4A) Two of this status bits are error bits; ABERR (AB de-
indicate the state of the iC-MD. All the status bits are codification error, table 27) and EXTERR (external er-
latched (except TPS) when an error/warning occurs ror, table 35), all others status bits signal warnings.
and are reset when reading the error/warning via SPI
or BiSS excepts RVAL. The status bits TPVAL and UP-
DVAL are also reset by reading the register TP1 and
UPD respectively.
Status bits ABERRx indicate a decodification error of
the AB inputs, it ocurrs if the counting frequency is too
The status bit TPS (table 38) is not latched, it signals high or if two incremental edges are too close (PHab2,
the actual state of the input pin TPI.
Spec. Item No.303).