HW1_EE2361.pdf - EE2361 Fall 2021 HOMEWORK ASSIGNMENT 1 Due...

This preview shows page 1 - 3 out of 3 pages.

EE2361 Fall 2021 HOMEWORK ASSIGNMENT 1 Due: Friday, 24 September 2021 Problem 1. Represent the following decimal numbers as 16- bit binary values using 2’s Complement representation. Then convert the binary number to a hex number. (a) 652
(b) 32767
(c) 1
(d) 123
Problem 2. Assume each instruction below is located at 0x000bea. Using the Programmer’s Reference Manual for the PIC24, hand-assemble each of the following individual instructions. (a) add #0xdb, w0 1011 0000 0011 0111 0111 0000 (b) bra 0x037a 0011 0111 0000 0011 0111 1010 (c) mov w2, [w14] 1001 0000 0000 0111 0000 0100
Problem 3. For each instruction below assume initially (PC)=0x2AE, (SR)=0x0000, (w0)=0xFFFF, (w1)=0x080A, (w15)=0x080a, and the contents of the 8 sequential bytes in data memory beginning at 0x0806 are 0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, and 0xEF. Give the contents of any registers which have changed after each of the following instructions executes: (a) mov.b #0x12,w0 mov 8bit immediate value 0x12 to w0

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture