Re: [beagleboard] Re: Nested loops with the PRU LOOP instruction?

2021-02-08 Thread 'Mark Lazarewicz' via BeagleBoard
Non interrupable can mean atomic. Did you see the disclaimer about PRU version and instruction set?I agree with Dennis Code it up educate us.  Unless your offering prizes😀😁🤣😂 Sent from Yahoo Mail on Android On Mon, Feb 8, 2021 at 2:36 PM, robert.sty...@gmail.com wrote: On the Z80, the co

[beagleboard] Re: Nested loops with the PRU LOOP instruction?

2021-02-08 Thread robert.sty...@gmail.com
On the Z80, the counter register B was only 8 bits, you could loop 1 to 256 times with DJNZ. The outer loop was often unrolled, that is the inner loop was repeated, say, 3 times.. Say you wanted to loop 700 times = 256 + 256 +188; load the B register with 188 and jump to the first inner loop

[beagleboard] Re: Nested loops with the PRU LOOP instruction?

2021-02-08 Thread Dennis Lee Bieber
On Sun, 7 Feb 2021 16:29:22 -0800 (PST), in gmane.comp.hardware.beagleboard.user Tom Stepleton wrote: > >you have a maximum of 65535 repetitions. Very good. What happens though if >you want three times that? Can you do > > LOOP Exit, 3 > LDI r10.w0, 0x > LOOP Exit, r10.w0 Off