waitcnt issues with p2
David Betz
Posts: 14,516
I'm having some trouble getting waitcnt working on the Propeller 2. GCC generates the following code where r7 contains the amount of time I want to wait and r5 contains zero:
70: 0d0cfc0c getcnt 18 <r6> wr 74: 070cbc80 add 18 <r6>, 1c <r7> 78: 050cbcfc waitcnt 18 <r6>, 14 <r5>The problem is, this code seems to wait forever. Any idea why this might be happening?
Comments
It looks like that would make the match be on CNT[63:32} instead of CNT[31:0].
C.W.