Hi,
I'm looking for the best method to play endless complex sequences (seq0 -> seq1 -> seq0 -> seq1 -> ...)
Method 1:
Set LOOPSDONE_SEQSTART0 in SHORTS register which will trigger the task SEQSTART[0] when LOOPDONE event is raised. This seems to work fine but when I look at the datasheet of the nRF52833, I see that LOOPDONE event is raised one PWM clock cycle after last SEQEND[1] event is raise. The task SEQSTART[0] is triggered also one PWM clock cycle later. My understanding is that there is two PWM clock cycles playing the last loaded duty cycle before the new sequence starts. Am I right?
Method 2:
Set the LOOP register to its highest value (65535) and update it every now and then (before it gets to 0) with the highest value. I haven't tested this method yet so would this work?
Do you see any better method to do it?
Thanks for you help!
Hugo