Introduction to Embedded Systems :: CSCI 255
Lab Assignments
Lab 8
-- Keypad & LEDs


HOME        SYLLABUS        HOMEWORK        LABS        LINKS        NOTES









Due:  End of Lab Session (11.11.2013)

Requirement:  Bread Board, Jump Wires, MSP430, LEDs, Keypad and work with your lab partner on the code

The goal of this assignment is to gain more experience programming MSP430 functionality in C-language, and practice using the integrated debugger in the CCS IDE.

 

Keypad & Represent with LEDs

Connect keypad to Port 1. Each time a key is pressed, the program has to recognize which key was pressed and represent its value in binary through Port 2 LEDs. The keypad needs to be decoded by scanning the four rows (or equivalently each of the four columns) looking for a button that is pressed (low signal). Your program only needs to behave properly when a single button is pushed. For details of keypad decoding, see the note slides.

Make sure that for keys:

A - D => Display correct binary representations
# = E => Pound Key will have the E-value
* = F => Asterisk Key will have the F-value
0 key => Lights up the zero-key LED as shown below

See how it works

 

Keypad/LEDs Circuit

 

Keypad Types & Pinout

Submission:

1 - Have the lab checked out by Matt, Clint or Damian by showing your code, flashing your code to the board, and display working circuit.

2 - Print your final code with the following header:

/***************************************************
* Names
* Lab x assignment
* filename: yyyyyyyyy.asm
*
* Description of the assignment
*
***************************************************/

3 - Make sure you have a well commented code


Copyright © 2011 by Keith Vertanen.

 


Montana Tech -- College of Letters, Science & Professional Studies -- Computer Science Department
All Rights Reserved and Copyright © 2013 by Damian Valles