Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Solved Exam 2 for Computer Based Systems in Engineering | ECEN 3213, Exams of Electrical and Electronics Engineering

Material Type: Exam; Professor: Johnson; Subject: Electrical and Computer Engineering ; University: Oklahoma State University - Stillwater; Term: Spring 2005;

Typology: Exams

2010/2011

Uploaded on 07/18/2011

koofers-user-dna
koofers-user-dna 🇺🇸

10 documents

1 / 4

Toggle sidebar

Related documents


Partial preview of the text

Download Solved Exam 2 for Computer Based Systems in Engineering | ECEN 3213 and more Exams Electrical and Electronics Engineering in PDF only on Docsity! @ ECEN 6253 Advanced Digital Computer Design & ECEN 3213 Spring ‘05 Exam 2 WRITE YOUR NAME HERE A AswCir All questions must be auswered on test paper! Opes Book, Opes Notes - All questions are for the 68HC711E9 mhicroprocessor. 1, (40 pts} Write complete assembly code for the following pseudo-code. If reset ocours, the program should start at “start”, byte Avar{10); Start: Avat{0] = 0; Avar[]]} = 1; for G=2;i< 10;i=i+1) Avarfi] = Avarfi-1] + Avar[i-2}: rg ° forbuop [da ~1x Avig 43 10 add, -2,% org fDboo sty 9X Stat [2x Haver [nx ida o inch, ela aX cmph yo Lata. \ bone lowy? sigs 1, % stop igh 2 arg SFFFE Inx db stant aX ECEN 3213 Spring ‘05 Exam 2 April 6, 2005 page 1 of 4 MB ECEN &2F3 Advanced Digital Computer Basign 2. (30 pts) The I/O ports are wired as shown. PRO : PBI 68HC7LIES PEO ee, PCO | f a. Write an assembly code fragment necessary to initialize the pins on port B, C and Eas input and outpot as shown. If'ne code is needed, say 30, Nowe pudd, puts abu ag) opt pot & S glungs Sgt ond pyere ie oniblshped 1 unfet carbowwhin ne stor dtp. . b. Write an assembly fragment to continuously read the switches connected to PEC and PCO, then display the values on the LEDs connected to PBO and PBI Tespectively. leap i PIE OB +feenyp pedi. HR guacovel ete Be TR Ab PRT bre tu? aud, Fy, pave ove ] {sibs sth snp c. Write an assembly code fragment to write bit 5 of the A register into the LED con- nected to PBI without changing the LED) connected to PBO. ‘ Gogh ty iititel Isrm Stb temp Ire oes \sv@ gta Port anha tuo 0710 Id port8 ECEN 3213 Spring ‘0S Bram 2 agell 6, 2005 page Zof¢
Docsity logo



Copyright © 2024 Ladybird Srl - Via Leonardo da Vinci 16, 10126, Torino, Italy - VAT 10816460017 - All rights reserved