Configuration Pins
The LatticeECP2/M supports two types of configuration pins, dedicated and dual-purpose. The dedicated pins are
used exclusively for configuration; the dual-purpose pins, when not being used for configuration, are available as
extra I/O pins. If a dual-purpose pin is to be used both for configuration and as a general purpose I/O (GPIO) the
user must adhere to the following:
• The I/O type must remain the same, in other words if the pin is a 3.3V CMOS pin (LVCMOS33) during configura-
tion it must remain a 3.3V CMOS pin as a GPIO.
• The user must select the correct CONFIG_MODE setting and set the PERSISTENT bit to OFF in order to use
the dual-purpose sysCONFIG pins as GPIO after configuration. In ispLEVER
the Design Planner. If you are using Lattice Diamond™ design software, select Tools > Spreadsheet View and
then select the Global Preferences tab in the Spreadsheet View.
• The user is responsible for insuring that no internal or external logic will interfere with device configuration.
Also, if slave parallel configuration mode is not being used then one or both of the parallel port chip selects (CSN,
CS1N) must be high or tri-state during configuration.
Programmable options control the direction and type of each dual-purpose configuration pin. These options are
controlled via pin preferences in Lattice ispLEVER and Diamond software, or as HDL source file attributes.
The LatticeECP2/M also supports ispJTAG for configuration, transparent read back, and JTAG testing. The follow-
ing sections describe the function of the various sysCONFIG and JTAG pins. Table 15-2 is provided for reference.
Table 15-2. Configuration Pins for the LatticeECP2/M
Pin Name
CFG[2:0]
PROGRAMN
INITN
DONE
CCLK
2
DI/CSSPI0N
2
DOUT/CSON
2
CSN
2
CS1N
2
WRITEN
2
BUSY/SISPI
2
D[0]/SPIFASTN
2
D[1:6]
2
D[7]/SPID0
TDI
TDO
TCK
TMS
1. Weak pull-ups consist of a current source of 30µA to 150µA. The pull-ups for sysCONFIG dedicated and dual-purpose pins track V
the pull-ups for TDI, TDO, and TMS track V
2. The sysCONFIG pins on the LatticeECP2M50/M70/M100 are dedicated sysCONFIG pins. The sysCONFIG output pins are actively driven
during normal device operation.
I/O Type
Input, weak pull-up
Input, weak pull-up
Bi-Directional Open Drain, weak pull-up
Bi-Directional Open Drain with weak pull-
up, or Active Drive
Input or Output
Input, weak pull up
Output
Input, weak pull-up
Input, weak pull-up
Input, weak pull-up
Output, tri-state, weak pull-up
Input or Output
Input, weak pull-up
Output, weak pull-up
Input with Hysteresis
Input, weak pull-up
.
CCJ
15-2
LatticeECP2/M sysCONFIG Usage Guide
®
these preferences can be set in
Pin Type
Dedicated
Dedicated
Dedicated
Dedicated
Dedicated
Dual-Purpose
Dual-Purpose
Dual-Purpose
Dual-Purpose
Dual-Purpose
Dual-Purpose
Dual-Purpose
Dedicated
Dedicated
Dedicated
Dedicated
Mode Used
All
All
All
All
All
Serial, SPI, SPIm
Parallel, Serial, SPI
Parallel
Parallel
Parallel
Serial, SPI, SPIm
Parallel, SPI, SPIm
Parallel
Parallel, SPI, SPIm
JTAG
JTAG
JTAG
JTAG
;
CCIO8
Need help?
Do you have a question about the ECP2 Series and is the answer not in the manual?