Skip to content

An assembly program that asks the user to input a password and grants or denies access based on the correctness of the password and the time taken to input it.

Notifications You must be signed in to change notification settings

Helena-Lynd/timer-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

timer-driver

An assembly program that asks the user to input a password and grants or denies access based on the password input and the time taken to input it. The FRDM-KL05Z board from NXP is used, including the peripheral timer module.

ProgramResults

Description

This program creates a timer driver which increments a count every 0.01 second. This timer starts after the prompt for the password is printed, and stops when the user has input a value. After the user has entered a password, the program checks if the password matches the stored password, and checks the length of time the user took to enter the password. If the password is incorrect or the time taken to input was too long, access is denied.

Getting Started

Dependencies

  • A method to compile the source files into an executable (e.g. Keil uVision5)
  • KL05 board connected to a terminal (e.g. PuTTY)

Installing

  • Download the source files provided to your directory of choice
git clone git@github.com:Helena-Lynd/timer-driver.git
  • Compile the source files into an executable
    • If using an IDE, use the "Build" or "Rebuild" feature

Executing

  • Load the executable to your boards flash memory
    • If using an IDE, use the "Download" feature
  • Run the program with a connected terminal window open
    • The board has a button that can be pressed to initiate the program
  • Type in a string and hit enter to guess at the password

Modifying

The password is set to "opensesame". This can be changed by updating the value of "password" in the constants section of the asm-src-code file.
Additionally, the program is set to give the user 5 seconds to type in the password. This can be changed by updating the value of MAX_TIME (measured as value * 0.01 s) in the constants section of the asm-src-code file.

Authors

Helena Lynd

About

An assembly program that asks the user to input a password and grants or denies access based on the correctness of the password and the time taken to input it.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published