At 11:01 25/09/98 +0200, you wrote: >I program with MPLAB. It has no integrated 'PWM' function. I have to >program a PWM to control the speed of a DC-Motor by using the 16C84 timer. >It seems me difficult to program two independent PWM in the same PIC without >dummy software loop... PWM program, with ratio modification on the fly can be found in UMPSDEMO\EXAMPLES\PIC16C84 directory. It includes also a UMPS project that allow to verify PWM is runing well. UMPS can be downloaded at: www.vmdesign.com Regards, Philippe. +----------------------------------------------------+ | Virtual Micro Design | | | | UMPS: Ultra-fast simulator, assembler/disassembler | | | | E-Mail: p.techer@vmdesign.com | | URL: http://www.vmdesign.com | +----------------------------------------------------+