Homework 1
Transcription
Homework 1
EE 234: Microprocessor Systems Spring 2015 Homework 1 Assigned Date: Wednesday, January 28, 2015 Due Date: Wednesday, February 4, 2015 Weight: 65 pts NOTE: Please submit your solution to the corresponding homework section under the “Content” link in Blackboard Learn. Recall the site is https://learn.wsu.edu/webapps/login/. Description: The purpose of this homework is to give you practice with number conversions, general microcontroller terminology, and computer architecture. It also helps you with understanding where to find important reference documents that you will rely on throughout the course! Please show all work necessary to solve each of the problems. You will receive partial credit for showing your work. You must type your solutions and submit them electronically! Problem 1: (10 points total / 2 pts each) a. Convert 1149 10 to its equivalent 16-bit binary representation. __________________ b. Convert 0101 10102 to its equivalent unsigned decimal representation. ________________________ c. Convert 1111 1010 1000 10112 to its equivalent hexadecimal representation. ______________________ d. Convert 21310 to its equivalent 2-digit hexadecimal representation. ________________________ e. Provided the following memory table. Fill in the appropriate hexadecimal address value. Note: each MIPS instruction is 32-bits. Exactly one instruction fits into each memory cell. Address $A000 0338 $A000 033C $ Instructor: Andrew S. O’Fallon MIPS Instruction ADD $t2, $t0, $t1 BGTZ $t2, LABEL SW $t2, VAR Page 1 of 2 EE 234: Microprocessor Systems Spring 2015 Problem 2: (15 points) Using the Digilent chipKIT Pro MX4 Reference Manual http://eecs.wsu.edu/~aofallon/ee234/handouts/ChipKIT_Pro_%20MX4_RevC_1.pdf, provide the following information: 1. (6 pts) The Digilent Connector Pin Numbers for the on-board buttons (BTN1, BTN2) and the on-board LEDs (LD1, LD2, LD3, LD4). 2. (6 pts) The MCU Port Bits corresponding to the on-board buttons (BTN1, BTN2) and the on-board LEDs (LD1, LD2, LD3, LD4). 3. (3 pts) Do we configure the Digilent Connector Pin Numbers or the MCU Port Bits in our programs? Explain. Problem 3: (10 points) Describe the PIC32MX 5-stage Pipeline. Problem 4: (10 points) Compare and contrast Harvard vs Von Neumann architectures (use the Computer Architectures unit for help; also look online for help). Problem 5: (10 points) List and describe 10 features of the Microchip PIC32MX460F512L MIPS microcontroller (use the PIC32MX460F512L data sheet for help). Problem 6: (10 points) List and describe 5 features of the Digilent Cerebot MX4cK embedded microcontroller board (use the Cerebot MX4cK reference manual for help). Instructor: Andrew S. O’Fallon Page 2 of 2