Professional Documents
Culture Documents
An095 PDF
An095 PDF
Programmability
in MAX Devices
Application Note 95
Introduction
Features &
Benefits
Altera Corporation
A-AN-095-1.5
Program and reprogram devices after they are soldered onto the
printed circuit board (PCB), minimizing the possibility of lead
damage or electrostatic discharge (ESD) exposure.
Manufacture systems before you finalize device configuration.
Perform boundary-scan test (BST) procedures and program devices
using in-circuit testers.
Upgrade systems in the field after they have been shipped.
Features
Benefits
Devices are programmed with a VCC-level Eliminates the need for a 12.0-V
programming voltage.
programming voltage and the possibility of
accidental damage to lower voltage parts.
Also reduces system power requirements.
Devices can be programmed while
soldered to a PCB.
VCC-Level
Programming
Devices can be reprogrammed in the field. Adds versatility and reduces service costs,
thereby making products more attractive to
the consumer.
Altera Corporation
Programming
Systems
Figure 1 shows the 10-pin female plug dimensions for the BitBlaster or
ByteBlasterMV download cable.
Altera Corporation
0.425 Typ.
Color Strip
1
10
0.250 Typ.
0.100 Sq.
0.025 Sq.
0.700 Typ.
Table 2 identifies the 10-pin female plugs pin names for the
corresponding download mode.
Table 2. Female Plugs Pin Names & Download Modes
Pin
JTAG Mode
Signal Name
Signal Name
Description
TCK
Clock signal
GND
Signal ground
TDO
VCC
Power supply
TMS
JTAG state
machine control
No connect
No connect
nSTATUS
No connect
TDI
Data to device
DATA0
Data to device
10
GND
Signal ground
GND
Signal ground
Description
PS Mode
DCLK
Clock signal
GND
Signal ground
CONFIG_DONE
Configuration
control
VCC
Power supply
nCONFIG
Configuration
control
No connect
Configuration
status
No connect
ISP-capable devices are programmed via a devices JTAG pins: TCK, TMS,
TDI, and TDO. Figure 2 shows how the BitBlaster or ByteBlasterMV
download cable interfaces with an ISP-capable device. The I/O pins are
tri-stated during in-system programming.
Figure 2. ISP-Capable MAX Device Programming with the BitBlaster or
ByteBlasterMV Download Cable
VCC
VCC
1 k
1 k
VCC
1 k
TCK
TDO
1 k
GND
10-Pin Male
Header (Top View)
Pin 1
VCC
TMS
TDI
GND
GND
Altera Corporation
f
IEEE Std.
1149.1
Interface
Refer to AN 122: Using Jam STAPL for ISP & ICR via an Embedded Processor
for more information on embedded processor programming.
MAX device JTAG pins and functions are described in Table 3.
Description
Function
TDI
TDO
TMS
Test mode select Input pin controls the IEEE Std. 1149.1 JTAG state
machine and is evaluated on the rising edge of TCK.
This signal needs to be externally pulled high during
normal operation.
TCK
Test clock
During erasure, programming, and verification, all device I/O pins are
tri-stated to eliminate interference from other devices on the PCB. Devices
are programmed by applying the appropriate signals on the TMS and TCK
inputs and shifting data into and out of the devices on the TDI and TDO
pins, respectively. After programming, the IEEE Std. 1149.1 JTAG Test
Access Port (TAP) controller state machine must be advanced to the
RESET state, which is maintained by external pull-up resistors on the TCK,
TMS, and TDI pins. During normal operation, the pull-up resistors
prevent the device from entering other modes.
Figure 3 shows the timing waveforms for the IEEE Std. 1149.1 JTAG TAP
controller state machine.
Altera Corporation
TDI
tJCP
tJCH
tJCL
tJPSU
tJPH
TCK
tJPZX
tJPXZ
tJPCO
TDO
tJSH
tJSSU
Signal
to Be
Captured
tJSCO
tJSZX
tJSXZ
Signal
to Be
Driven
Table 4 shows the JTAG timing parameters and values for ISP-capable
MAX devices.
Table 4. JTAG Timing Parameters & Values for MAX Devices
Symbol
Altera Corporation
Parameter
Min
Max
Unit
100
ns
50
ns
tJCL
50
ns
tJPSU
20
ns
tJPH
45
tJPCO
25
ns
tJPZX
25
ns
tJPXZ
25
ns
tJSSU
20
tJSH
45
tJSCO
25
ns
tJSZX
25
ns
tJSXZ
25
ns
tJCP
tJCH
ns
ns
ns
Programming
ISP-Capable
MAX Devices
Single-Device Programming
For PCBs that contain a single ISP-capable MAX device, a
JTAG-compatible headersuch as the 10-pin BitBlaster or ByteBlasterMV
headercan be used to program the device. See Figure 4.
Altera Corporation
1 k
VCC
1 k
TDI
VCC
TMS
TDO
TCK
1 k
TMS
TCK
TDO
1 k
Altera Corporation
ByteBlaster
10-Pin Male Header
VCC
1 k
1 k
VCC
1 k
TDO
TCK
Target
Altera Device
TDI
TMS
TDO
TCK
TDO
TCK
1 k
f
Conclusion
10
Altera Corporation
Copyright 2005 Altera Corporation. All rights reserved. Altera, The Programmable Solutions Company,
the stylized Altera logo, specific device designations, and all other words and logos that are identified as
trademarks and/or service marks are, unless noted otherwise, the trademarks and service marks of Altera
Corporation in the U.S. and other countries. All other product or service names are the property of their respective holders. Altera products are protected under numerous U.S. and foreign patents and pending
applications, maskwork rights, and copyrights. Altera warrants performance of its semiconductor products
to current specifications in accordance with Altera's standard warranty, but reserves the right to make changes to any products and services at any time without notice. Altera assumes no responsibility or liability
arising out of the application or use of any information, product, or service described
herein except as expressly agreed to in writing by Altera Corporation. Altera customers
are advised to obtain the latest version of device specifications before relying on any published information and before placing orders for products or services.
Altera Corporation
Printed on Recycled Paper.