31
LatticeECP3 Serial Protocol Board – Revision E
User’s Guide
Figure 24. Programming
5
5
4
4
3
3
2
2
1
1
D
D
C
C
B
B
A
A
FROM ISPVM CABLE
This LED
indicates activity
on TDI.
FPGA GSRN
PROGRAMN
DONE indicator will light when
configuration is successfully
completed
INITN indicator will light
if an error occurs during
configuration programming
ON
e
d
o
M
n
o
i
t
a
r
u
g
i
f
n
o
C
2
G
F
C
CFG1
CFG0
ispJTAG
Slave Serial
SPIm
SPI Flash
Slave Parallel
0(ON)
XX
1(OFF)
1(OFF)
1(OFF)
1(OFF)
1(OFF)
0(ON)
0(ON)
1(OFF)
0(ON)
0(ON)
0(ON)
CONFIG
Status LEDs
PROGRAMN
& GSRN
Pushbuttons
CONFIG
CFG Switches
SPI FLASH
JTAG
X
sysCONFIG
Connector
TMS
TCK
DONE
INITn_OB
NC
TDI_OB
GND
TDO_OB
PROGRAMn_OB
Multi-board JTAG header
TDO Chaining
1-2: TDO Local
1-3, 2-4: Offboard Chain
PROGRAMn Chain
Open: PGM Local
Shunt: Local & Offboard
INITn Chain
Open: INITn Local
Shunt: Local & Offboard
TMS
TCK
DONE
INITn
+3.3V
TDI
GND
TDO
PROGRAMn
ECP3
XO
PWR
VM Cable
TCK
Buffer
TCK
TMS
TDI
TMS
TDO
Daisy Chain
Off-Board
TDI
TDO
I
D
T
I
D
T
I
D
TO
D
T
O
D
T
O
D
T
ATDI
Board Jumpers
JTAG Daisy Chain
PLACE JUMPERS
FOR LOCAL ECP3
JTAG CHAIN
TCK
_
B
UF
LOC
AL_T
D
I
LOC
AL_T
C
K
L
O
CA
L
_
TMS
PR
OGR
AM
N
GSR
N
INITN
DO
NE
DO
NE
INITN
FL
A
S
H_
DIS
FP
G
A
_
S
IS
P
I
GSRN
PROGR
AMN
CFG
2
CFG
1
CFG
0
LOCAL_T
MS
F
PGA_C
SSPI
0N
_D
I
LOCAL_T
DI
LO
CAL
_TCK
SPI
0_Q
CAB
LE
_TDO
LOAD
ER
_C
K
T
M
S_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3V
3_3V
3_3V
3_3V
3_3V
3_3V
3_3V
3_3V
3_3V
3_3V
3_3VI
N
3_3VI
N
3_3VI
N
3_3VI
N
3_3VI
N
GSR
N
3,
6,
13
T
M
S_BU
F
3,
6
T
C
K_BU
F
3,
6
LOAD
ER
_C
K
6
F
PGA_C
C
LK
6
TE
MP
3
T
EM
P_GN
D
3
TDI_
B
U
F
3
TDI_
X
O
6
F
PGA_D
[0.
.7]
6
F
PGA_W
R
IT
EN
6
P
RO
G
RA
MN
6
DO
NE
3
,6
INITN
3
,6
C
F
G[
0.
.2]
6
SPI
_C
LK
6
TRS
Tn
3
F
PGA_C
S1N
6
F
PGA_C
SN
6
F
PGA_D
[8.
.15]
6
TDO
_
P
A
C
3
Ti
tl
e
Siz
e
Projec
t
R
ev
D
at
e:
Sheet
of
1605 Valley Center Parkway
Bethlehem, PA 18017
ECP3
SPB Eva
l Bo
a
rd
5.
0
P
rogrammi
ng
C
51
6
T
ues
day
, Augus
t 07,
2012
Ti
tl
e
Siz
e
Projec
t
R
ev
D
at
e:
Sheet
of
1605 Valley Center Parkway
Bethlehem, PA 18017
ECP3
SPB Eva
l Bo
a
rd
5.
0
P
rogrammi
ng
C
51
6
T
ues
day
, Augus
t 07,
2012
Ti
tl
e
Siz
e
Projec
t
R
ev
D
at
e:
Sheet
of
1605 Valley Center Parkway
Bethlehem, PA 18017
ECP3
SPB Eva
l Bo
a
rd
5.
0
P
rogrammi
ng
C
51
6
T
ues
day
, Augus
t 07,
2012
R5
4
680R
-0603SM
T
C10
8
100NF
-0603SM
T
C1
0
3
10NF
-0603SMT
R6
0
10K-0603SM
T
SW
1
SW
PU
SH
BU
T
T
O
N
-SPST
VCC
GND
TDO
TDI
ispEN_N
NC
TMS
TCK
DONE
INITN
J9
H
EAD
ER
10
1
2
3
4
5
6
7
8
9
10
C1
0
2
100NF
-0603SMT
RN1A
4.
7K
1
8
J8
H
EAD
ER
2X2
3
4
1
2
R65
10K-0603SMT
U1
2
M
AX6817
IN
1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
B
SN
74LVC
125A/
SO14
3Y
8
3A
9
3O
E
_N
10
4Y
11
4A
12
4O
E
_N
13
VCC
14
C10
5
100NF
-0603SM
T
R5
3
680R
-0603SM
T
R7
5
10K-0603SM
T
R77
100R-0603SM
T
R
D8
LED
-SM
T
1206_R
ED
Y
D1
0
LED
-SM
T
1206_R
ED
Q7
2N
2222/
SOT
23
3
1
2
SW
3
SW
PU
SH
BU
T
T
O
N
-SPST
C10
6
100NF
-0603SM
T
RN1B
4.
7K
2
7
RN1D
EXBV8V472J
V
4.
7K
4
5