Re: [Xenomai-help] PWM generation with GPIO

2011-09-09 Thread Gilles Chanteperdrix
On 09/09/2011 05:33 AM, Bob Feretich wrote: > The advantage of using a hardware PWM timer (like OMAP3 GPTimer8-11) is > that there is no interrupt load on the system. > (The PWM signals are completely generated by the hardware.) And you get no jitter. --

Re: [Xenomai-help] PWM generation with GPIO

2011-09-08 Thread Bob Feretich
The advantage of using a hardware PWM timer (like OMAP3 GPTimer8-11) is that there is no interrupt load on the system. (The PWM signals are completely generated by the hardware.) PWM outputs controlled by interrupts require one interrupt for each edge transition of the output signal. The disa

Re: [Xenomai-help] PWM generation with GPIO

2011-09-08 Thread Philippe Gerum
On Thu, 2011-09-08 at 12:06 +0200, Gilles Chanteperdrix wrote: > On 09/08/2011 11:30 AM, Andrey Nechypurenko wrote: > >> If I understand correctly, the difference is that Bob proposes you to > >> dedicate a hardware timer to the PWM, whereas I propose you to use the > >> software timers, which ulti

Re: [Xenomai-help] PWM generation with GPIO

2011-09-08 Thread Gilles Chanteperdrix
On 09/08/2011 11:30 AM, Andrey Nechypurenko wrote: >> If I understand correctly, the difference is that Bob proposes you to >> dedicate a hardware timer to the PWM, whereas I propose you to use the >> software timers, which ultimately, also depend on a dmtimer. I would not >> expect big differences

Re: [Xenomai-help] PWM generation with GPIO

2011-09-08 Thread Gilles Chanteperdrix
On 09/08/2011 10:21 AM, Andrey Nechypurenko wrote: >> So I wrote >> a RTDM driver to use the three that were pinned out, and used real time >> limit and overflow interrupts to to wiggle a GPIO for the fourth PWM output. > > It seams to me that you are using different implementation approach > the

Re: [Xenomai-help] PWM generation with GPIO

2011-09-08 Thread Andrey Nechypurenko
On 8 September 2011 04:03, Bob Feretich wrote: > Is there a reason that your not using the BeagleBoard PWM Timer hardware? I do use two of them. Attempt to generate PWM using GPIO is just for me to learn about real-time performance I can achieve with Xenomai. My hope that later, in addition to PW

Re: [Xenomai-help] PWM generation with GPIO

2011-09-07 Thread Bob Feretich
ndrey Nechypurenko Subject: [Xenomai-help] PWM generation with GPIO To: Xenomai help Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Hi Folks, Recently I was trying to control standard servo motor with PWMs. The system is 600MHz BeagleBoard xM (ARM) running Linux kernel version 2.6.35.9

Re: [Xenomai-help] PWM generation with GPIO

2011-09-06 Thread Gilles Chanteperdrix
On 09/05/2011 10:14 PM, Andrey Nechypurenko wrote: >> The best way to know if what you observe is due to the natural jitter or >> to some other issue is to measure the jitter at the point where you >> think it is. > > Since the generation loop is so simple I was assuming (maybe too > naive) that t

Re: [Xenomai-help] PWM generation with GPIO

2011-09-05 Thread Andrey Nechypurenko
> The best way to know if what you observe is due to the natural jitter or > to some other issue is to measure the jitter at the point where you > think it is. Since the generation loop is so simple I was assuming (maybe too naive) that this is exactly where it starts to deviate from the ideal tim

Re: [Xenomai-help] PWM generation with GPIO

2011-09-05 Thread Gilles Chanteperdrix
On 09/05/2011 09:53 PM, Andrey Nechypurenko wrote: > Hi Folks, > > Recently I was trying to control standard servo motor with PWMs. The > system is 600MHz BeagleBoard xM (ARM) running Linux kernel version > 2.6.35.9 with Xenomai version 2.5.6. > > Pulses needs to be generated with 20milliseconds

[Xenomai-help] PWM generation with GPIO

2011-09-05 Thread Andrey Nechypurenko
Hi Folks, Recently I was trying to control standard servo motor with PWMs. The system is 600MHz BeagleBoard xM (ARM) running Linux kernel version 2.6.35.9 with Xenomai version 2.5.6. Pulses needs to be generated with 20milliseconds interval (50Hz). Pulse width defines servo position and is typica