English
Language : 

EPC110 Datasheet, PDF (16/27 Pages) Espros Photonics corp – Fully integrated configurable light barrier driver & receiver
epc110
SPI Interface
The serial peripheral interface (SPI) allows the micro-controller to communicate with the epc110 device. It allows the access to the internal
memory of the chip for parameter setting and programming for configuration or in a dynamic mode to change parameters on the fly.
Hardware interface
This functionality is given by double-used pins: LED/ SCK, EN/SI, OUTN/SO.
The signal CS does the selection, if the operation mode or the command/program mode is active:
1. CS = 1: operation mode
→ LED, EN, OUTN are active.
2. CS = 0: command/program mode → SCK, SI, OUTN are active.
As long as CS = 0 the pin LED/SCK is set to high-ohmic and defined as input pin.
IMPORTANT NOTICE:
Due to fact of the advantage of the flexibility in use of this devic e the responsibility of any possible hardware, LED load or LED driver conflicts
have to be handled by the user and are depending of the final application schematic. Main items to take care of are:
• Double-use as input as well output of LED/ SCK signals/line. For non-standalone application a well done decoupling of the signals is
needed.
• Parameter setting and programming of the device in final application environment e.g. if LED and LED drivers are not designed for
continuous mode application, risk of overloading.
• During SPI access of the device in final application environment e.g. if LED and LED drivers are not designed for continuous mode
application, risk of overloading.
Possible solutions are discussed at the example of the principal schematic “ Figure 13: Hardware interface micro-controller – epce110 “.
VDD PROG
R5
T2
VLED
R2
VDD µC
V_IN
V_OUT
Regulator 3.3V
ADJ
GND
VDD
R6
epc110
T3
VDD33
CS
D4
8V2
VDD18
PD
LED/SCK
EN/SI
OUTN/SO
OUTH
D2
GND
D3
R3 T4
R4
VDD
µController
R7
OUT PROG
CS
SCK
SO
SI
OUT ESCK
GND
IN
R8
S1
INV1
AND1
D1
T1
+
C1
R1
BUF1
<Title>
Figure 13: Hardware interface micro-controller – epce110
LST
<xx>
25.01.2011
Page 1
1. Mode selection: Operation mode - Parameter/Program mode File: Unbenannt
This document is confidential and protected by law and international trades. It must not be shown to any third party nor be copied in any form without our written permissio.n
As long the device is not connected to an LED driver, the access to the SPI interface is allowed while CS = 0. This can simply be
done by the switch S1 before power up the circuit. In this case the output LED/ SCK will not be driven as an output.
2. Run-time access of SPI interface
To have no conflicts together with a micro-processor on the bus line LED/SCK (Output/input) during run-time operation in this
example, the decoupling and interfacing of the LED/ SCK line is done by the tristate buffer BUF1, the additional input IN and
additional output enable SCK (OUT ESCK). While the LED is in operation, driven by the epc110, OUT ESCK = 0 will tristate the
buffer and the SCK line from the micro-processor. With the input IN the micro-processor can read the status of the LED/ SCK line
after the buffer for finding the correct transition time.
© 2011 ESPROS Photonics Corporation
16
Characteristics subject to change without notice
Datasheet epc110 - V2.1
www.espros.ch