Skip to content

Orisadek/DigitalComputerLab2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

DigitalComputerLab2

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.

    image
  • 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.

    image
  • 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

    image

Sleep Mode (state0):

state0 is in sleep mode (LPM0).

Real-Time assignment:

add state4 as follows,

  • PB3 (state4): print on the LCD the first and last names in a delay of one sec.

FSM:

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages