CERTIFIED FITNESS TRAINER > Lab Report > Lab Report > CEG 3136 Lab 2: Hardware Interfacing - Keypad Fall 2019 (All)
CEG 3136 Lab 2: Hardware Interfacing - Keypad Fall 2019 Students: Purpose | 3 Equipment | 3 Part One: | 3 Problem | 3 Input/Outputs of Problem | 3 Algorithm | 3 Implementation | 8 Te... sting | 8 Part two: | 8 Problem | 8 Input/Outputs of Problem | 8 Algorithm | 9 Implementation | 9 Testing and Validation | 10 Conclusion: | 10 Purpose The purpose of this lab was to introduce the interfacing of the Motorola 9S12DG256 through an implementation of a keypad unit. Equipment -Windows PC -Dragon12 board Part One: Problem The task was to implement KeyPad.asm which would be used to communicate with the touchpad on the Dragon12 board. This code is used to take the inputs done on the touchpad by the user and associate them with a numerical value in ASCII code corresponding to the character pressed. Input/Outputs of Problem The input was the key pressed on the touchpad by the user while the outputs were the corresponding ASCII of the key to be used by the program Algorithm The first function in the algorithm is pollReadKey which is used to check if a key has been pressed or not, which allows the program to check if a key has been pressed without a key necessarily being pressed. This is different from the readKey() function which waits for a key to be pressed, instead this function checks if a key has been pressed, then if pressed it will return the key character and if not it will return NOKEY which has value 0. [Show More]
Last updated: 2 years ago
Preview 1 out of 10 pages
Buy this document to get the full access instantly
Instant Download Access after purchase
Buy NowInstant download
We Accept:
Can't find what you want? Try our AI powered Search
Connected school, study & course
About the document
Uploaded On
Jan 05, 2023
Number of pages
10
Written in
This document has been written for:
Uploaded
Jan 05, 2023
Downloads
0
Views
82
In Scholarfriends, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.
We're available through e-mail, Twitter, Facebook, and live chat.
FAQ
Questions? Leave a message!
Copyright © Scholarfriends · High quality services·