> > I must measure the input signal with 1 5s precision. > > Doing that on a PIC while simultaneously doing other things is no > freshmans game. Consider > - dedicated hardware > - a dedicated PIC > - maybe even a (dedicated) Ubicom SX > > NB a 16F runs at 5 MIPS @ 20 MHz maximum. An 18F runs at 10 MIPS at 40 > MHz (10 MHz xtal with PLL * 4) maximum. An SX runs at 75 MIPS @ 75 MHz > maximum (or you might still be able to find 100 MHz SXes). > > A SX is a clone of the older 12-bit PICs, but for simple timing tasks it > will run circles around any PIC. And any AVR. And probably most other > cheap microcontrollers. And maybe even some DSPs. Umm, I guess you are forgetting the CCP, at a 20MHz PIC clock it has a resolution of 0.20us. A 16F877 would be fine for that sort of task. TTYL -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads