C8051F120/1/2/3/4/5/6/7 C8051F130/1/2/3
25. JTAG (IEEE 1149.1)
Each MCU has an on-chip JTAG interface and logic to support boundary scan for production and in-sys-
tem testing, Flash read/write operations, and non-intrusive in-circuit debug. The JTAG interface is fully
compliant with the IEEE 1149.1 specification. Refer to this specification for detailed descriptions of the Test
Interface and Boundary-Scan Architecture. Access of the JTAG Instruction Register (IR) and Data Regis-
ters (DR) are as described in the Test Access Port and Operation of the IEEE 1149.1 specification.
The JTAG interface is accessed via four dedicated pins on the MCU: TCK, TMS, TDI, and TDO.
Through the 16-bit JTAG Instruction Register (IR), any of the eight instructions shown in Figure 25.1 can
be commanded. There are three DR's associated with JTAG Boundary-Scan, and four associated with
Flash read/write operations on the MCU.
JTAG Register Definition 25.1. IR: JTAG Instruction Register
Bit15
IR Value
Instruction
0x0000
EXTEST
SAMPLE/
0x0002
PRELOAD
0x0004
IDCODE
0xFFFF
BYPASS
0x0082
Flash Control
0x0083
Flash Data
0x0084 Flash Address
0x0085
Flash Scale
Selects the Boundary Data Register for control and observability of all
device pins
Selects the Boundary Data Register for observability and presetting the
scan-path latches
Selects device ID Register
Selects Bypass Data Register
Selects FLASHCON Register to control how the interface logic responds
to reads and writes to the FLASHDAT Register
Selects FLASHDAT Register for reads and writes to the Flash memory
Selects FLASHADR Register which holds the address of all Flash read,
write, and erase operations
Selects FLASHSCL Register which controls the Flash one-shot timer and
read-always enable
Rev. 1.4
Description
Reset Value
0x0000
Bit0
341
Need help?
Do you have a question about the C8051F12 Series and is the answer not in the manual?
Questions and answers