Osama ALASSIRY wrote: > > What would the easiest way to control the speed of a small motor (from a > R/C car) using a PIC16c84? > I tried using PWM but it's too complicated (and I need the timer for > something else) > > thanks, > _____________________________________________________ > Osama ALASSIRY osama@qatar.net.qa osama@alassiry.com > http://www.alassiry.com Without tying up lots of I/O pins or adding more chips, you are stuck with PWM. PWM can be done programmatically as well as in PWM hardware. Depends on what else you have going on in the PIC. If you are willing to add chips, you can use a serial interfaced DAC with a driver after it. This will use at least two I/O pins. Gus Calabrese -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ WFT Electronics wft@frii.com http://www.frii.com/~wft Gus Calabrese 303 321-1119......voicemail Lola Montes 1799 Uinta Street Denver, CO 80220 EMERGENCY: 791 High Street Estes Park, CO 80517 if no success with wft@frii.com, try .... wft@bigfoot.com