Code for msp430g2553 to measure the frequency of the electrical signal.