ESPROS epc10 Series User manual

Reference Manual epc10x
Reference Manual
epc100
epc101
Functional Block diagram epc70x LST
Voltage Regulator
Parameter
Memory
2- ire COM
Interface
2- ire COM
Interface
SO
SI
EN
CS
VDD33
PD
20.10.2010
Page 1
...
File:
This document is confidential and protected by la and international trades. It must not be sho n to any third party nor be copied in any form ithout our ritten permission.
LED
D1
VLED
f
VDD18
Signal
Processor
Processor
SPI
Controller
GND
VDD
LED
SCK
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 1/26 Reference Manua epc100 - V2.2

Reference Manual epc10x
Table of Contents
1. Introduction.................................................................................................................................................... 3
2. Light Curtain Principle..................................................................................................................................
2.1 System Overvie ........................................................................................................................................................................................... 4
2.2 Light Curtain Receiver Edge..........................................................................................................................................................................6
2.3 Light Curtain Emitter Edge.............................................................................................................................................................................6
3. 2-Wire Bus...................................................................................................................................................... 7
3.1 General Description....................................................................................................................................................................................... 7
3.2 Bus Wire Considerations............................................................................................................................................................................... 8
3.3 Bus Signal Waveform.................................................................................................................................................................................... 9
. Parameter Memory...................................................................................................................................... 10
4.1 Receiver Parameters (epc100)....................................................................................................................................................................11
4.2 Sample Receiver Parameter Setting........................................................................................................................................................... 13
4.3 Transmitter Parameters (epc101)................................................................................................................................................................14
4.4 Sample Transmitter Parameter Setting....................................................................................................................................................... 16
5. Timing........................................................................................................................................................... 17
5.1 Overvie ...................................................................................................................................................................................................... 17
5.2 Timing Details.............................................................................................................................................................................................. 17
5.3 Special Cases.............................................................................................................................................................................................. 18
6. SPI Interface................................................................................................................................................. 19
6.1 Timing Specifications...................................................................................................................................................................................19
6.2 General Description..................................................................................................................................................................................... 19
6.3 Command List..............................................................................................................................................................................................20
6.4 Detailed Command Descriptions................................................................................................................................................................. 21
7. Address Programming................................................................................................................................ 2
7.1 General Description..................................................................................................................................................................................... 24
7.2 Programming Procedure..............................................................................................................................................................................25
8. Considerations for Safety Applications..................................................................................................... 26
8.1 Data Integrity on the 2-Wire Po er-Bus...................................................................................................................................................... 26
8.2 Residual Error Rate..................................................................................................................................................................................... 26
8.3 Error Cases..................................................................................................................................................................................................26
8.4 Error Codes..................................................................................................................................................................................................26
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 2/26 Reference Manua epc100 - V2.2

Reference Manual epc10x
1. Introduction
The epc10x chip set is a general purpose CMOS integrated circuit for light-curtain applications. epc100 is used on the
receiver side (Rx) hereas epc 101 is on the emitter side (Tx). Up to 1023 devices may be connected to t o respectively
four ires in parallel. Each device can be individually addressed by an epc100 chip hich acts as the interface bet een a
microcontroller and the 2- ire bus. It manages the bus traffic bet een the microcontroller and the individual Rx and Tx
elements. Programmable fuses i.e. for the address, sensitivity, LED light pulse idth, etc. allo the device to be paramet -
rized in the final system (OTP memory).
The microcontroller activates the Tx elements and reads the status of the Rx in a sequential manner. The status of the Rx
elements can be 'no light pulse received', 'lo level light pulse received' and 'high level light pulse received'.
Each chip can be put into 'standby mode' or 'operating mode' to reduce po er consumption. During 'standby mode', po er
consumption is reduced and the photo diode is shorted. In the 'operation mode', the device is active and ready to receive a
light pulse generated by an LED in the emitter side of the light curtain.
During a normal scan, the microcontroller addresses one device after the other and fetches the result ith a delay of three
scan periods. Thus, the microcontroller has to manage the emitter light pulses on the emitter edge of the light curtain as
ell. This function is supported by the epc101 device hich is the counterpart of epc100 (refer to a separate data sheet and
reference manual).
This Manual describes the various operation and programming modes in order to use Rx and interface chip epc100 and the
Tx chip epc101.
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 3/26 Reference Manua epc100 - V2.2

Reference Manual epc10x
2. Light Curtain Principle
2.1 System Overview
A light curtain consist of an emitter edge (Tx) and a receiver edge (Rx). The Tx edge contains a number of light emitters,
typically infrared LEDs hich emit their light to ards the Rx edge. The Rx edge contains typically the same number of photo
receivers like the number of emitters in the Tx edge. Typical numbers of receivers or emitters are 10, 24, 40 or every figure
bet een 1 and up to 1023 are possible, depending on the application. The follo ing dra ing sho s a typical light curtain
setup.
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 4/26 Reference Manua epc100 - V2.2
Figure 1: Light curtain principle
Micro
Controller
Out
2-Wire Bus
epc101 ith LED
epc100 ith PD
light cone
generated by the
LED active light beam
light beam
number
Tx edge
➊
➋
➌
➍
➎
➏
➐
➑
➒
➓
Bus
Interface
(epc100)
Bus
Interface
(epc100)
Rx edge
Bus Termination
50Ω, 100nF
SPI-Interface

Reference Manual epc10x
The left side of Figure 1 sho s the Tx edge containing 10 emitter elements. Each emitter element consist of an epc101 chip
ith an LED and a fe other components. Each of the Tx elements is connected to a 2- ire bus1, hich is fed to the Rx
edge on the right side of Figure 1. The Rx edge contains 10 receiver elements, consisting of an epc100 chip ith a photo
diode and a fe passive components. A microcontroller hich is typically but not necessarily located in the receiver edge
controls the 2- ire bus through an epc100 chip. This chip acts as a bus controller. Because every Tx and Rx element has a
unique address, the microcontroller has individual access to all bus components.
Each of the Tx elements sends light, typically infrared light, in a cone to ards the Rx edge. The emitted light of one LED
illuminates usually more than one receiver element because of a rather ide cone angle2 and a small distance bet een the
individual elements in the edge3. If all emitters ould be active at the same time, small objects bet een the Tx and Rx edge
ould not be detected because of light bypassing. Thus, a sequential operation mode has to be established. This sequential
operation is typically like this:
1. The first Rx (Rx1) element is turned on (active mode).
2. Then, the first Tx (Tx1) element is activated so it sends a short light pulse to ards the Rx edge, forming the active light
beam ➊.
3. If there is no obstacle bet een Tx1 and Rx1, Rx1 receives this light pulse and stores it into a local memory.
4. The microcontroller reads out the content of the memory in Rx1 and stores the value (light beam interrupted or not inter-
rupted) into its data memory.
5. Finally, Rx1 is turned off (standby mode).
This sequence, hich is also called 'scan', is repeated until all beams are checked and their status is stored in the beam
status memory of the microcontroller. The last step is to analyze the beam status memory by the microcontroller. If all
beams have the status 'not interrupted', the output of the light curtain can be set to this state. If one ore more beams are
interrupted, the output of the light curtain is set to the status 'interrupted'.
The above mentioned sequence is repeated until po er is s itched off. Because of the fact, that an object can enter into the
light grid right after a beam has been checked ith the above mentioned procedure, up to t o full scan sequences are
necessary to reliably detect an object. Thus, the overall maximum response time of the light curtain ill be
tR=2∗n∗tbeamteval
(1)
here
tR= response time of the light curtain
n = number of elements or light beams
tbeam = time to evaluate one beam
teval = time to evaluate the beam status memory and generate the output signal
For further reference in optical design considerations please refer to the application note AN01.
1 If the LED pulse current is rather high, i.e. 1 A, t o separate bus ires for the LED supply current are needed. Please refer to the data
sheet of epc101 for detailed information.
2 Typical cone angles are bet een 5° and 40°, depending on the application.
3 The spacing bet een the individual elements of a light curtain is also called 'grid spacing' and is typically in a range of a fe millimeters up
to hundreds of millimeters.
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 5/26 Reference Manua epc100 - V2.2

Reference Manual epc10x
2.2 Light Curtain Receiver Edge
Figure 2 sho s the epc100 in the light curtain application on the receiver side. It can be used in t o main functions:
1. Sensor device R1 .. Rn: It senses the current pulse from the photo diode and transmits the information to the interface
device over the 2- ire bus.
2. Interface device IF: It interfaces the serial bus from the microprocessor ith the 2- ire bus.
From the point of vie of the microcontroller, the hole system looks like a single device ith several addressable photo
diodes: the microcontroller activates one photo diode and fetches the results after a predefined time. During a normal scan,
the microcontroller addresses one device after the other and fetches the result ith a delay of three scan periods.
2.3 Light Curtain Emitter Edge
On the emitter side, the epc101 controls the LEDs as the epc100 does for the photo diodes.
TP is a test point used for programming the epc101 chip ith the parameters needed in the application. This test point has to
be physically accessed during final assembly of the emitter edge.
In the circuit in Figure 3, the LED current is defined by a common current source in the ILED line. The resistor RLED limits the
current through the LED and is not needed in non-safety applications. If such a resistor is inserted, a failure mode can be
detected, if more than one LED is active due to a short circuit or a failure in the epc100. It is also possible to have a common
voltage supply and to generate the LED current by a resistor.
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 6/26 Reference Manua epc100 - V2.2
Figure 2: epc100 in the light curtain application as receivers and the interface chip to the microcontroller
VDDVDDVDD
VDD33 IF
epc100
GND
SO
SCK
SI
CS
µC
GND
VDD µC
VDDR
PD
VDD33 R1
epc100
GND
26.05.2011
Page 1
File:
This document is confidential and protected by la and international trades. It must not be sho n to any third party nor be copied in any form ithout our ritten permission.
VDD18
PD
VDD33 R2
epc100
GND
VDD18
PD
VDD33 Rn
VDD
epc100
GND
VDD18
Rx Element 1 Rx Element 2 Rx Element n
Bus Termination
RTE
100nF
RTE
ITE
Figure 3: epc101 in the Tx edge application
AN epc101 light curtain Transmitter LST
VDD33
VDDR
epc100
GND
SO
SCK
SI
CS
µC
GND
VDD µC
VDDR
VDD
PD
epc101
GND
LED
VDD33
RLED
+ ILED
- ILED
26.05.2011
Page 1
File:
This document is confidential and protected by la and international trades. It must not be sho n to any third party nor be copied in any form ithout our ritten permission .
Tx Element 1
RLED
Tx Element 2
VDD
PD
VDD33
epc101
GND
LED
RLED
Tx Element n
VDD
PD
VDD33
epc101
GND
LED
TP
Bus Termination
RTE
100nF
TP TP
RTE
ITE

Reference Manual epc10x
3. 2-Wire Bus
3.1 General Descripti n
The 2- ire bus and the po er supply utilize the same t o ires. The data is transmitted by modulating the current on the
po er-line. The modulated current, together ith the resistor in the po er supply, produce a voltage signal on the line. All
devices receive this signal. The system is designed to operate ith a line impedance of 50Ω (±5%). An inductor in parallel of
the resistor or a DC regulator ith a lo pass feedback shape the pulses and keep the the DC voltage drop over the resistor
lo . The required corner frequency of this L/R-filter is listed in the table belo .
The communication interface has been designed to be used for line lengths of up to 100m and ith up to 1023 sensor
devices. For line lengths of up to 3m it is possible to operate the line ithout termination4. Above this length the line has to
be terminated by a resistor of 50Ω (±5%) hich is equal to the line impedance and a capacitor of 100nF in series.
The data rate on the 2- ire bus is set by the parameter DRATE. It also defines TSCANmin (refer to Chapter Timing on page 17)
and the required inductor according to Table 1. The maximum data rate allo ed on the 2- ire bis is depending on the bus
length. The longer the bus ire, the lo er the data rate. Table 1 sho s the possible bus ire length according to the data
rate.
DRATE k Data Rate on
the 2-Wire Bus
Minimal Data Rate
Required on SPI
Interface
Corner
Frequency
L/R
Inductor
ITE
Bus Wire
Length5
00 8 250 kbit/s 300 kbit/s 0.5 MHz 16µH 12 … 100m
01 4 500 kbit/s 600 kbit/s 1 MHz 8µH 6 … 12m
10 2 1 Mbit/s 1.2 Mbit/s 2 MHz 4µH 3 … 6m
11 1 2 Mbit/s 2.4 Mbit/s 4 MHz 2µH ≤ 3m
Table 1: Data rate of the 2- ire communication
The default value of DRATE is 00. The parameter DRATE has to be identical for all devices on one physical 2- ire bus.
The SPI bus should be faster than the 2- ire bus, other ise the communication does not ork. Since the command length
dependent on the command type, the delay time to the next command has to be adjusted to the previous command. The
time delay can be calculated ith the given data length in Table 11 on page 20.
The parameter CDET defines the optimal signal amplitude for the receiver. The maximum rate at pin VDD (5.5V) should not
be exceeded and signals hich are smaller than 70% of the recommended values are not detected.
Since the command length is dependent on the command type, the delay time to the next command has to be adjusted to
the previous command. The time delay can be calculated ith the given data length in Table 11 on page 20. The data
handling chain of the 2- ire communication channel is sho n in Figure 4.
Figure 5 sho s the different messages ith the parity bits. From the interface to the sensor/transmitter device the “normal command” is used
except for the register rite command. In the other direction only the register readout has a different format. Notice the different start bits
4 Dependent on the electro-mechanical design and the bus location of the edge, the termination net ork can be necessary. It is in the
responsibility of the system designer that the data integrity on the bus is guaranteed. Data integrity can be tested by readout bus
transmission errors. It is strongly recommended to do that during type qualification during EMI qualification tests.
5 The effective length is dependent on the electro-mechanical design of the edge. The values in the table are indicative only.
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 7/26 Reference Manua epc100 - V2.2
Command Data
Original
Message
Parity Bits
added
Manchester
Encoder
Current
Sink
Line
Filter
A/D
Converter
Manchester
Decoder +
Error Detection
Error Correction
Received
Message
Command Data
ReceiverTransmitter
Figure 4: Data handling

Reference Manual epc10x
hich identify the direction of the transmission: 00 for the direction interface to sensor devices and 01 in the other direction. Bet een the
telegrams, an idle time of 2 clock periods are need to detect the start of the transmission.
Figure 5: Message Structure
3.2 Bus Wire C nsiderati ns
The electromechanical design of a system using multiple epc10x devices on a t isted pair cable ith an impedance of
typically 100 Ohms has an impact on the overall impedance of the system. Figure 6 sho s the change of the cable
impedance ith smaller element pitch.
On the source side the termination is done by the resistor RTE (see Figure 2), on the other side it is highly recommended to
terminate the bus line ith an AC terminator net ork (sho n in Figure 7) hich matches the overall impedance of the
system according to Figure 6. In order to avoid high DC currents in the termination resistor, a capacitor of 100nF should be
connected in series to the termination resistor. The interface device has to be placed near the L/R circuit (<1m).
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 8/26 Reference Manua epc100 - V2.2
Figure 7: Bus termination net ork
RTE
100nF
Figure 6: Line impedance as a function of the
element pitch on a 100 Ohm t isted pair cable
1.0
1.8
3.2
5.6
10.0
17.8
31.6
56.2
100.0
0
20
40
60
80
100
120
Pitch [cm]
Impedance [Ohm]
A0A1A2A3A4A5A6A7A8A9C0C1C2P0P1P2P3P4P5P6P7P8P9
Device Address Command Parity Bits
A0A1A2A8A9
C0C1C2P0P1P8P9R0R1R2R3R4D0D1D14 D15 P0P1P8P9
Device Address
Command Parity Bits Parity BitsDataRegister
P0P1P8P9
Parity Bits
D0D1D9D10
Data
A0A1A2A8A9
Device Address
R0R1R2R3R4D0D1D14 D15 P0P1P8P9
Parity BitsDataRegister
Normal Command
Write Command
Results
Register Readout
C0C1C2
A0A1A2A8A9
Device Address
R0R1R2R3R4
Register
P0P1P8P9
Parity BitsCommand
Read Command

