Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The goal of this project is to implement a basic two-step verification system in

ID: 3869030 • Letter: T

Question

The goal of this project is to implement a basic two-step verification system in C code on the MSP-EXP430G2 Launchpad.

The code should be able to work in either the Energia or CCS Cloud IDE

Project description below:

Introduction: The microcontroller will simulate a two-step verification system. In the real word, in the first step of the verification, the data being checked is a biometric data such as a finger print, or an ID card, and the second step of the verification is usually a password. In this project both steps will be 3 digit passwords. A general purpose switch (we wll c it KB), reset switch and two LEDs (RED and GREEN) have been provided on-board for quick development. KB will simulate a one-key keyboard for entering the passwords. Reset button will be used for resetting the errors and resetting the red led when it shows a failure. NOTE: The MSP-EXP430G2 LaunchPad is not supported by the Mac or Linux versions of the Code Composer Studio™ Integrated Development Environment. What you need to have: Hardware: The MSP-EXP430G2 LaunchPad, (It is include a usb cable for downloading and debugging the program) Software: Any IDE you're comfortable with (use (such as Energia, CCS Cloud, and Code Composer Studio™), check out this link) Document: There are many online resources available in ti.com (Texas Instrument Website). The user guide of MSP-EXP430G2 LaunchPad will be useful for any information about the microcontroller . The PBs and LEDs should be use d in the program as follows: RED GREEN STATUS LED LED Ready to use Blinking BlinkingDevice is ready (both LEDs blink OFF ON simultaneouslv First password passed Both Passwords passed OFF Password failed. Blinking Firs password is correct ON OFF Both passwords are correct The first password is incorrect (you need to reset the RED LED KB Reset Comments Entering a digit n (0-9) Press n to enter 3, press the the button times for n to enter the next digit, wait for one sccond. After the first three digits of the password are entered, If the password is correct just the GREEN LED should blink If the password is wrong, the RED LED should light on. o o Reset errors Press one RED LED should be off time Back to the beginning of the Passwords: Two passwords should be saved in the microcontroller as follow: . Password: 123 Password 2: 321

Explanation / Answer

Answer:

#define MAXIMUM_ALLOWED 128
#define GREEN_LIGHT_ON 1
#define GREEN_LIGHT_OFF 0
do {
PORT_TARGET_LIGHT = GREEN_LIGHT_ON;
delay();
PORT_TARGET_LIGHT = GREEN_LIGHT_OFF;
delay();
} while (TARGET_PORT<= MAXIMUM_ALLOWED);
do {
PORT_TARGET_LIGHT = RED_LIGHT_ON;
delay();
PORT_TARGET_LIGHT = RED_LIGHT_OFF;
delay();
} while (TARGET_PORT<= MAXIMUM_ALLOWED);
do {
PORT_TARGET_LIGHT = BLUE_LIGHT_ON;
delay();
PORT_TARGET_LIGHT = BLUE_LIGHT_OFF;
delay();
} while (TARGET_PORT<= MAXIMUM_ALLOWED);

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote