iC-LNG 16-BIT OPTO ENCODER
WITH SPI AND SERIAL / PARALLEL OUTPUTS
Rev A1, Page 21/25
SHIFT REGISTER OUTPUT
STA
0
Add. 0x08, bit 3
In interface mode (EPG = 0) iC-LNG provides a shift
register for the readout of position data. In order to
be able to use this shift register the SPI interface sen-
sor data channel must be deactivated by command
ACTIVATE with PACTIVE = 0 (Table 12).
1024 SIN/COS cycles
512 SIN/COS cycles
1
Table 24: SIN/COS resolution
After a power-on the shift register in iC-LNG is active.
The position data is output in Gray code with the MSB
first. This MSB is output in real time at the shift reg-
ister output (pin DOUT) when NSL = 1. When NSL =
0 the position data is stored in the shift register and
can then be output serially with rising edge CLK. The
position data readout process is shown in Figure 16.
SRC
Add. 0x08, bit 2:0
Code
Shift register
length
Data bits for
STA = 0
Data bits for
STA = 1
0x0
0x1
0x2
0x3
0x4
0x5
0x6
0x7
16 bits
16 bits
16 bits
16 bits
16 bits
16 bits
14 bits
14 bits
16
16
15
14
13
12
13
12
15
15
14
13
12
11
12
11
External data can be read into iC-LNG through shift
register input pin DIN. This is output after the position
data. For example, iC-LNG’s pin ERR can be con-
nected to pin DIN to link the alarm output to the po-
sition data.
Table 25: Shift register length
The length of the shift register and the number of data
bits used can be selected using parameter SRC, de-
pending on the set SIN/COS resolution.
The MSB of the position data can be inverted by pa-
rameter DIR (code inversion).
DIR
0
Add. 0x07, bit 5
No code inversion
Code inversion
1
Table 26: Code inversion
NSL
CLK
MSB MSB-1
MSB-2
LSB
DIN
DOUT
Figure 16: Shift register output (EPG = 0)