Reference Manual epc10x
Another aspect is the distribution velocity of the electrical signals on the 2- ire bus. Since the bus ire itself as ell as the
individual elements on the bus present a significant capacitance, the distribution velocity decreases ith the number of
elements and the pitch bet een the elements.
It is important that the overall delay is less than 50% of the clock period of the transmission. E.g. if the system is operated
ith 2 MBit/s data rate, the max. accepted delay must not be more than 125ns. Figure 8 sho s, that a system operated at
the full speed of 2 Mbit/s, a cable length of up to 5m are possible ith an element pitch do n to 1cm.
Example:
If e have a system that contains 100 elements in a pitch of 10cm, the total bus length is 10m. According to Figure 8, the
delay time of a proper terminated bus is a little bit more than 100ns. Thus, such a system can be operated ith the full
speed of 2MBit/s. Ho ever, e recommend to limit the bus length to the values stated in Table 1.
3.3 Bus Signal Wavef rm
Figure 9 pictures the Manchester encoding and the signal on the bus. The signal on the bus can be monitored ith an oscil-
loscope and should look like in the dra ing.
CDET is the threshold set in the 2- ire communication receiver of the chip to detect the communication signal on the bus.
This parameter, described in Table 6 and Table 10, can be adjusted to match the specific system requirements. Thus, the
voltage s ing VS of the communication signal on the bus shall match this setting. A good principle is that the voltage s ing
VS measured on the bus should be min. 25% and max. 150% above the CDET value.
Example:
If CDET is set to 200mV, the voltage s ing VS should be in a range of 250 to 500 mV. Ideal for this setting is a s ing
voltage VS of 400mV.
Attention:
Make sure that the voltage s ing VS is in the given tolerance range at every physical location of the bus. Due to reflections
in the cable, losses of the ires (capacitive, inductive, and resistive), and the high band idth of the communication signals,
significant differences can occur.
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 9/26 Reference Manua epc100 - V2.2
Message
Manchester
Signal on Bus
TDataRate
CDET
VS
Figure 9: Manchester encoded signal on the bus
Figure 8: Delay vs Pitch. Parameter: Line length [m]
1 1.78 3.16 5.62 10 17.7831.6256.23 100
10
32
100
316
1000
1
2
3
5
10
20
50
100
Pitch [cm]
Delay [ns]

Reference Manual epc10x
. Parameter Memory
The devices epc100 and epc101 contain a memory to store the application parameters. The follo ing classes of data are
stored on each device:
Unique chip ID and chip adjustments (factory set)
Physical device address in the application, representing the beam number
Application parameters
This data can be permanently stored in a read-only memory6 and is mirrored in a volatile memory7. At po er up, the data
(except the chip ID) is copied from the ROM to the RAM. During operation, the data from the RAM is used. Both memories
are organized in 16 registers at 16 bits each. The data can be accessed on a 16-bit register base. The follo ing table sho s
the memory organization:
Non-Volatile Memory Address
Range
(Register no.)
Volatile Memory Address
Range
(Register no.)
Description
0 - 3 16 – 19 Application parameters
4 - 6 20 – 22 Trim values, factory set
7 23 Device Address
8 – 15 - Chip ID, factory set
- 24 – 31 For factory test purpose. Read only.
Table 2: Memory map overvie
As sho n in the table above, registers 0 – 3 and 7 are used for configuring the chip in the application. Before the devices
can be used in a given light curtain system, the required application parameters and the physical address of the chip in the
system have to be stored into the devices memories. The follo ing table sho s a parameter memory overvie :
Parameters in hite fields only shall be programmed. Never change the memory content of gray marked cells. Because only
complete registers can be programmed, the bits hich are gray marked must be set to zero.
The RAM can only be ritten, if the corresponding ROM memory hasn’t been ritten before or if the volatile mode is active
(VMODE, refer to Table 3 on page 10 and Table 7 on page 14). The last bit of each 16-bit ROM register serves as rite
inhibit bit. To rite to the ROM, the microcontroller has to rite to the RAM first. From there, the microcontroller can first
double check the data integrity. When a memory section is verified, the content can be transferred from the RAM memory
using the command PROG to the ROM (refer to chapter 6.4.8 Command PROG).
The device is fully operational as ell ithout programming the ROM but data ill be lost at po er do n. Operating the
chips in this mode is helpful during the development of the product. Ho ever, in the final application, the parameters must
be stored into the ROM memory.
6 The non-volatile memory is a one-time-programmable memory (OTP). Once the memory is programmed, the programmed values cannot
be over ritten anymore! This memory type is hereinafter called ROM.
7 Hereinafter called RAM.
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 10/26 Reference Manua epc100 - V2.2
Figure 10: Detailed memory map
Bit #
ROM RAM 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Register #
0 16 VMODE MODE SOFF DRATE TSTMP TPULSE POL FUSEBIT
1 17 TPER FUSEBIT
2 18 TSET SENS IVCOFF SLO SENSH SENSN / VTHRLED FUSEBIT
3 19 CDET C2X FUSEBIT
4 20 FUSEBIT
Trimming
5 21 FUSEBIT
6 22 FUSEBIT
7 23 Address FUSEBIT Device Address
8 24 Lot no. LSB FUSEBIT
Chip ID
9 25 Lot no. MSB FUSEBIT
10 26 Chip ID FUSEBIT
11 27 Factory use only FUSEBIT
12 28 Revision no. FUSEBIT
13 29 no function FUSEBIT
14 30 no function FUSEBIT
15 31 no function FUSEBIT
Application
parameters

Reference Manual epc10x
4.1 Receiver Parameters (epc100)
Parameter
Name
Register No. Bit No. Function
ROM RAM
FUSEBIT 0 16 0 This bit ill automatically be set hen register 16 is programmed.
0 Values
0 Register 16 is not programmed
1 Register 16 is programmed
n/a 0 16 5..1 no function, must be set to “0”
TSTMP 0 16 8..6 Time stamp.
8 7 6 Values Default Recommended Setting
0 0 0 30μs X This parameter should be set to the same length as the receive indo length,
given by the scanning time by the microcontroller. I.e., if the time bet een the
SCAN commands issued by the micro processor is 60μs, this parameter should be
set to 60μs.
0 0 1 60μs
0 1 0 90μs
0 1 1 120μs
1 0 0 150μs
1 0 1 180μs
1 1 0 210μs
1 1 1 240μs
DRATE 0 16 10..9 Data rate on the 2- ire bus
10 9 Values k Default Recommended Setting
0 0 250 kbit/s 8 X if the physical 2- ire bus length is up to 100 meters
0 1 500 kbit/s 4
1 0 1 Mbit/s 2
1 1 2 Mbit/s 1 if the physical 2- ire bus length is less than 3 meters
SOFF 0 16 11 Status of voltage regulator for internal VDD
11 Values Default Recommended Setting
0 On X hen used as a receiver
1 Off hen used as interface chip ith 3.3V microcontroller
MODE 0 16 14..12 no function, must be set to “0”
VMODE 0 16 15 volatile mode
11 Values Default Recommended Setting
0 On X This setting allo s to over rite the RAM contents, hich is useful during debugging. Once the
system is fully developed, this parameter should be set to “1”. This setting could also be useful, if
the system parameters should be changed “on the fly” in dynamic systems. it is recommended to
program the address and burn it into the ROM first. All other parameters can then be do nloaded
upon po er-up.
1 Off Set to “1” in the final product to avoid accidentally over riting of the contents of the RAM registers.
Table 3: epc100 Registers 0 and 16
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 11/26 Reference Manua epc100 - V2.2

Reference Manual epc10x
Parameter
Name
Register No. Bit No. Function
ROM RAM
FUSEBIT 1 17 0 This bit ill automatically be set hen register 17 is programmed.
0 Values
0 Register 17 is not programmed
1 Register 17 is programmed
TPER 1 17 15..13 must be set to “010”
15 1 13
0 1 0
Table 4: epc100 Registers 1 and 17
Parameter
Name
Register No. Bit No. Function
ROM RAM
FUSEBIT 2 18 0 This bit ill automatically be set hen register 18 is programmed.
0 Values
0 Register 18 is not programmed
1 Register 18 is programmed
SENSN 2 18 3..1 Lo er threshold setting of the receiver input (sensitivity).
3 2 1 Values Default Recommended Comments
0 0 0 24nA X A lo er value increases the sensitivity. A too sensitive setting leads to
false readings because of shot noise of the receiver photo diode and the
internal amplifier (typ. input noise level is 7nA RMS ithout photo diode).
Also induced EMI can lead to false readings if the sensitivity is set too
lo . The EMI sensitivity is heavily depending on the system architecture
and the electromechanical design. The better the shielding of the chip
and the photo diode and the better the PCB layout, the better the EMI
immunity. The tolerance of the threshold is approx. ±25%.
0 0 1 36nA
0 1 0 48nA
0 1 1 60nA X
1 0 0 72nA
1 0 1 84nA
1 1 0 96nA
1 1 1 108nA
SENSH 2 18 6..4 Upper threshold setting of the receiver input (light reserve level). The tolerance of the threshold is
approx. ±25%.
6 5 Values Default Recommended Setting
0 0 0 60nA X Set this value 50% above
the value set at SENSN,
i.e., if SENSN is set to
48nA, set SENSH to
72nA.
0 0 1 72nA
0 1 0 84nA
0 1 1 96nA
1 0 0 108nA
1 0 1 120nA
1 1 0 132nA
1 1 1 144nA
SLOW 2 18 7 no function, must be set to “1”
IVCOFF 2 18 8 no function, must be set to “0”
SENS 2 18 9 must be set to “1”
n/a 2 18 12..10 no function, must be set to “0”
TSET 2 18 15..13 Settling time delay from inactive to active mode.
15 1 13 Values Default Comments
0 0 0 0 X If TSCAN >=60μs
0 0 1 1 If TSCAN <60μs
Table 5: epc100 Registers 2 and 18
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 12/26 Reference Manua epc100 - V2.2

Reference Manual epc10x
Parameter
Name
Register No. Bit No. Function
RAM ROM
FUSEBIT 3 19 0 This bit ill automatically be set hen register 18 is programmed.
0 Values
0 Register 18 is not programmed
1 Register 18 is programmed
n/a 3 19 8..1 no function, must be set to “0”
C2X 3 19 9 Current amplitude on the 2- ire bus
9 Values Default Recommended Setting
0 8mA X X
1 16mA
CDET 3 19 11..10 Detection level for the comparator on the 2- ire bus. The level represents the optimum signal amp -
litude on the bus.
11 10 Values Default Recommended Setting
0 0 50mV X
0 1 n/a
1 0 100mV
1 1 200mV X
n/a 3 19 15..12 no function, must be set to “0”
Table 6: epc100 Registers 3 and 19
All other registers are factory set and must not be used or altered.
4.2 Sample Receiver Parameter Setting
If e are going to use a system ith a maximum cable length of 3 meters, and the maximum speed on the 2- ire bus, it is
recommended to set the registers as follo s:
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 13/26 Reference Manua epc100 - V2.2
Figure 11: Sample parameter setting for a high speed receiver
Bit #
ROM
RAM 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Register #
0 16 1 0 0 0 0 1 1 0 0 0 0 0 0 0 0 X
1 17 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 X
2 18 0 0 1 0 0 0 1 0 1 0 1 1 0 1 1 X
3 19 0 1 0 0 1 1 0 0 0 0 0 0 0 0 0 X
4 20 don't use
5 21 don't use
6 22 don't use
7 23 Address don't use X
8 24
Chip ID
9 25
10 26
11 27
12 28
13 29
14 30
15 31

Reference Manual epc10x
4.3 Transmitter Parameters (epc101)
Parameter
Name
Register No. Bit No. Function
ROM RAM
FUSEBIT 0 16 0 This bit ill automatically be set hen register 16 is programmed.
0 Values
0 Register 16 is not programmed
1 Register 16 is programmed
POL 0 16 1 Polarity of the LED pulse. Setting is depending on the LED driver circuitry.
1 Values Default Recommended Setting
0 active high X X
1 active lo
TPULSE 0 16 4..2 Pulse length of the light pulse
3 2 Values Default Recommended Setting
0 0 0 1μs X
0 0 1 2μs
0 1 0 3μs
0 1 1 4μs
1 0 0 5μs X (typical setting)
1 0 1 6μs
1 1 0 7μs
1 1 1 8μs
n/a 0 16 5 no function, must be set to “0”
PDELAY 0 16 8..6 Delay after the second SCAN command to issue the light pulse.
8 7 6 Values Default Recommended Setting
0 0 0 15μs X This time shall be set so
that the light pulse is
approx. in the middle of
the receive indo .
0 0 1 30μs
0 1 0 45μs
0 1 1 60μs
1 0 0 75μs
1 0 1 90μs
1 1 0 105μs
1 1 1 120μs
DRATE 0 16 10..9 Data rate on the 2- ire bus
10 9 Values k Default Recommended Setting
0 0 250 kbit/s 8 X if the physical 2- ire bus length is up to 100 meters
0 1 500 kbit/s 4
1 0 1 Mbit/s 2
1 1 2 Mbit/s 1 if the physical 2- ire bus length is less than 3 meters
MODE 0 16 14..11 Used for address allocation.
1 13 12 11 Value
1 1 1 0 Temporary value during address allocation ith voltage detection (see 7. Address Programming)
0 1 0 0 Normal operation as transmitter
VMODE 0 16 15 Volatile Mode
11 Values Default Recommended Setting
0 On X This setting allo s to over rite the RAM contents, hich is useful during debugging. Once the
system is fully developed, this parameter should be set to “1”. This setting could also be useful, if
the system parameters should be changed “on the fly” in dynamic systems.
1 Off Set to “1” in the final product to avoid accidentally over riting of the contents of the RAM registers.
Table 7: epc101 Registers 0 and 16
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 14/26 Reference Manua epc100 - V2.2

Reference Manual epc10x
Parameter
Name
Register No. Bit No. Function
ROM RAM
FUSEBIT 1 17 0 This bit ill automatically be set hen register 17 is programmed.
0 Values
0 Register 17 is not programmed
1 Register 17 is programmed
n/a 1 17 12..1 no function, must be set to “0”
TPER 1 17 15..13 must be set to “010”
15 1 13
010
Table 8: epc101 Registers 1 and 17
Parameter
Name
Register No. Bit No. Function
ROM RAM
FUSEBIT 2 18 0 This bit ill automatically be set hen register 18 is programmed.
0 Values
0 Register 18 is not programmed
1 Register 18 is programmed
VTHRLED 2 18 3..1 Trigger threshold to activate the address programming. Refer also to chapter 7. Address Program-
ming.
3 2 1 Values Default Recommended Setting using an
LED as photo receiver, refer to
Chapter 7. Address Programming
Using a voltage pulse on pin PD
0 0 0 0.15V X
0 0 1 0.30V X
0 1 0 0.45V
0 1 1 0.60V
1 0 0 0.75V
1 0 1 0.90V
1 1 0 1.05V
1 1 1 1.20V X
n/a 2 18 12..4 no function, must be set to “0”
TSET 2 18 15..13 Settling time delay from inactive to active mode.
15 1 13 Values Default Comments
0 0 0 0 X If TSCAN >=60μs
0 0 1 1 If TSCAN <60μs
Table 9: epc101 Registers 2 and 18
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 15/26 Reference Manua epc100 - V2.2

Reference Manual epc10x
Parameter
Name
Register No. Bit No. Function
ROM RAM
FUSEBIT 3 19 0 This bit ill automatically be set hen register 18 is programmed.
0 Values
0 Register 18 is not programmed
1 Register 18 is programmed
n/a 3 19 8..1 no function, must be set to “0”
C2X 3 19 9 Current amplitude on the 2- ire bus
9 Values Default Recommended Setting
0 8mA X X
1 16mA
CDET 3 19 11..10 Detection level for the comparator on the 2- ire bus
11 10 Values Default Recommended Setting
0 0 50mV X
0 1 n/a
1 0 100mV
1 1 200mV X
n/a 3 19 15..12 no function, must be set to “0”
Table 10: epc101 Registers 3 and 19
All other registers are factory set and must not be used or altered.
4.4 Sample Transmitter Parameter Setting
If e are going to use a system ith a maximum cable length of 3 meters, and the maximum speed on the 2- ire bus, a
positive LED pulse ith a length of 5μs, it is recommended to set the registers as follo s:
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 16/26 Reference Manua epc100 - V2.2
Figure 12: Sample parameter setting for a high speed transmitter
Bit #
ROM
RAM 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Register #
0 16 1 0 1 0 0 1 1 0 0 0 0 1 0 0 0 X
1 17 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 X
2 18 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 X
3 19 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 X
4 20 don't use
5 21 don't use
6 22 don't use
7 23 Address don't use X
8 24
Chip ID
9 25
10 26
11 27
12 28
13 29
14 30
15 31

Reference Manual epc10x
5. Timing
5.1 Overview
To operate the individual elements at the 2- ire bus, some steps per element are necessary. The steps differ slightly
bet een the Rx and the Tx elements. The follo ing dra ing sho s the concept:
The individual Rx and Tx elements at the 2- ire bus are normally in a sleep mode in order to keep the overall po er
consumption as lo as possible. Thus, an Rx or Tx element has to be activated before it can be used. This akeup
procedure needs a certain time until all internal operating levels have been stabilized. This time is called settling time hich
can be set ith the parameter TSET. Then, the receive indo can be opened and the emitter can send a light pulse. After
that, the receive indo must be turned off hich also puts the receiver to standby. The emitter must also be put to standby.
Finally, the receive results hich are stored in the Rx element can be read.
In fact, there are several steps to operate one light beam only. This needs quite a long time if everything is done in a strictly
sequential ay. In order to improve the performance of the hole system, certain steps can be done in parallel. The
follo ing chapters describe the timing processes in more detail.
5.2 Timing Details
The microprocessor controls the receivers and emitters ith SCAN commands. Every SCAN command includes an address
hich selects the requested receiver or emitter element.
Receiver operation: A first SCAN command s itches the selected Rx element from standby into the operation mode. The
process from standby to operation requires a certain time hich is called settling time (see Figure 14). The settling time
minimum is 60μs. The second SCAN command opens the the reception indo , here a third SCAN command closes the
reception indo and puts the RX element back to standby. The fourth SCAN command fetches the received results.
Emitter operation: A first SCAN command s itches the selected Tx element from standby into the operation mode. The
process from standby to operation requires a certain time hich is called settling time (see Figure 14). The second SCAN
command opens the light pulse indo . After the time PDELAY, one light pulse of the length TPULSE is generated. A third
SCAN command puts the emitter element back to standby. It is recommended that the light pulse is generated in the middle
of the receive indo .
The hole operation is optimized for shortest possible scan periods by operating t o or more Rx or Tx elements in parallel.
Figure 14 sho s the timing for a settling time of one scan period (TSET=0) and the addresses given in the shortest possible
sequence.
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 17/26 Reference Manua epc100 - V2.2
Figure 13: Basic sequence to operate one light beam. Note that the process in the
receiver and in the transmitter are running concurrent.
akeup the Rx element (from
standby to operation)
akeup the Tx element (from
standby to operation)
open the receive indo ait PDELAY and send a light
pulse
close the receive indo and
put the device to standby put the device to standby
Receiver Emitter
read the result of the last light
reception

Reference Manual epc10x
Figure 14: Timing of the scan process
here
n = element number
TSCAN = interval between two scan commands which is given by the micro processor
The minimum delay time bet een the first SCAN command and the earliest possible access of the result can be calculated
as a function of the parameter TSET and the scan period TSCAN:
TEL=TSET 3⋅TSCAN
The sensor device counts the number of SCAN commands on the bus to present its result at the right time. If the number of
a SCAN command is n, the result ill arrive ith the SCAN command n+TSET+3.
The timing of the emitter commands have to be adjusted in order to emit the light pulse near the center of the reception
indo of the corresponding receiver. E.g. if the reception indo length is set to 30 μs, the light pulse shall be generated
15μs after the opening of the receive indo . The length of the reception indo is defined by the time elapsed bet een
the second and the third SCAN command. The parameter TSTMP defines the time indo to measure the arrival time of
the received light pulse. This result is returned in the result TIMESTAMP. The timing position of the follo ing light pulses can
be optimized to the center of the receiving indo . The resolution of TIMESTAMP is 4 bits. Thus, the value is 0000 if the
pulse is received at the beginning of the indo , and 1111 if it arrived at the end. A light pulse received approx. in the middle
of the receive indo ould be represented as 0011, 0100 or 0101.
The minimal scan period, hich is the time bet een t o consecutive SCAN commands, is given by the communication on
the 2- ire bus: 62 bits for the command and the results have to be transmitted in this time. The minimal scan period is then
TSCANmin=31∗TCLK∗k
k is given by the parameter DRATE and varies bet een 1 and 8 (refer to Table 1, Table 3 and Table 7). TCLK is 1μs. Thus, the
minimal scan period is 31μs.
5.3 Special Cases
•If the same device is addressed again at the end of its reception indo , it continues aiting for pulses. This
procedure allo s to synchronize the receiver ith the transmitter on an optical basis, if there is no electrical
synchronization.
•If a device detects a command during a scan operation hich is not the command SCAN, it is put into standby mode.
•A SCAN command ith address 0 can be used to fetch the results ithout starting a ne scan command.
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 18/26 Reference Manua epc100 - V2.2
<Title> <name> 16.06.2010
Page 1
File:
This document is confidential and protected by la and international trades. It must not be sho n to any third party nor be copied in any form ithout our ritten permission.
SPI in
SPI out
2-Wire Bus
Rx n
Rx n+1
Rx n+2
SCAN n
SCAN n
SCAN n+1 SCAN n+2 SCAN n+3 SCAN n+4 SCAN n+5
SCAN n+1 SCAN n+2 SCAN n+3 SCAN n+4
Out n Out n+1 Out n+2
Out n Out n+1 Out n+2
TDEL
Settling Receive Windo Output, Standby
Settling Receive Windo Output, Standby
Settling Receive Windo Output, Standby
TSCAN
Tx n
Tx n+1
Tx n+2
Settling Standby
Settling Standby
Settling Standby
TPDELAY TPULSE
TSET

