I can see the pwm on the scope, just fine
Code: Select all
self.GPIO.setup(self.PWMPIN,self.GPIO.OUT) self.mypwm=GPIO.PWM(self.PWMPIN,self.initpwmfreq) self.mypwm.start(0)
Now I also need the rpi to do something each time the pwm output pin goes hi. I can't sit & waste time monitoring the pin due to other programming items needing to run, & I also need a somewhat fast response (before that next pwm hi pulse occurs...maybe a 1-2ms)
Can some sort of interrupt be set up to monitor this pwm output & react when it pulses hi? For example, maybe I want to read & print something each time my pwm signal goes high, then go back to what I was doing.