131/164
μ
PSD3200 FAMILY
DRAFT(Thursday 20 June 2002, 13:15).
PROGRAMMING IN-CIRCUIT USING THE JTAG SERIAL INTERFACE
The JTAG Serial Interface block can be enabled
on Port C(see Table104). Allmemory blocks (pri-
mary and secondary Flash memory), PLD logic,
and PSD Module Configuration Register bits may
be programmedthrough the JTAG Serial Interface
block. A blank device can be mounted on a printed
circuit board and programmed using JTAG.
The standard JTAG signals (IEEE 1149.1) are
TMS, TCK, TDI, and TDO. Twoadditional signals,
TSTAT and TERR, are optional JTAG extensions
used to speed up Program and Erase cycles.
By default, on a blank PSD Module (as shipped
from thefactory or after erasure), four pins on Port
C are enabled for the basic JTAG signals TMS,
TCK, TDI, and TDO
See Application Note AN1153 for more details on
JTAG In-System Programming (ISP).
Standard JTAG Signals
The standard JTAG signals (TMS, TCK, TDI, and
TDO) canbe enabled by any of three different con-
ditions that are logically ORed. When enabled,
TDI, TDO, TCK, and TMS are inputs, waiting for a
JTAG serial command froman external JTAGcon-
troller device (such as FlashLINK or Automated
Test Equipment). When the enabling command is
received, TDO becomes an output and the JTAG
channel is fully functional. The same command
that enables the JTAG channel mayoptionally en-
able the two additional JTAG signals, TSTAT and
TERR.
The following symbolic logic equationspecifies the
conditions enabling the four basic JTAG signals
(TMS, TCK, TDI, and TDO) on their respective
Port C pins. For purposes of discussion, the logic
label JTAG_ON is used. When JTAG_ON is true,
the four pins are enabled for JTAG. When
JTAG_ON is false, the four pins can be used for
general PSD Module I/O.
JTAG_ON = PSDsoft_enabled +
/* An NVM configuration bit inside the
PSD Module is set by the designer in
the
PSDsoft
Express
Configuration
utility. This dedicates
the pins for
JTAG at all times (compliant with IEEE
1149.1 */
8032_Module_enabled +
/* The MCU can set a bit at run-time by
writing
to
the
PSD
register,
Enable.
This
register
is
address CSIOP + offset C7h. Setting the
JTAG_ENABLE bit in this register will
enable the pins for JTAG use. This bit
is cleared by a PSD reset or the MCU.
See Table 105 for bit definition. */
PSD_product_term_enabled;
/* A dedicated product term (PT) inside
the PSD Module can be used to enable
the JTAG pins. This PT has the reserved
name JTAGSEL. Once defined as a node in
PSDsoft,
the
designer
can
JTAG
located
at
write
an
equation
used
multiplexed with other I/O signals. It
is
recommended
to
node JTAGSEL to the JEN\ signal on the
Flashlink cable when multiplexing JTAG
signals. See Application Note 1153 for
details. */
The state of the Reset(RESET) signaldoes notin-
terrupt (or prevent) JTAG operations if the JTAG
pins are dedicated by an NVM configuration bit
(via PSDsoft Express). However, Reset (RESET)
will prevent or interrupt JTAG operations if the
JTAG enable register is used to enable the JTAG
pins.
The
μ
PSD3200 Family supportsJTAG In-System-
Configuration (ISC) commands, but not Boundary
Scan. The PSDsoft Express software tool and
FlashLINK JTAG programming cable implement
the JTAG In-System-Configuration (ISC) com-
mands. A definition of these JTAG In-System-
Configuration (ISC) commands and sequences is
defined in a supplemental document available
from ST. Thisdocument isneeded only as a refer-
ence for designers who use a FlashLINK to pro-
gram the
μ
PSD3200 Family.
for JTAGSEL.
when
the
This method is
JTAG
pins
Port
C
are
logically
tie
the
Table 104. JTAG Port Signals
JTAG Extensions
TSTAT and TERR aretwoJTAG extension signals
enabled by an “ISC_ENABLE” command received
over the four standard JTAG signals (TMS, TCK,
TDI, and TDO). They are used to speed Program
and Erase cycles by indicating status on
μ
PDS
signals instead of having to scan the status out se-
rially using the standard JTAG channel. See Appli-
cation Note AN1153
TERR indicates if an error has occurred when
erasing a sector or programming a byte in Flash
memory. This signal goes Low (active) when an
Error condition occurs, and stays Low until an
“ISC_CLEAR” command is executed or a chip Re-
set
(RESET)
pulse
“ISC_DISABLE” command.
TSTAT behaves the same as Ready/Busy de-
scribed inthe section entitled“Ready/Busy (PC3)”,
is
received
after
an
Port C Pin
JTAG Signals
Description
PC0
TMS
Mode Select
PC1
TCK
Clock
PC3
TSTAT
Status
PC4
TERR
Error Flag
PC5
TDI
Serial Data In
PC6
TDO
Serial Data Out