how to control servo with interrupt mode

Based on DMP's Vortex processor / SoC this board is a full computer capable of running a standard Windows and Linux installation on the backpack of your robot.
4 postsPage 1 of 1
4 postsPage 1 of 1

how to control servo with interrupt mode

Post by foe.pexal » Thu Sep 30, 2010 5:54 pm

Post by foe.pexal
Thu Sep 30, 2010 5:54 pm

Hi,
Could you give me sample code how to control servo with interrupt mode? because I need fast respons of servo.
Because if I use tutorial in http://www.roboard.com/download_ml.htm is not enough.

help me please. thanks.
Hi,
Could you give me sample code how to control servo with interrupt mode? because I need fast respons of servo.
Because if I use tutorial in http://www.roboard.com/download_ml.htm is not enough.

help me please. thanks.
foe.pexal offline
Robot Builder
Robot Builder
Posts: 12
Joined: Thu Sep 30, 2010 9:06 am

Re: how to control servo with interrupt mode

Post by roboard » Mon Oct 04, 2010 6:58 am

Post by roboard
Mon Oct 04, 2010 6:58 am

foe.pexal wrote:Could you give me sample code how to control servo with interrupt mode?


Hi,

currently, the RC Servo lib of RoBoIO doesn't support interrupt control. If you need PWM interrupt capability, you can employ the PWM lib for this purpose (see pwm.h & pwmdx.h for PWM lib API).

Note that for WinXP & Linux, to use the PWM interrupt, you will need to write an XP/Linux driver for handling the interrupt events.

:)
foe.pexal wrote:Could you give me sample code how to control servo with interrupt mode?


Hi,

currently, the RC Servo lib of RoBoIO doesn't support interrupt control. If you need PWM interrupt capability, you can employ the PWM lib for this purpose (see pwm.h & pwmdx.h for PWM lib API).

Note that for WinXP & Linux, to use the PWM interrupt, you will need to write an XP/Linux driver for handling the interrupt events.

:)
roboard offline
Savvy Roboteer
Savvy Roboteer
Posts: 302
Joined: Fri Jul 03, 2009 4:44 am

Post by foe.pexal » Tue Oct 05, 2010 8:19 am

Post by foe.pexal
Tue Oct 05, 2010 8:19 am

ok, thanks
ok, thanks
foe.pexal offline
Robot Builder
Robot Builder
Posts: 12
Joined: Thu Sep 30, 2010 9:06 am

Post by PaulL » Sun Oct 10, 2010 12:43 pm

Post by PaulL
Sun Oct 10, 2010 12:43 pm

Just a comment:

With the speed of the Roboard, you can change the PWM output faster than the servo can respond to the changes WITHOUT using interrupts. :) The only reason I can think of that you would want to use interrupts on PWM is if you are using "counting mode" on the PWM outputs and want to signal when done. It's easier to use "continuous mode" and alter your PWM as needed than it would be to write the kernel-mode driver.
Just a comment:

With the speed of the Roboard, you can change the PWM output faster than the servo can respond to the changes WITHOUT using interrupts. :) The only reason I can think of that you would want to use interrupts on PWM is if you are using "counting mode" on the PWM outputs and want to signal when done. It's easier to use "continuous mode" and alter your PWM as needed than it would be to write the kernel-mode driver.
PaulL offline
Savvy Roboteer
Savvy Roboteer
Posts: 423
Joined: Sat Sep 15, 2007 12:52 am


4 postsPage 1 of 1
4 postsPage 1 of 1