Digital pins are either FlexPWM pins or Quadtimer pins. I have been making smart usage of the Flexpwm pins for executing PFM and signal edge feedback. However, I believe I have a task that is well suited to use of the Quadtimer pins.
I need two pins to deliver 50% duty cycle and be pi/4 out of phase...perfect quadrature. It seems like quadtimer pins are meant both for quadrature encoding and decoding, but I lack a good overview of generalized use cases and functions available. Is there a good link to features available and an overview of what problems those features solve?
At present I just need to set two pins up to be out of phase by pi/4 at a particular frequency. I can do this with an IntervalTimer object and twiddle the pins on an interrupt, but I suspect there's easy hardware support for this that doesn't generate interrupt traffic. I'd appreciate any code fragments to set this up.
I need two pins to deliver 50% duty cycle and be pi/4 out of phase...perfect quadrature. It seems like quadtimer pins are meant both for quadrature encoding and decoding, but I lack a good overview of generalized use cases and functions available. Is there a good link to features available and an overview of what problems those features solve?
At present I just need to set two pins up to be out of phase by pi/4 at a particular frequency. I can do this with an IntervalTimer object and twiddle the pins on an interrupt, but I suspect there's easy hardware support for this that doesn't generate interrupt traffic. I'd appreciate any code fragments to set this up.