changeset 12:68ecd42850d3

Start shifting when TAP transiting from CAP to SHIFT states. - It assumes last bit is shifted when transiting from SHIFT states to EXIT1.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 24 Feb 2009 18:53:16 +0800
parents 520f45b72ba7
children 1ea479d26fce
files py_avrjtag/jtagdev.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/py_avrjtag/jtagdev.py	Tue Feb 24 14:33:23 2009 +0800
+++ b/py_avrjtag/jtagdev.py	Tue Feb 24 18:53:16 2009 +0800
@@ -85,10 +85,10 @@
             return
         
         if self.state == self.ST_IDLE:
-            ptn, ptn_nbits = tms_ptns.TMS_SHIFT_IR
+            ptn, ptn_nbits = tms_ptns.TMS_CAP_IR
             self._send_tms(ptn, ptn_nbits)
-        elif self.state == self.ST_EXIT1_DR:
-            ptn, ptn_nbits = tms_ptns.TMS_EXIT1_DR_2_SHIFT_IR
+        elif self.state == self.ST_SHIFT__DR:
+            ptn, ptn_nbits = tms_ptns.TMS_SHIFT_DR_2_CAP_IR
             self._send_tms(ptn, ptn_nbits)
         else:
             raise RuntimeError, 'Transite to shift IR state from invalid state'
@@ -100,10 +100,10 @@
             return
         
         if self.state == self.ST_IDLE:
-            ptn, ptn_nbits = tms_ptns.TMS_SHIFT_DR
+            ptn, ptn_nbits = tms_ptns.TMS_CAP_DR
             self._send_tms(ptn, ptn_nbits)
-        elif self.state == self.ST_EXIT1_IR:
-            ptn, ptn_nbits = tms_ptns.TMS_EXIT1_IR_2_SHIFT_DR
+        elif self.state == self.ST_SHIFT_IR:
+            ptn, ptn_nbits = tms_ptns.TMS_SHIFT_IR_2_CAP_DR
             self._send_tms(ptn, ptn_nbits)
         else:
             raise RuntimeError, 'Transite to shift DR state from invalid state'