Propeddle
Propeddle copied to clipboard
minor(?) issues (inactive code)
PropeddleRAM.spin
{149} tjz len, tabledone
{213} jmp Loop
PropeddleTrace.spin
'tp=12
mov clock, CNT
mov newaddr, INA
'tp=20
and data, mask_DATA
or data, addr
'tp=28
if_nc wrlong data, g_TraceBuffer
'tp=36..51
add g_TraceBuffer, #4 wc
'tp=40..55
mov addr, newaddr
shl addr, #8
'tp=48..63
add clock,#61 ' <-- wait until 13+61 cycles after start of Phi1
waitcnt clock, #0 ' <-- min wait time would result in tp=73
'tp=74
Your waitcnt setup samples cnt first which means the adjustment (add) is of the type 9{14}+N:
9+N = 61
N = 52
delay = 14+N = 66
IOW, you are at tp=78 for the insn following waitcnt. This may not be critical though ...