Skip to content

Commit

Permalink
Ease the timing constrainst by raising TCK 1/4 cycle before sampling TDO
Browse files Browse the repository at this point in the history
  • Loading branch information
phdussud committed Feb 7, 2025
1 parent 50f3091 commit 0f4f005
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jtag.pio
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@
pull ; get length-1 and disregard previous OSR state
out x, 32 side 0 ; this moves the first 32 bits into X
loop:
out pins, 1 side 0 ; Stall here on empty (sideset proceeds even if instruction stalls, so we stall with SCK low
in pins, 1 side 1 [1]
out pins, 1 side 0 ; Stall here on empty (sideset proceeds even if instruction stalls, so we stall with TCK low
nop side 1 ; raise TCK
in pins, 1 side 1 ; sample TDO
jmp x-- loop side 0
push side 0 ; Force the last ISR bits to be pushed to the tx fifo
% c-sdk {
Expand Down

0 comments on commit 0f4f005

Please sign in to comment.