Re: Period Wave Modulation

Der Herr Hofrat <[email protected]> Fri, 4 Feb 2005 06:35:54 +0100 (CET)
Newsgroups gmane.linux.real-time.rtlinux.general
Message-ID <[email protected]>
> 
> 
> Jesse Vogt wrote:
> > Hello,
> > 
> > I am using RTLinux and a CIO-DIO48H digital I/O board to control
> > several servo motors. I need to create a 10 kHz  wave with a variable
> > duty cycle.  I am able to generate a solid 10 kHz wave using periodic
> > thread but that only allows a 50% duty cycle.  Any ideas?
> 
> Change the periodic rate every interrupt.
>

well you don't want to use periodic mode then - use one-shot mode...
 
> If your rtl application always needs to be able to respond to other 
> events such as hardware interrupts, then I would do something like the 
> following:
>
in examples/pwm you can find some simple pwm test codes that also are good enough to
measure the real system jitter - on a halfway recent X86 10kHz should be no big deal.

hofrat 
_______________________________________________
Rtl mailing list
[email protected]
http://www2.fsmlabs.com/mailman/listinfo/rtl