INB Bug solved
ozpropdev
Posts: 2,792
in Propeller 2
Hi All
I think I have found the answer to the INB bug mentioned (and lost) in another thread.
It appears that the issue is caused by Pnut still transmitting after the P2 has been released after a download.
This seems to explain that inserting a delay before using INB fixed the problem.
The code below waits for 62 high to low transitions and falls through.
I think I have found the answer to the INB bug mentioned (and lost) in another thread.
It appears that the issue is caused by Pnut still transmitting after the P2 has been released after a download.
This seems to explain that inserting a delay before using INB fixed the problem.
The code below waits for 62 high to low transitions and falls through.
con rx_pin = 63 dat orgh 0 org wait4low testb inb,#rx_pin wz if_nz jmp wait4low wait4hi testb inb,#rx_pin wz if_z jmp wait4hi djnz cx,wait4low mov dirb,#$f '62 or more hi2lo transitions mov outb,#$f 'gets us here me jmp @me cx long 62Now, back to P2 coding/testing.
Comments
The new syntax changes have broken my code again, so focus has shifted. (Groundhog Day!)