I am guessing you wrote you "C" program using floating point. If you carefully analyze the value ranges in the code and rewrite it using fixed point math you might be able to save a lot of code space without rewriting in assembly language. Bob Ammerman RAm Systems ----- Original Message ----- From: "Pavel Koxensk}" To: Sent: Wednesday, February 04, 2004 5:26 PM Subject: PID in smaller PIC ?? > Hello, > > aynone tried to implement the PID regulation of DC motor in some small > PIC ? Namely, I am thinking about PIC16F88. It has everything I need > (PWM, UART etc.), but only 2KB of code space. > I already wrote a nice 2 motors PID regulator for 18F452 (approx. 4KB of > code) and I know that there is Microchip AppNote about implementation of > PID regulator for 16F877 (slightly more than 3KB of code). > Both programs are in C language. > > Anybody tried to implement PID algorithm in assembler ? > > I do not need a super sophisticated servo controller. I just need to > control the speed (based on feedback pulses from simple, not quadrature, > encoder) and I need to be able to command the controller "move one > meter" (speed-up, go, slow-down) or similar. > > Thank you for any informations. > > > Best regards > > PavelK > > -- > http://www.piclist.com#nomail Going offline? Don't AutoReply us! > email listserv@mitvma.mit.edu with SET PICList DIGEST in the body > -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body