> > C30 produces pretty good assembly code. A simple FIR filter shouldn't > > have to be more complicated than rolling the x history and doing the > > MAC operations in standard C statements. If you need intense > > optimization to get it done efficiently then I would have to argue > > that you really need the dsPIC. The PIC24 running full speed should be > > able to do a LOT of FIR MACs per second, all without any special DSP > > instructions. > > > > I have derived and written FIR and IIR code if you need professional > > level help. >=20 > I know I *can* do it- I was just hoping someone had already done it, test= ed it, and > shared the code. A dsPIC is definitely a better choice, but sometimes you= just have > to play the cards you're dealt... the data I want to filter is pretty slo= w- only > coming in at about 8Hz, and I think I'll put the corner of the low-pass <= =3D 1Hz. > Eventually, it will need to be optimized for low power (low cycle count),= but I'm > really trying to do a proof of concept now. This PIC24 is doing plenty of= other > stuff, I'm trying to wedge some additional functionality in there. Look in the libraries available for the PIC32, IIRC there are IIR and FIR f= ilters there, and should have source code. --=20 Scanned by iCritical. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .