msp430 frequency counter