Reference Manual epc10x
6. SPI Interface
The SPI interface allo s the microcontroller to communicate ith the sensors over the 2- ire bus system via the interface
device.
While data are sent to the interface chip by the microcontroller, the result of the last (or more generally: a previous)
command is sent from the interface chip to the microcontroller according to the SPI protocol. The timing diagram is sho n in
Figure 15).
Figure 15: SPI bus timing
6.1 Timing Specificati ns
Symbol Parameter Conditions/Comments Values Units
Min. Typ. Max.
fSCK SCK Clock frequency 10 MHz
tH / tLHIGH and LOW period of SCK 50 ns
tSU / tHold Set-up and hold time SI 15 ns
t1Edge time CSB - SCK 50 ns
trf / trfSCK Rise / fall time SO, SCK 20 ns
tDData valid after SCK edge SO 20 ns
6.2 General Descripti n
Communication is based on telegrams, hich are sent and received over the 2- ire bus. Such telegrams are initiated by the
respective command to the SPI interface. The epc10x chips accept t o types of commands:
1. Commands hich communicate to the interface chips, also called “Direct Commands” (Figure 16).
2. Commands hich communicate to the chips at the 2- ire bus, also called “Broadcast Commands” (Figure 17).
The first bit in the data stream from the microprocessor to the interface chip (SI pin) defines hether it is a command to the
interface chip (a “0”) or the the chips on the 2- ire bus (a ”1”).
Figure 16: Communication to the interface device (Direct Command)
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 19/26 Reference Manua epc100 - V2.2
Timing SPI Interface epc100 LST
CS
SCK
SI
SO
tL
tH
03.11.2010
Page 1
File:
This document is confidential and protected by la and international trades. It must not be sho n to any third party nor be copied in any form ithout our ritten permission .
tHold
1/fSCK
t1tSU
tD
<SPI Direct command> <LST> 05.05.2010
Page 1
File:
This document is confidential and protected by la and international trades. It must not be sho n to any third party nor be copied in any form ithout our ritten permission.
CS
SCK
SI C0C1C2R0R1R2R3R4D0D1Dn
Command Register Address or Cmd Extension Data

Reference Manual epc10x
Figure 17: Communication to the sensor devices (Broadcast Command)
6.3 C mmand List
Name Command
Code
C0 .. C2
Command
Extension Code
R0 .. R
Function Mode Number of data bits
on 2-wire bus
D0..Dn
Returned
Data
SCAN 000 Scan Broadcast 62 Yes
NOP 000 No operation Direct 0 Yes
READ 010 Register address Read both 97 Yes
WRITE 011 Register address Write to volatile register both 62 No
ADRA 101 Address allocation Broadcast 62 No
PROG 110 Register address Program both 62 No
TEST 111 10000 Test mode both 80 Yes
RESET 111 11001 Reset the device both 62 No
Table 11: Command list
Remarks:
•Additional SCK clock cycles have no effect.
•The telegram length on the 2- ire bus is given in the number of data clock cycles. It allo s to calculate the minimum
interval bet een t o commands.
•If an SPI command is given hile another command is being transmitted on the 2- ire bus, the ne command is
ignored.
•The READ and WRITE commands in the direct access mode require 2 additional SCK cycles.
© 2012 ESPROS Photonics Corporation
Characteristics subject to change without notice
Page 20/26 Reference Manua epc100 - V2.2
<Text>
M 1:1
<Date>
DIN A3
<Partname> <x000 000>
<Text>
Designed
Approved
Scale
Page
This document is confidential and protected by la and international trades. It must not be sho n to any third party nor be copied in any form ithout our ritten permission.
File:
Part Name Part No.
1
26.02.2009
CS
SCK
SI A0 A1 A2 A3 A4 R0A8 A9 D0 D1 Dn
R1 R2 R3 R4
C0 C1 C2
Device Address Command Register Address
or Cmd Extension Data
This manual suits for next models
2
Table of contents
Other ESPROS Control Unit manuals