On 5/20/06, Philip Pemberton wrote: > I'm probably going to use straight linear control along the lines of "Vout > just jumped up by 1% of full scale, so kick the duty cycle down by the same > amount" for the first-cut of the code, but I'd like to use PID later on (it's > reputed to be more stable than linear control). > > At this point, any info would be much appreciated. > Microchip AN258 describes the PID control on the Vpp generation of PICkit 1. It is the same for PICkit 2. Both firmware source and host application source of PICkit 1 and PICkit 2 can be downloaded from Microchip. http://ww1.microchip.com/downloads/en/AppNotes/00258a.pdf http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1960 Regards, Xiaofan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist