English
Language : 

IC-LO_16 Datasheet, PDF (18/25 Pages) IC-Haus GmbH – TRIANGULATION SENSOR
iC-LO
TRIANGULATION SENSOR
preliminary
Rev B3, Page 18/25
STARTUP BEHAVIOR, OPERATING MODES, AND STATUS REGISTER
Startup behavior and operating modes
After iC-LO has started up all internal registers and
counters are reset to 0. Switching outputs SO and NSO
are thus at 0. The warning output is activated. The
device waits for further commands (operating mode
STARTUP/RESET).
Implemented commands
By writing to address 0x0E commands can be executed
and the device operating mode changed.
Command TST_SO_ON sets switching output SO to
active and NSO to inactive regardless of the internal
SOI state (observe SOCNO and SOEN programming).
Command TST_SO_OFF sets switching output SO to
inactive and NSO to active regardless of the internal
SOI state (observe SOCNO and SOEN programming).
Command TST_WARN_ON sets warning output
WARN to 1 regardless of the internal WARNI state.
OP
Code
0x00
0x02
0x03
0x04
0x06
0x07
0x08
0x09
0x0A
0x0B
...0xFF
Addr. 0x0E; bit 7:0
W
Command
Description
STARTUP/RESET
Operating mode after
power-down (reset of
digital filters)
SINGLE_MEASURE
Single measurement
cycle started with rising
NCS edge
PERIODIC_MEASURE
Periodic measurement
cycles, paused with
NCS = ’0’ (normal
operation mode)
OSC_OUT_ON
Output 1 MHz clock at
pin WARN
REG_PROT_ON
Disable write access to
registers 0x0-0xD
REG_PROT_OFF
Enable write access to
registers 0x0-0xD
TST_SO_ON
Output active
TST_SO_OFF
Output inactive
TST_WARN_ON
Set warning output to ’1’
TST_WARN_OFF
Set warning output to ’0’
reserved for device test
Table 27: Implemented Commands
With command STARTUP/RESET internal state ma-
chines, counters, and the status register are reset. The
device waits for further commands.
Command OSC_OUT_ON enables the output of a
1 MHz clock (based on the system clock) through pin
WARN.
Command TST_WARN_OFF sets warning output
WARN to 0 regardless of the internal WARNI state.
Status register
The status register is read out on a read access to
register 0x0F. The switching state, warning, and tran-
simpedance mode from the last measurement cycle
are stored here, plus the last comparator results of
the differential- (NKDF), warning- (KSW) and errorcom-
parator (KSE). The result of the differentialcomparator
is stored invertedly. Additionally the result of the LED
driver current monitoring LEDOK is stored. Its vaule
is ’1’ when the integrated LED driver is used and the
LED is functioning properly. Otherwise its value is ’0’.
The switching state (SOI) stored in the register is in-
dependent of SOCNO (see page 16). Coding of TII is
equivalent to that of TIM(1:0) (table 11).
STATUS
Bit
7
6
5:4
3
2
1
0
Addr. 0x0F; bit 7:0
R
Name
Description
SOI
Output from last
measurement cycle
WARNI
Warning from last
measurement cycle
TII
Transimpedance of last
measurement
NKDF
Last comparator result
KSW
Last warning threshold
result
KSE
Last error threshold
result
LEDOK
LED current status
With command REG_PROT_ON the internal configu-
ration register addresses 0x00 . . . 0x0D are protected
against overwriting. This write protection can be can-
celled by command REG_PROT_OFF.
Table 28: Status Register 0x0F