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 Electrical and Computer 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 2004;

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 Electrical and Computer Engineering | ECEN 3213 and more Exams Electrical and Electronics Engineering in PDF only on Docsity! © EGEN 6263 Advanced Digitel Computer Design F ECEN 3213 Spring ‘04 Exam 2 WRITE YOUR NAME HERE All questions must be answered on test paper! Open Book, Open Notes All questions are for the 68HC711E9 microprocessar. 1, (25 pts) Write assembly code for the following pseudo-code. If reset occurs, the pro- gram should start st “start”. byte Avar[0], sum, Start: sum = 0; for i = 0;1<10,i=i+1) sum = sum + Avarfij; ong 4 oyeod AM Avar ds 10 Sim dy | _ ay Spore Kom Start ab #p nse bfar b varishle 5 Sum, (Lx Advtr ge x fe ptr ho A er > b t+ loop adda OA Stap Sta. sam org fPrPre ine dw > Staet RCE 3215 free ‘14 Tora 2 Ani 12. 1nag 20 aes Lota @ CEN €2383 Advanced Bigital Computer Design © 2. (25 pes) The 1/0 ports are wired as shown. PBO 4d : PBI 68HC71LED PEO mana PEI | ¥ a, Write assembly code necessary to initialize port B and E as input and output on the & pins shown. Ef no code is needed, say so. No cole puded Port Bois ferry 3 otet avd pwt £5 al ysonp vin pot § _-b. Write assembly code to read the two switches into bit 0 and bit 1 of the A register. Force the remaining bits to be all 0's. puRTE tau $100F {ha PERTR aabs, HD pavowol! = (Same 24 3) 4 c. Write assembly code to write bit 7 of the B register into the LED connected to PBO without changing the LED connected to PB1. isrb ia, PORTR lye Isr ania, #% cove! refb Isr and b #%gveoe?| , sth -ten}t rofl isrh Ora timp isre Ste pHet Re is CEN 3319 Seine “thd Face 2 April 12. 200d nawa Zotd
Docsity logo



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