[quote user="Will Kleinberg"]What's the significance of 20000?[/quote] If you multiply it by 400, result is 8000000 or 8MHz (hint: read the comment). [quote user="Will Kleinberg"]Why does it need to wait for 400 positive edges?[/quote] Who knows :) Perhaps only original author. Honestly this code is not the best way to implement frequency counter. You shall check this 43oh project and also search msp430 forum here for keywords.
↧