Stefan Bormann wrote: > 2. A regulation of the RPM of a small dc motor. I thought of using the > pwm feature of one ccp module to generate a pwm signal that > drives the motor (buffered with a transistor) and use the capture > feature of the other ccp module to measure the RPM with some kind of > optical sensor. I haven't worked on such things in twenty years, but I did a DC motor PWM control project in the `70's (using an 8080!). As I recall, the speed of a DC motor is approximately proportional to the voltage across its brushes. From ground, I placed the DC motor, a (lo-ohm hi-watt) resistor, a PNP darlington transistor (with a diode in parallel), and then +12V. I then placed an ADC across the motor as my feedback. Lower voltage = lower RPM = Increase the PW, etc. If approximate RPM feedback is good enough, then this might save you a few bucks. Hope it helps, Michael /**************************************************\ *** Capitalism is "Man exploiting man". *** *** With socialism it is the other way around! *** \**************************************************/