In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Paul, Thanks, I got it working. In case your wondering it basically a reciprocal frequency counter. Setup counter 1 for capture/compare mode. Setup counter 2 for external event mode. Set R1 of counter 2 to 1000 (or whatever value). Set counter 2 to generate an interrupt when it reaches R1. In the interrupt routine pulse counter 1 capture pin. Read the count captured from counter 1 capture register. Works like a charm. Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=108735#m108766 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)