Programming Cable Users Guide
Programming Cable Users Guide
Programming Cable Users Guide
User Guide
March_2015
UG48_24.8
Programming Cables
Features
Support for all Lattice programmable products
1.2 V to 3.3 V programming (HW-USBN-2B)
1.2 V to 5 V programming (All other cables)
Ideal for design prototyping and debugging
Connect to multiple PC interfaces
USB (v.1.0, v.2.0)
PC Parallel Port
Easy-to-use programming connectors
Versatile flywire, 2 x 5 (.100) or 1 x 8 (.100) connectors
6 feet (2 meters) or more of programming cable length (PC to DUT)
Lead-free/RoHS compliant construction
Figure 1. USB Cable HW-USBN-2B
Programming Cables
Lattice Programming Cable products are the hardware connection for in-system programming of all Lattice devices.
After completion of the logic design and creation of a programming file with the Lattice Diamond, ispLEVER Classic or PAC-Designer software, the Lattice Diamond Programmer, or Lattice's ispVM System software is used to
control the programming of devices directly on the PC board. No additional components are required to program a
device.
After you complete your logic design and create a programming file with the Lattice Diamond/ispLEVER Classic
development tools, you can use Diamond Programmer or ispVM System software ispVM System software or
Diamond Programmer to program devices on your board. The ispVM System/Diamond Programmer software automatically generates the appropriate programming commands, programming addresses and programming data
based on information stored in the programming file and parameters you set in Diamond Programmer/ispVM System. Programming signals are then generated from the USB or parallel port of a PC and directed through the Programming Cable to the device. No additional components are required for programming.
Diamond Programmer/ispVM System software is included with all Lattice design tool products and is available for
download from the Lattice web site at www.latticesemi.com.
Programming Cables
Programming Cable
Pin Type
Name
Description
VCC
Programming Voltage
Input
SDO/TDO
Input
SDI/TDI
Output
ispEN/Enable/PR
Enable
OG/SN
Output
TRST
Test Reset
Output
DONE
DONE
MODE/TMS
GND
Ground
SCLK/TCK
INIT
Initialize
Input
I2C: SCL1
I2C SCL
Output
I2C: SDA1
I2C SDA
Output
5V Out1
5V Out
Output
Input
Output
Input
Output
TCK/SCLK*
TMS*
I2C: SCL
TDI/SI *
5V OUT
TDO/SO*
I2C: SDA
VCC*
DONE
ISPEN/PROG/SN
GND*
TRST
Programming Cables
Figure 3. Programming Cable In-System Programming Interface for the PC (HW-USB-1A or HW-USB-2A)1
Color
Function
To
PC
6'
Red
Brown
Orange
Yellow
Green
Purple
Black
White
Blue
VCC
SDO/TDO
SDI/TDI
ispEN/Enable/PROG
TRST/DONE
MODE/TMS
GND
SCLK/TCK
INIT
HW-USB-1A
To
System
Board
1. Lattice PAC-Designer software does not support programming with USB cables. To program ispPAC devices with these cables, use the Diamond Programmer/ispVM System software.
Figure 4. Programming Cable In-System Programming Interface for the PC (HW-DLN-3C and Equivalents)1
HW7265-DL3 and HW7265-DL3A Grey Housing with RJ-45 Connector
Other Cables are Labeled with Part Number
25-pin
Parallel
Port
Adapter
To
PC
Function
VCC
6'
Color
Red
SDO/TDO
Brown
SDI/TDI
Orange
ispEN/Enable/Prog
Yellow
TRST
Green
MODE/TMS
Purple
GND
Black
SCLK/TCK
White
To
System
Board
1. HW7265-DL3, HW7265-DL3A, HW-DL-3B, HW-DL-3C and HW-DLN-3C are functionally equivalent products.
Figure 5. Programming Cable In-System Programming Interface for the PC (pDS4102-DL2 or pDS4102DL2A)
End View
pDS4102-DL2 Blue Housing
pDS4102-DL2A Grey Housing
To
PC
25-pin
Parallel
Port
Adapter
Function
VCC
.100" Center-Spacing
Eight Positions
RJ-45 Connector
Eight Positions
.01f*
Capacitor
6'
Pin #
1
SDO/TDO
SDI/TDI
ispEN/Enable/PROG
TRST
MODE/TMS
GND
SCLK/TCK
To
System
Board
Figure 6. Programming Cable In-System Programming Interface for the PC (HW7265-DL2 or HW7265-DL2A)
HW7265-DL2 Blue Housing
HW7265-DL2A Grey Housing
To
PC
25-pin
Parallel
Port
Adapter
End View1
Pin # Function
2
GND
RJ-45 Connector
Eight Positions
6'
SCLK/TCK
Function
Pin #
1
Pin # Function
1
SCKL/TCK
GND
MODE/TMS
VCC
SDI/TDI
GND
SDO/TDO
3
To
System 5
Board 7
10
ispEN/Enable/
PROG
TRST
GND
Pin #
2
MODE/TMS
GND
SDI/TDI
VCC
SDO/TDO
GND
TRST
ispEN/Enable/
PROG
10
Function
1. For reference purposes, the 2x10 connector on the HW7265-DL2 or HW7265-DL2A is equivalent to Tyco 102387-1. This will interface to
standard 100-mil spacing 2x5 headers, or a 2x5 keyed, recessed male connector such as the 3M N2510-5002RB.
Programming Cables
Programming Software
Diamond Programmer and ispVM System for Classic devices is the preferred programming management software tool for all Lattice devices and download cables. The latest version of Lattice Diamond Program-mer or
ispVM System software is available for download from the Lattice web site at www.latticesemi.com/software.
Flywire
Cable
Wire
Label
1x10
Connector
1x8
Connector
2x5
Connector
Red
VCC
TDO/SO/SPI_SO
Brown
TDO
TDI/SI/SPI_SI
Orange
TDI
ispEN2/Enable/PROGRAMN/SN/SPI_SS_B
Yellow
ispEN/PROG
10
TRST3/CRESET_B
Green
TRST/DONE
TMS/MODE
Purple
TMS
GND
Black
GND
4 (2 and 8)
TCK4/SCLK/CCLK/SPI_SCK
White
TCK
Green
TRST/DONE
Blue
INITN
10
DONE
INITN/CDONE
I2C SCL5, 6
Yellow/White
I2C: SCL
I2C SDA5,6
Green/White
I2C: SDA
Programming Cables
Table 2. Flywire Conversion Reference (Continued)
Function
5V Output5
Flywire
Cable
Wire
Label
Red/White
5V Out
1x10
Connector
1x8
Connector
2x5
Connector
1. For devices that have a VCCJ pin, the VCCJ must be connected to the cables VCC, and a 0.1F decoupling capacitor is required on VCCJ
close to the device. Please refer to the device data sheet to determine if the device has a VCCJ pin.
2. For older Lattice ISP devices, a 0.01F decoupling capacitor is required on ispEN/ENABLE of the target board.
3. The TRST and DONE pin is multiplexed on the Programming USB cable. If the device TRST signal is available on the board, connect the
USB flywire TRST/DONE wire to TRST. If the device DONE signal is available on the board (or if both TRST and DONE are available), connect the USB flywire TRST/DONE wire to DONE. Please make sure the correct setting is selected in ispVM/Diamond Programmer (Options,
Cable and I/O Port Setup). This will tell ispVM/Diamond Programmer whether the TRST/DONE cable is used as a TRST or a DONE signal.
4. A 4.7K pull-down resister is recommended on TCK of the target board.
5. Only on the HW-USB2N-2B cable
6. Open drain signals. External pull-up ~2.2KOhm resistor to VCC is required.
Table 3 lists the recommend pin connections. Please contact Lattice technical support for information on unlisted
device families. (e-mail: techsupport@latticesemi.com).
Table 3. Recommended Pin Connections
TDI
TDO
TMS
TCK
ispEN/P
ROG1,6
TRST2/D
ONE3,6
INITN3,6
VCC
GND
SCL
SDA
ECP5
Mandatory
Mandatory
Mandatory
Mandatory
Optional
Optional
Optional
Mandatory
Mandatory
N/A
N/A
LatticeECP3
Mandatory
Mandatory
Mandatory
Mandatory
Optional
Optional
Optional
Mandatory
Mandatory
N/A
N/A
LatticeECP2M/LatticeECP2
Mandatory
Mandatory
Mandatory
Mandatory
Optional
Optional
Optional
Mandatory
Mandatory
N/A
N/A
LatticeECP/LatticeEC
Mandatory
Mandatory
Mandatory
Mandatory
Optional
Optional
Optional
Mandatory
Mandatory
N/A
N/A
LatticeXP2
Mandatory
Mandatory
Mandatory
Mandatory
Optional
Optional
Optional
Mandatory
Mandatory
N/A
N/A
LatticeXP
Mandatory
Mandatory
Mandatory
Mandatory
Optional
Optional
Optional
Mandatory
Mandatory
N/A
N/A
LatticeSC/LatticeSCM
Mandatory
Mandatory
Mandatory
Mandatory
Optional
Optional
Optional
Mandatory
Mandatory
N/A
N/A
Recommended
Mandatory
Mandatory
N/A
N/A
N/A
Mandatory
Mandatory
Optional
Optional
Device Family
iCE40/iCE40LM/iCE40 Ultra
Mandatory
Mandatory
N/A
Mandatory
Mandatory
Recommended
MachXO2/MachXO3
Mandatory
Mandatory
Mandatory
Mandatory
N/A
N/A
MachXO
Mandatory
Mandatory
Mandatory
Mandatory
N/A
N/A
N/A
Mandatory
Mandatory
N/A
N/A
ORCA/FPSC
Mandatory
Mandatory
Mandatory
Mandatory
Optional
Optional
Optional
Mandatory
Mandatory
N/A
N/A
ispXPGA
Mandatory
Mandatory
Mandatory
Mandatory
N/A
N/A
N/A
Mandatory
Mandatory
N/A
N/A
ispXPLD
Mandatory
Mandatory
Mandatory
Mandatory
N/A
N/A
N/A
Mandatory
Mandatory
N/A
N/A
ispMACH 4000
Mandatory
Mandatory
Mandatory
Mandatory
N/A
N/A
N/A
Mandatory
Mandatory
N/A
N/A
ispMACH/ispLSI 5000
Mandatory
Mandatory
Mandatory
Mandatory
N/A
N/A
N/A
Mandatory
Mandatory
N/A
N/A
MACH4A4
Mandatory
Mandatory
Mandatory
Mandatory
N/A
N/A
N/A
Mandatory
Mandatory
N/A
N/A
ispGDX2
Mandatory
Mandatory
Mandatory
Mandatory
N/A
N/A
N/A
Mandatory
Mandatory
N/A
N/A
ispClock
Mandatory
Mandatory
Mandatory
Mandatory
N/A
N/A5
N/A
Mandatory
Mandatory
N/A
N/A
Platform Manager
Mandatory
Mandatory
Mandatory
Mandatory
N/A
Optional5
N/A
Mandatory
Mandatory
N/A
N/A
Mandatory
Mandatory
Mandatory
Mandatory
N/A
Optional5
N/A
Mandatory
Mandatory
N/A
N/A
ispPAC
Mandatory
Mandatory
Mandatory
Mandatory
N/A
N/A
N/A
Mandatory
Mandatory
N/A
N/A
1. Refer to the Programming Cable ispEN Pin section below for detailed information on connecting the ispEN/ENABLE pin.
2. Refer to the Programming Cable TRST Pin section below for detailed information on connecting the TRST pin.
3. The DONE and INITN signals are only available on the Programming USB cable. These signals are inputs to the cable and can be used to help verify device
configuration.
4. Please refer to the device data sheet. Not all packages have the ENABLE or TRST pin.
5. When using PAC-Designer software to program ispPAC devices, do not connect this pin.
6. When using these connections, be sure to select the correct settings in the Cable and I/O Port Setup dialog in the ispVM System/Diamond Programmer software.
Programming Cables
Feature
USB
HW-USBN-2B
HW-USBN-2A
HW-USB-2A
HW-USB-1A
HW-DLN-3C
HW7265-DL3,
HW7265-DL3A,
HW-DL-3B,
HW-DL-3C
HW7265-DL2
HW7265-DL2A
PDS4102-DL2
PDS4102-DL2A
PC-Parallel
1.2 V Support
1.8 V Support
2.5-3.3 V Support
5.0 V Support
2x5 Connector
X
X
1x8 Connector
Flywire
Lead-free
Construction
X
X
Programming Cables
Each Programming Cable ships with two small connectors that help you keep the flywires organized. The following
manufacturer and part number is one possible source for equivalent connectors:
1x8 Connector (e.g. Samtec SSQ-108-02-T-S)
2x5 Connector (e.g. Samtec SSQ-105-02-T-D)
The Programming Cable flywire or headers are intended to connect to standard 100-mil spacing headers (pins
spaced 0.100 inch apart). Lattice recommends a header with length of 0.243 inches or 6.17 mm. Though, headers
of other lengths may work equally well.
Ordering Information
Ordering Part
Number
Description
Programming cable (USB). Contains 6' USB cable, flywire connectors,
8-position (1x8) adapter and 10-position (2x5) adapter, lead-free, RoHS
compliant construction.
Programming cable (PC only). Contains parallel port adapter, 6' cable,
flywire connectors, 8-position (1x8) adapter and 10-position (2x5) adapter,
lead-free, RoHS compliant construction.
HW-USBN-2B
HW-DLN-3C
Note: Additional cables are described in this document for legacy purposes only, these cables are no longer produced. The cables currently
available for order are fully equivalent replacement items.
techsupport@latticesemi.com
Internet: www.latticesemi.com
Programming Cables
Revision History
Date
Version
Change Summary
March 2015
24.8
January 2015
24.7
July 2014
24.6
October 2012
24.5
February 2012
24.4
November 2011
24.3
October 2009
24.2
July 2009
24.1
Programming Cables
10
Programming Cables
3. Click Reinstall Driver.
11
Programming Cables
5. Browse to the isptools\ispvmsystem directory for the Lattice EzUSB driver or the isptools\ispvmsystem\
Drivers\FTDIUSBDriver directory for the FTDI FTUSB driver. For Diamond installations, browse to
lscc/diamond/data/vmdata/drivers. Click Next.
6. Select Install this Driver software anyway. The system will update the driver.
7. Click Close and finish installing the USB driver. Under Control Panel >System >Device Manager > Universal Serial Bus Controllers should include the following:
For the Lattice EzUSB Driver: Lattice USB ISP Programmer device installed.
12
For the FTDI FTUSB Driver: USB Serial Converter A and Converter B devices installed.
If you are experiencing problems or need additional information, contact Lattice Technical Support.