--- Olin Lathrop wrote: > > > You should be able to do better than that for a > simple PI controller. > > One of my projects runs two layered PID controllers > in a 16F876. The > lower one adjusts the PWM output to a DC motor to > control its position, > and the upper one adjusts the motor position, which > is connected to a > throttle of a gasoline engine, to control the > engine's speed based on some > input parameters. Both are full PID with a few > other features added, and > both use software 24 bit floating point. A new > computation is done every > 10mS, although the worst case computation time is > about 7mS. Well, should improve my algorithms... I think I will try Roman4s idea first... Thanks for your advices... * Carlos * _________________________________________________________ Do You Yahoo!? Informacisn de Estados Unidos y Amirica Latina, en Yahoo! Noticias. Vismtanos en http://noticias.espanol.yahoo.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads