I want create difference phase between two pulse on GPIO 7 and GPIO 8 as in code but wave display on piscope only have 5us. I tried any way but when difference phase less 5 us is it alway display is 5us as in below figure . The main reason that, I have doubts about ability generate with high freq of wave function in pigpio library. So I tried generate a pulse from 40khz-100khz by using set_dc(GPIO,dc) function in wavePWM1 example is that when freq generated larger 70khzz is pulse generated have wrong frequency as in figure :https://i.sstatic.net/FAlkL.jpg. please explain about this problem help me. import time import pigpio import wavePWM
GPIO=[7, 8]
pi = pigpio.pi()
if not pi.connected:
exit(0)
"""
This code demonstrates four different methods of setting
the pulse start and length.
"""
pwm = wavePWM.PWM(pi) # Use default frequency
pwm.set_frequency(40000)
cl = pwm.get_cycle_length()
# Method 2.
pwm.set_pulse_start_and_length_in_micros(7, 10, 12.5)
pwm.set_pulse_start_and_length_in_micros(8, 14, 12.5)
pwm.update() # Apply all the changes.
time.sleep(20)
for g in GPIO:
pwm.set_pulse_length_in_micros(g, 0)
pwm.update()
time.sleep(1)
pwm.cancel()
pi.stop()