summaryrefslogtreecommitdiff
path: root/doc/manual/primer
diff options
context:
space:
mode:
authorJun Ma <sync.jma@gmail.com>2010-05-14 21:43:11 +0800
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-05-15 10:07:55 +0200
commitb8c54b362b395e50baf749366f6ec9e29fcba27e (patch)
tree8afaa6342ea2b88d0120f372ae1da7ee24ab65ee /doc/manual/primer
parent9597dcefaaf1282aa6721349e5b7472114b8bb54 (diff)
downloadopenocd_libswd-b8c54b362b395e50baf749366f6ec9e29fcba27e.tar.gz
openocd_libswd-b8c54b362b395e50baf749366f6ec9e29fcba27e.tar.bz2
openocd_libswd-b8c54b362b395e50baf749366f6ec9e29fcba27e.tar.xz
openocd_libswd-b8c54b362b395e50baf749366f6ec9e29fcba27e.zip
comments on doc/manual/primer/jtag.txt
1. fix some errors in jtag.txt(in my personal opinion, please review). 2. remove a broken link Signed-off-by: Jun Ma <sync.jma@gmail.com> Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'doc/manual/primer')
-rw-r--r--doc/manual/primer/jtag.txt16
1 files changed, 6 insertions, 10 deletions
diff --git a/doc/manual/primer/jtag.txt b/doc/manual/primer/jtag.txt
index 0c675282..997f53bf 100644
--- a/doc/manual/primer/jtag.txt
+++ b/doc/manual/primer/jtag.txt
@@ -29,7 +29,7 @@ TMS which will select different shift registers.
The first thing you need to do is reset the state machine, because when
you connect to a chip you do not know what state the controller is in,you need
-to clock TMS as 1, at least 7 times. This will put you into "Test Logic
+to clock TMS as 1, at least 5 times. This will put you into "Test Logic
Reset" State. Knowing this, you can, once reset, then track what each
transition on TMS will do, and hence know what state the JTAG state
machine is in.
@@ -45,9 +45,9 @@ instruction register.
For example, one of the data registers will be known as "bypass" this is
(usually) a single bit which has no function and is used to bypass the
-chip. Assume we have 3 identical chips, wired up like the picture
-and each has a 3 bit instruction register, and there are 2 known
-instructions (110 = bypass, 010 = some other function) if we want to use
+chip. Assume we have 3 identical chips, wired up like the picture(wikipedia)
+and each has a 3 bits instruction register, and there are 2 known
+instructions (110 = bypass, 010 = "some other function") if we want to use
"some other function", on the second chip in the line, and not change
the other chips we would do the following transitions.
@@ -66,13 +66,13 @@ each chip [110] [010] [110]
The order is reversed, because we shift out the least significant bit
first. Then we transition TMS:
- 1 1 1 1 0 0
+ 1 1 1 0 0
which puts us in the "Shift DR state".
Now when we clock data onto TDI (again while holding TMS to 0) , the
data shifts through the data registers, and because of the instruction
-registers we selected (some other function has 8 bits in its data
+registers we selected ("some other function" has 8 bits in its data
register), our total data register in the chain looks like this:
0 00000000 0
@@ -107,10 +107,6 @@ gets interesting. But in and of itself, JTAG is actually very simple.
@section primerjtag More Reading
-The following link goes to an HTML (or PDF) introduction to JTAG,
-written by one of the original members of the JTAG committee: @par
-http://www.asset-intertech.com/products/boundscan.htm
-
A separate primer contains information about @subpage primerjtagbs for
developers that want to extend OpenOCD for such purposes.