Programming > Research Paper > LAB 2: Hardware Interfacing – Keypad CEG 3136 - Computer Architecture II Fall 2018 School of Engin (All)

LAB 2: Hardware Interfacing – Keypad CEG 3136 - Computer Architecture II Fall 2018 School of Engineering and Computer Science University of Ottawa

Document Content and Description Below

LAB 2: Hardware Interfacing – Keypad CEG 3136 - Computer Architecture II Fall 2018 School of Engineering and Computer Science University of Ottawa LAB 2: Hardware Interfacing – Keypad CEG... 3136 - Computer Architecture II Fall 2018 School of Engineering and Computer Science University of Ottawa Experiment Date: 01/10/2018 Submission Date: 15/10/2018 OBJECTIVES ● To familiarize ourselves with the Motorola 9S12DG256. ● To implement a basic keypad unit. MATERIALS AND COMPONENTS ● Windows PC ● MiniIDE software ● Dragon-12 board and associated cables INTRODUCTION The purpose of this lab is to implement a connection between the keypad of a Dragon-12 board and an arming/disarming system. This employs concepts we familiarize ourselves with during the previous lab. DESIGN Part 1 To implement KeyPad.asm, we have to consider what it does. It must take in which key on the Dragon-12 keypad as input and manipulate its corresponding ASCII value. The subroutine pollReadKey checks for key presses on the Dragon-12 and converts to ASCII if so. The subroutine readKey takes the associated value of keys pressed on the Dragon-12, but it also accounts for faulty presses and brief taps with a delay beforehand. The readKeyCode subroutine involves three nested conditional statements for the four rows on the keypad. The logic behind this employs the understanding that each row on the keypad should detect key presses for a moment, and if one is pressed, indicate which key. Finally, the subroutine returns the changed PORTA value. The simplest yet most time-consuming subroutine is translate, which takes the value from the previous subroutine and translates it to the corresponding and necessary ASCII code. This is achieved with many conditional statements. [Show More]

Last updated: 2 years ago

Preview 1 out of 5 pages

Buy Now

Instant download

We Accept:

We Accept
document-preview

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

We Accept

Reviews( 0 )

$7.50

Buy Now

We Accept:

We Accept

Instant download

Can't find what you want? Try our AI powered Search

175
0

Document information


Connected school, study & course


About the document


Uploaded On

Oct 14, 2020

Number of pages

5

Written in

Seller


seller-icon
QuizMaster

Member since 5 years

1185 Documents Sold

Reviews Received
185
56
29
11
17
Additional information

This document has been written for:

Uploaded

Oct 14, 2020

Downloads

 0

Views

 175

Document Keyword Tags

Recommended For You

Get more on Research Paper »

$7.50
What is Scholarfriends

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 are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·