At 04:56 PM 10/11/02 -0700, you wrote: >what do you mean by '-100%'? I thought the duty cycle was 0% to 100%. Sounds like he's doing reverse on an ESC. Think H-bridge with PWM on + side going to one bottom of the H, and on the - side going to the other side of the H bottom. The easy way is to use a table lookup. Andy >Thanks, >Doug Hewett >Software engineer >StarTrac, Inc. > > >-----Original Message----- >From: ELLIOTT,TONY (HP-Roseville,ex1) [mailto:tony_elliott@HP.COM] >Sent: Friday, October 11, 2002 4:28 PM >To: PICLIST@MITVMA.MIT.EDU >Subject: [PIC]:Exponential function on PWM output > > >I need to create an exponential function, programmable between -100% to 0% >to +100% in steps of 12.5%, on a PWM output. The driver is a non-exponential >PWM signal input that the output should track either directly or >exponentially depending on value programmed. Pulse width variation is 0.75ms >to 2.25ms, period = 20ms. I am new to programming PIC's and would be >grateful for help. Have searched archives and could not find applicable >material. Thanks > > >Tony Elliott >Engineering Program Manager >PC Customization Services >Hewlett-Packard Company > >-- >http://www.piclist.com hint: The PICList is archived three different >ways. See http://www.piclist.com/#archives for details. > >-- >http://www.piclist.com hint: The PICList is archived three different >ways. See http://www.piclist.com/#archives for details. > > ------------------------------------------------------------------- Race Boats - andy@RC-Hydros.com http://www.RC-Hydros.com Airplanes - andy@FlyingHobbies.com http://www.FlyingHobbies.com Electronics - andy@MontanaDesign.com http://www.MontanaDesign.com ------------------------------------------------------------------- -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.