iC-LNB 18-BIT OPTO ENCODER
WITH SPI AND SER/PAR INTERFACES
Rev A1, Page 18/35
Reset values
After power-on the registers are initialized as follows:
abled (ENIPO). The drivers at the A/B/Z outputs are
then switched from tristate to push-pull state.
Address
Reset
Value
Description
If the device is to be operated with FlexCount, the user
then decides whether to leave the A/B/Z outputs in
low or switch these to tristate (TRIABZ). After configur-
ing all parameters, FlexCount is enabled (STOPFLEX
1 → 0). After the current position has been found
(POSOK), the A/B/Z outputs can be enabled (TRIABZ
or NOUTLO).
0x00-0x01 0xA0
Gain (GS, GC) = 1.408
LED control behaivor (LCMOD) = 0
0x02-0x05 0xC0
Offset (OSP, OSN, OCP, OCN) =
0.5004*VDDA
0x06
0x07
0x60
0x09
LED control mode (LCTYP) = sum
control, Set point (LCSET) = 0.23 V
Shift register output format
(NGRAY) = GRAY,
Direction (DIR) = CW,
EPG = interface mode,
Oscillator (OSZC) = 14.4MHz,
Gain range (GR) = 1.33
Power On
(POK = 1)
write addresses 0x00 - 0x09
0x08
0x18
Interpolator factor (INC) = x2,
Idle state DOUT (RNF) = ’1’,
Shift register (SRC) = 18 bit
Yes
No
enable
Flexcount?
0x09-0x0A 0x00
0x0B 0x8E
Test functions = 0,
Hysteresis (HYS) = 0°
ABZ outputs (INVA/B/Z) = not
inverted,
ABZ outputs (TRIABZ) = tri-state,
Shift register (SELABS) = max.
resolution,
low
INCA, INCB, INCZ
tristate or low?
FlexCount (NENFLEX) = disabled
tristate
0x0C-0x10 0x00
0x11 0xA0
FlexCount parameters = 0
write addresses 0x0A – 0x10
0x0B: TRIABZ = 1
write addresses 0x0A – 0x10
0x0B: TRIABZ = 0
write address 0x0E
RESIPO
FlexCount:
Outputs (NOUTLO) = low,
Reset (STOPFLEX) = stopped,
Interpolator (ENIPO) = disabled
write address 0x11
NOUTLO = 1, ENIPO = 1,
RESSUB
write address 0x11
NOUTLO = 0, ENIPO = 1,
RESSUB
write address 0x11
ENIPO = 1
write address 0x11
STOPFLEX = 0
write address 0x11
STOPFLEX = 0
write address 0x0B
TRIABZ = 0
Table 7: Register reset values (RAM)
No
No
read address 0x12
POSOK = 1?
read address 0x12
POSOK = 1?
Programming sequence
Following iC-LNB’s system reset (POK lo → hi) the in-
ternal RAM must be configured to through the SPI in-
terface. A microcontroller with an integrated EEPROM
and SPI master is usually used for this purpose. De-
pending on the required function the parameters must
be written in a certain order (Figure 4).
Yes
Yes
write address 0x0B
TRIABZ = 0
write address 0x11
NOUTLO = 1
configuration
finished
Figure 4: Example of a typical configuration se-
quence
If iC-LNB is to be used without FlexCount, only the re-
quired interpolator resolution is set (RESIPO) and en-