Paul Bjork wrote... >To any digital signal processor types out there: > >I'm replacing my PID module with a more general IIR filter-based >module for a digital control system. The algorithm and code in AN616 >seems usable if a little sparse on documentation. There seems to be a >discrepency in the definitions for where the LSB's and MSB's are >stored in the IIR code module, IIRfilt.c. > I'm not a DSP type, but I can comment on 16 Bit numbers and ApNotes. I always put my 16 Bit numbers in "Intel" format (Least Significant Byte at the First (Lowest) Address, Most Significant Byte at the Next (Least Significant Byte Address + 1) Address) as opposed to the "Motorola" format (Most Significant Byte at the First address, Least Significant Byte at the Next Address). For just this reason. I realize it makes the numbers a bit harder to read when you're looking at a dump of the file registers, but I've got too much history with Intel Processors to change. I've found the same problem (as well as a few others) in the ApNotes. If I'm using the ApNotes for reference, I always read thru them line by line and make sure that I understand them inside and out before using them. I have found that you have to be very careful when you use sections of them. I'm not saying their of poor quality and are unusable, just that some errors have crept in and the code, which is specified for certain PICs, may not be usuable in others because of different register addresses and functions. Myke Do you ever feel like an XT Clone caught in the Pentium Pro Zone?