Professional Documents
Culture Documents
Surname: GOKCEN
Number: #135104
Department: Computer Engineering
Homework 2
Assigned Date: Tuesday, March 31, 2015
Due Date: Friday, April 10, 2015
Problem 1: (10 points total)
a. Convert 114910 to its equivalent 16-bit binary representation
114910=0100 0111 11012 => 47D16
b. Convert 1101 10102 to its equivalent signed decimal representation.
This Numbers MSB is 1 so, it is Negative Number
2s Complement = 001001102 => -38
c. Convert 1111 1010 1000 10112 to its equivalent hexadecimal representation.
1111 1010 1000 10112 => FA8B16
d. Convert 21310 to its equivalent 2-digit hexadecimal representation.
21310 = 1101 01012 = D516
Problem 2: (15 points)
Using the Digilent chipKIT Pro MX4 reference manual, available on Moodle course page, provide the
following information:
1. (6 pts) The Digilent Connector Pin Numbers for the on-board buttons (BTN1, BTN2) and the onboard LEDs (LD1, LD2, LD3, LD4).
BTN1 pin 42, BTN2 pin 43, LD1 pin 64, LD2 pin 65, LD3 pin 66, LD4 pin 67
2. (6 pts) The MCU Port Bits corresponding to the on-board buttons (BTN1, BTN2)
And the on-board LEDs (LD1, LD2, LD3, LD4).
BTN1 RA6 (MCU_PIN 91), BTN2 RA7 (MCU_PIN 92), LD1 RB10 (MCU_PIN 34), LD2 RB11 (MCU_PIN
35), LD3 RB12 (MCU_PIN 41), LD4 RB13 (MCU_PIN 42)
3. (3 pts) Do we configure the Digilent Connector Pin Numbers or the MCU Port
Bits in our programs? Explain.
We should configure the ports for our purpose. If we want to use LD1 as OUTPUT which is RB10, We should
configure TRISB.10 = 0. And if we want to Low or Down PORTB.10=1(High) or PORTB.10=0(Low)
Name: Alpaslan
Surname: GOKCEN
Number: #135104
Department: Computer Engineering
80MHz/105DMIPS, 32-bit MIPS M4K Core 80 million Clock Pulse each Second
USB 2.0 On-The-Go Peripheral with integrated PHY USB 2.0 Peripheral Bus
32K RAM (can execute from RAM) - 32KB RAM
5 Stage pipeline, Harvard architecture Separated Memory , 5 Stage Integer Pipeline
MIPS16e mode for up to 40% smaller code size
Single cycle multiply and hardware divide unit MDU Unit And Pipeline
32 x 32-bit Core Registers
32 x 32-bit Shadow Registers
Fast context switch and interrupt response
512K Flash (plus 12K boot Flash)