Skip to content

A project for California Polytechnic State university, ME-305-01 with professor Dr. William R. Murray. The code allows two separate LEDs to blink at independent periods that are entered on a keypad. It includes error messages for incorrect inputs. The project is designed to run on a NXP CPU12/CPU12X Microcontroller.Completed in Spring of 2023.

Notifications You must be signed in to change notification settings

tanno1/LedBlinkerWithIO

Repository files navigation

Cooperative Multitasking LEDs With IO

Noah Tanner, Spring 2023

Description

A project created for ME-305 taught by Professor William R. Murray at California Polytechnic State University. The objective of the lab was to add input-output capability to the LED blinker that we developed in Lab 2. Building off of our Lab 2 code, we adjusted it so that a user can input to the keypad a decimal integer that represents the number of milliseconds in the blinking period for either LED pair 1 or LED pair 2. In order to enhance the user experience, the program had to be capable of detecting errors such as too large of a magnitude entered, 0 is an incorrect magnitude, and no digits entered. It also had to be able to handle backspaces appropriately, and display the period that the LED pairs are running at while they blink. We allocated 2 bytes of memory for the value of the keypad to be stored in. This means that the unsigned value could range from 0 to 65,535 and anything bigger than that would create an error. See the attatched PDF for the full background on the project as well as the setup of the finite state diagrams

PDF

Tanner_Sterba_Lab3_report (1).pdf

Contributors

This project was completed alongside my lab parter Cole Sterba of Cal Poly.

Tests

If one were to set this up, they would need to copy the setup of the lab stands at Cal Poly, find one of the NXP CPU12 microcotnrollers, and then run the CodeWarrior file. The main idea of this repo is to share my process and the final result, I do not expect it to be replicated.

About

A project for California Polytechnic State university, ME-305-01 with professor Dr. William R. Murray. The code allows two separate LEDs to blink at independent periods that are entered on a keypad. It includes error messages for incorrect inputs. The project is designed to run on a NXP CPU12/CPU12X Microcontroller.Completed in Spring of 2023.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published