This project implements a system that includes an MSP430 microcontroller and is based on Simple FSM. With each button press, we enter a state:
-
PB0 (state1): create a frequency counter to measure fin which is an outside clock from the scope and enter to P2.4. the value we found we show on the LCD dynamically and without refreshing the LCD, the frequency will be between 20Hz to 20kHz.
-
PB1 (state2): create a clock that counts until one minute (in space of one sec) and then back to zero sec and shows on the LCD.
-
PB2 (state3): Create a Tones generator from an outside signal vin that is created in the scope, using the ADC we transform vin to fout. the frequency we get is the tone. The actual Tones come out of the Buzzer we connect to P2.2
state0 is in sleep mode (LPM0).
add state4 as follows,
- PB3 (state4): print on the LCD the first and last names in a delay of one sec.
FSM: