iC-LNB 18-BIT OPTO ENCODER
WITH SPI AND SER/PAR INTERFACES
Rev A1, Page 31/35
NGRAY
Addr. 0x07; bit 6
Data format
Gray
The MSB of the position data can be inverted by pa-
rameter DIR or pin DIR (code inversion). Parameter
DIR and pin DIR are exor gated; for instance, no code
inversion occurs if the level at pin DIR is high and pa-
rameter DIR = 1.
Code
0
1
binary
Table 44: Shift register output data format
NB:
If FlexCount is enabled, after changing the direction
of rotation FlexCount must be reset (Table 33).
If binary output is enabled (NGRAY = 1) , DIN must be
switched to 0, i.e. no external data can be read into the
shift register (as in ring operation, for example).
DIR
Code
0
Addr. 0x07; bit 5
Description
RNF
Code
0
Addr. 0x08; bit 3
Output pin DOUT
MSB bit
CW (no inversion)
CCW (inversion)
1
1
High
Table 47: Code inversion
Table 45: Shift register idle output
SRC
Code
000
001
010
011
100
101
110
111
Addr. 0x08; bit 2:0
Shift register length
18-bit
Number of used bits
18
17
16
15
14
13
13
12
17-bit
16-bit
16-bit
16-bit
16-bit
14-bit
14-bit
Table 46: Shift register length
PARALLEL ENCODER MODE
Depending on SELABS, in parallel encoder mode 16 Programming the interpolator resolution to 7 and 8 bits
bits of position data (10 bits from the digital tracks and allows an extra 17 or 18 bits of position data to be read
6 bits from the interpolator) are output in parallel, or in through the SPI interface.
FlexCount outputs the top 16 bits in parallel with the
set RESSUB resolution.
Parallel encoder mode is enabled by parameter
EPG = 1.
EPG
Code
0
Addr. 0x07; bit 4
Description
Interface mode
Parallel mode
1
The interpolator resolution can be set to 6 bits (RE-
SIPO = 0b10) to permit the maximum input frequency.
Table 48: Selecting the operating mode