Hi Syariful,

The problem with controlling RC servos is that they require a continuous pulse stream. At least long enough for the servo to move from its current position to the new position.

Also, PULSOUT works by toggling the output pin twice, so the initial logic state of the output pin determins the polarity of the pulse.

For a high-going pulse, you would first need to clear the output pin. Then PULSOUT will toggle the pin twice providing a logic 1 polarity pulse.

Issuing a single PULSOUT command will probably not provide the result you're expecting. You need a loop that will continue the pulse stream for at least the time period it's going to take to move the servo horn to the position you need.

We have several servo control examples in our Micro-Bot robot projects section you might find helpful.

http://www.rentron.com/Micro-Bot/index.htm

For your particular application however, I would opt for a dedicated type servo controller like the Scott Edwards Mini SSC II or something similar.

With a dedicated servo controller, you won't need to run in a continuous loop just for servo control, and can free up processor time for monitoring other tasks.

Also, unless you maintain the pulse stream to each servo, the servo will relax. This will cause major problems in an RC airplane since force against each servo will move the servo, and cause loss of control. Maintaining the servo control pulses will keep servo motors fixed in position, and your RC airplane on a true course.