> I'm trying to find more like well-commented asm code, since my asm > knowledge is not quite good enough to implement this by myself from > zero. > Anyway, I have to read more about timers. Hi KPL, what frequency are you trying to measure, and which PIC you fancy using. It would help us to help you if you tell us. As Gerhard pointed out, there are different methods for different ranges. If you go in through CKI (counting with hardware), tens of MHz is possible. Lower frequencies can be done in software, eg timers -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist