Skip to content
This repository was archived by the owner on Mar 1, 2021. It is now read-only.
This repository was archived by the owner on Mar 1, 2021. It is now read-only.

minor(?) issues (inactive code) #2

@konimaru

Description

@konimaru

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 ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions