A transition between the states only occurs on the rising edge of TCK, and each state has a different name.

The two vertical columns with seven states each represent the Instruction Path and the Data Path.

The data registers operate in the states whose names end with "DR" and

the instruction register operates in the states whose names end in "IR".

The states are otherwise identical.

The operation of each state is described below.

Test-Logic-Reset
All test logic is disabled in this controller state enabling the normal operation of the IC.
The TAP controller state machine is designed so that, no matter what the initial state of the controller is,
the Test-Logic-Reset state can be entered by holding TMS at high and pulsing TCK five times.
This is why the Test Reset (TRST) pin is optional.

Run-Test-Idle
In this controller state, the test logic in the IC is active only if certain instructions are present.
For example, if an instruction activates the self test, then it is executed when the controller enters this state.
The test logic in the IC is idle otherwise.

Select-DR-Scan
This controller state controls whether to enter the Data Path or the Select-IR-Scan state.

Select-IR-Scan
This controller state controls whether or not to enter the Instruction Path.
The Controller can return to the Test-Logic-Reset state otherwise.

Capture-IR
In this controller state, the shift register bank in the Instruction Register
parallel loads a pattern of fixed values on the rising edge of TCK.
The last two significant bits must always be "01".

Shift-IR
In this controller state, the instruction register gets connected between TDI and TDO,
and the captured pattern gets shifted on each rising edge of TCK.
The instruction available on the TDI pin is also shifted in to the instruction register.

Exit1-IR
This controller state controls whether to enter the Pause-IR state or Update-IR state.

Pause-IR
This state allows the shifting of the instruction register to be temporarily halted.

Exit2-DR
This controller state controls whether to enter either the Shift-IR state or Update-IR state.

Update-IR
In this controller state, the instruction in the instruction register is
latched to the latch bank of the Instruction Register on every falling edge of TCK.
This instruction becomes the current instruction once it is latched.

Capture-DR
In this controller state, the data is parallel-loaded into the data registers selected
by the current instruction on the rising edge of TCK.

Shift-Dr, Exit1-DR, Pause-DR, Exit2-DR and Update-DR
These controller states are similar to the Shift-IR, Exit1-IR, Pause-IR, Exit2-IR
and Update-IR states in the Instruction path.

Instruction Register

The instruction register (IR) consists of three IR cells.

Each cell has a shift-register stage and a latch stage (Figure 5).

On the Capture-IR state, the shift register is loaded with bits 001,

which are used for fault isolation of the board-level serial test data path.

The TDI-IR-TDO path is established on the Shift-IR state.

Data in the shift register is shifted toward TDO, and data in the latch remains the same.

The data in the shift registers is latched out and becomes the current instruction

on the falling edge of the TCK in the Update-IR state.

When the TAP controller enters the Test-Logic Reset state,

bits 111 are latched in IR, which corresponds to the BYPASS instruction,

and the data in the shift register cell retain their previous values.

Table 2 shows the summary of the operation of the instruction register

Instructions

Table 3 lists the supported instructions with their corresponding IR codes and descriptions.

Bypass Register

The bypass register is a single-bit register that provides a minimum data path between the TDI and TDO pins (Figure 6).

The bypass register is selected when the BYPASS, HIGHZ, or CLAMP instruction is the current instruction in the instruction register.

On the Capture-DR controller state, 0 is loaded into the bypass register.

Test data can then be shifted from the TDI to the TDO pin on the Shift-DR state.

By moving into the Update-DR controller state, data movement through the bypass register is terminated.

Table 4 shows the summary of the operation of the bypass register.

Boundary-Scan Register

The boundary-scan register is used to observe and control the state of each system pin, including the clock pins.

Each boundary-scan cell consists of serial input (SI) and serial output (SO) that are connected to each cell, as shown in Figure 7.

In addition, each cell consists of a parallel input (PI) and a latched parallel output (PO) that connect to the system logic and system output.

Three cells are used for each I/O: an input cell (BS2), an output cell (BS1), and an output-enable cell (BS0).

The operation of the boundary-scan register under specific boundary-scan instruction is illustrated in Tables 5 and 6.

If the EXTEST instruction is not being used in conjunction with the SAMPLE/PRELOAD instruction,

the external test starts by shifting the desired test data into the boundary-scan register in the Shift-DR controller state.

By moving into the Update-DR controller state, data shifting is terminated, and on the falling edge of the TCK,

the data from the shift-register stage is transferred onto the parallel output of the latch stage.

The external test results are loaded into the shift-register stage from the system input on the next Capture-DR controller state

and are examined by shifting the data toward TDO on the next Shift-DR controller state.

During the SAMPLE/PRELOAD instruction, the Shift-DR state is used to shift out the data captured from the system input

and output pins for examination during the Capture-DR state.

At the same time, the Shift-DR state shifts in test data to be used by the next boundary-scan instruction

other than SAMPLE/PRELOAD.

The EXTEST instruction is usually initiated following the SAMPLE/PRELOAD instruction.

The data preloaded during the SAMPLE/PRELOAD instruction phase becomes available at the parallel output of the boundary-scan cells

when the EXTEST becomes the current instruction on the falling edge of TCK in the Update-IR state.

Similarly, the CLAMP instruction is usually initiated following the SAMPLE/PRELOAD instruction.

The latched data in the boundary-scan cell becomes available to the system output pins

when CLAMP becomes the current instruction and when the bypass register is selected as the data path from TDI to TDO.

JTAG - General description of the TAP Controller states的更多相关文章

  1. JTAG TAP Controller

    The TAP controller is a synchronous finite state machine that responds to changes at the TMS and TCK ...

  2. JTAG 引脚自动识别 JTAG Finder, JTAG Pinout Tool, JTAG Pin Finder, JTAG pinout detector, JTAGULATOR, Easy-JTAG, JTAG Enumeration

    JTAG Finder Figuring out the JTAG Pinouts on a Device is usually the most time-consuming and frustra ...

  3. ARM JTAG 信号 RTCK 应该如何处理?

    用户在调试内嵌可综合内核的 CPU 如 ARM7TDMI-S 时,需要通过打开仿真器的自适应时钟功能. 此时,ARM仿真器根据 RTCK 时钟信号的频率,产生可用于 CPU 内核当前时钟主频的最快的 ...

  4. Training JTAG Interface

    For most embedded CPU architecture implementations, the JTAG port is used by the debugger to interfa ...

  5. JTAG – A technical overview and Timing

    This document provides you with interesting background information about the technology that underpi ...

  6. SWD and JTAG selection mechanism

    SWD and JTAG selection mechanism SWJ-DP enables either an SWD or JTAG protocol to be used on the deb ...

  7. JTAG Communications model

    https://en.wikipedia.org/wiki/Joint_Test_Action_Group In JTAG, devices expose one or more test acces ...

  8. JTAG Simplified

    JTAG Simplified So the other day, I explored the JTAG bus interface which is frequently found in CPL ...

  9. ARM JTAG 20

    http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0499b/BEHEIHCE.html he ARM JTAG 20 co ...

随机推荐

  1. Anaconda+django写出第一个web app(九)

    今天来学习外键的使用,用外键来连接数据库中的两个表. 当我们的tutorials非常多的时候,目前的显示方式就会使得页面非常凌乱.我们可以考虑把这些教程分为不同的系列,页面只显示标题以及概要等信息,进 ...

  2. F. Ivan and Burgers(线性基,离线)

    题目链接:http://codeforces.com/contest/1100/problem/F 题目大意:首先输入n,代表当前有n个数,然后再输入m,代表m次询问,每一次询问是询问区间[l,r], ...

  3. 高可用的并行MySQL数据同步及分布式

    首先聊聊MySQL的数据分布式,目前最为常用的就是Replication(复制)技术.基于此技术外延开来有很多中架构,分类归结为如下:      1.树状结构(Master,Backup-Master ...

  4. Linux驱动技术(四) _异步通知技术【转】

    转自:https://www.cnblogs.com/xiaojiang1025/p/6376561.html 异步通知的全称是"信号驱动的异步IO",通过"信号&quo ...

  5. Python查找算法之 -- 列表查找和二分查找

    一.列表查找:从列表中查找指定元素 输入:列表.待查找元素 输出:元素下标或未查找到元素 二.列表查找方式 顺序查找 : 从列表的第一个元素开始遍历,知道找到为止.时间复杂度O(n) 二分查找 :从有 ...

  6. jquery-css处理

    jquery css处理,包括CSS,位置,尺寸等 一:CSS 使用 说明 例子 css(name|pro|[,val|fn]) 访问匹配元素的样式属性 $("p").css(&q ...

  7. Python_oldboy_自动化运维之路_面向对象(十)

    面向对象编程 OOP编程是利用“类”和“对象”来创建各种模型来实现对真实世界的描述,使用面向对象编程的原因一方面是因为它可以使程序的维护和扩展变得更简单,并且可以大大提高程序开发效率 ,另外,基于面向 ...

  8. HTTPS-加密SSL证书

    从第一部分HTTP工作原理中,我们可以了解到HTTPS核心的一个部分是数据传输之前的握手,握手过程中确定了数据加密的密码.在握手过程中,网站会向浏览器发送SSL证书,SSL证书和我们日常用的身份证类似 ...

  9. SqlServer 递归查询树

    递归关于进行树形结构的查询: 一:简单的树形结构代码. -- with一个临时表(括号中是你要查询的列名) with temp(ID,PID,Name,curLevel) as ( --1:初始查询( ...

  10. 【深入Struts2】获取ServletAPI的三种方式

    一:获取servletAPI的三种方法 在传统的Web开发中,经常会用到Servlet API中的HttpServletRequest.HttpSession和ServletContext.Strut ...