EPC110 EPC [Espros Photonics corp], EPC110 Datasheet - Page 18

no-image

EPC110

Manufacturer Part Number
EPC110
Description
Fully integrated configurable light barrier driver & receiver
Manufacturer
EPC [Espros Photonics corp]
Datasheet
Input Data Format and Command List
The communication is based on telegrams (Direct commands or results), which are sent and received over the SPI interface.
The input data format (telegram) is given in Figure 15. The first bit in the data stream from the microprocessor to the epc110 chip (SI pin) will
be B = 0 always.
Command set:
Remarks:
© 2011 ESPROS Photonics Corporation
Characteristics subject to change without notice
t
f
t
t
t
t
Symbol Parameter
1
H
SU
D
rf
SCK
RESET
WRITE
PROG
Name
READ
/ t
/ t
NOP
/ t
rf SCK
L
Hold
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 permission
File:
The telegram data is transmitted with the LSB first.
A telegram starts with the CS change from high to low (Synchronization) and ends with the change from low to high.
Single telegrams either commands as well results have to be separated by a CS = 1 in between.
Additional SCK clock cycles have no effect.
This allows to extend the above given minimal telegram lengths to a standardized telegram lengths (Byte, word or double-word).
The minimum telegram length is given in Table 3, section Number of data bits.
SCK
CS
SI
Edge time CS to SCK
Clock frequency of SCK
HIGH and LOW period of SCK
Set-up and hold time of SI
Output data of SO valid
Rise / fall time SO / SCK
Cmd Code
Start
<SPI Direct command>
B
0
0
0
0
0
B
Cmd Code
Command
C0...C2
000
010
011
110
111
C0
Figure 15: Communication to the epc110 device: Direct Command
Command
C1
Register address
Register address
Register address
Cmd Code
Extension
R0...R4
C2
11001
Comments / Conditions
Falling edge CS to falling edge SCK
Data stable before and after positive edge of SCK
Data valid after negative edge of SCK
---
R0
Register Address or Cmd Extension
R1
Table 4: Command list
Cmd Code
D0...D16
Data
Data
---
---
---
---
R2
18
R3
Termination
Cmd Code
T0, T1
00
00
---
---
---
R4
.
D0
Function
No operation,
or read out data
Read register Rn
Write data to RAM
(Register 16...18)
Copy data to ROM
Reset the device
<LST>
D1
Data
Min.
Dn
50
50
15
Result Data
T0
Values
20.05.2011
Page 1
Typ.
Yes
No
No
No
No
T1
Datasheet epc110 - V2.1
Max.
10
20
20
Command / Result
on SPI interface
No. of data bits
www.espros.ch
11 / 22
27 / --
9 / --
9 / --
epc110
≧ 4
Units
MHz
ns
ns
ns
ns
ns

Related parts for EPC110