epc110
Symbol Parameter
Comments / Conditions
Values
Typ.
Units
Min.
Max.
t1
Edge time CS to SCK
Falling edge CS to falling edge SCK
50
ns
MHz
ns
f SCK
tH / tL
Clock frequency of SCK
10
HIGH and LOW period of SCK
50
15
tSU / tHold Set-up and hold time of SI
tD Output data of SO valid
Data stable before and after positive edge of SCK
Data valid after negative edge of SCK
ns
20
20
ns
trf / trf SCK Rise / fall time SO / SCK
ns
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.
CS
SCK
B
T1
T0
SI
C0
C1
C2
R0
R1
R2
R3
R4
D0
D1
Dn
Data
Register Address or Cmd Extension
Command
Figure 15: Communication to the epc110 device: Direct Command
Command set:
Name
Cmd Code
Start
B
Cmd Code
Command
C0...C2
Cmd Code
Extension
R0...R4
Cmd Code
Data
D0...D16
Cmd Code
Termination
T0, T1
Function
Result Data
No. of data bits
on SPI interface
Command / Result
NOP
0
000
---
---
---
No operation,
No
≧ 4
or read out data
READ
0
0
010
011
Register address
Register address
---
00
00
Read register Rn
Yes
No
11 / 22
27 / --
WRITE
Data
Write data to RAM
(Register 16...18)
PROG
0
0
110
111
Register address
11001
---
---
---
---
Copy data to ROM
Reset the device
No
No
9 / --
9 / --
RESET
Table 4: Command list
Remarks:
•
•
•
•
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.
© 2011 ESPROS Photonics Corporation
Characteristics subject to change without notice
18
Datasheet epc110 - V2.1
www.espros.ch