[En-Nut-Discussion] RE: Control function to drive a RC servo

ptlinux ptlinux at optushome.com.au
Mon Jun 9 01:52:16 CEST 2003


Harald,

Thanks for point me to the API for NutSleep... Now I understand the
limitation of it.

So the min time in ms is for NutSleep is 62.5ms.. therefore no way the
NutSleep(2) ms is going to work.

I've read the Post on
http://www.egnite.de/pipermail/en-nut-discussion/2003-April/000690.html.
Am I safe to assume that if I don't set Port E Pin 5 as out. .then I
should be able to pick say Pin 1 as my PWM digital out?!

I have been reading the timer example. So what I need to do to generate
the PWM is to create a TimerThread say for 2ms and sleep it for 20ms?

Do you have some example on how to achieve it? Do I still uses outp()
for driving output pin high / low?!

Regards,

PT












More information about the En-Nut-Discussion mailing list