1. Trang chủ
  2. » Giáo Dục - Đào Tạo

Bài tập Kỹ thuật vi xử lý - DTVT - BKDN (bài01)

2 60 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 2
Dung lượng 50 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Bài tập Kỹ thuật vi xử lý - DTVT - BKDN

Trang 1

Microprocessors Semester 2 2011-2012

Homework 1 Due Date: 14 February 2012

MSP430 ISA

MSP430 Architecture

/ 10

1 (1 points) Disassemble the following 25

memory words: (Hint: There are 13 instructions

Make up your own labels Use hexadecimal

notation for constants and absolute locations.)

0x809c: 8392

0x809e: 0200

0x80a0: 2005

0x80a2: 40B2

0x80a4: 03E8

0x80a6: 0200

0x80a8: E3E2

0x80aa: 0021

0x80ac: 9382

0x80ae: 0202

0x80b0: 240D

0x80b2: D3D2

0x80b4: 0021

0x80b6: E0F2

0x80b8: 0010

0x80ba: 001D

0x80bc: 8392

0x80be: 0202

0x80c0: 2005

0x80c2: C3D2

0x80c4: 0021

0x80c6: C0B1

0x80c8: 0010

0x80ca: 0000

0x80cc: 1300

2 (1 points) If the value in R4 is 0x0008, what

will the value be in R5 after executing the

following 5 lines of binary code? What does the

binary program do?

0100 0100 0000 0101

0101 0101 0000 0101

0101 0101 0000 0101

0101 0100 0000 0101

0101 0101 0000 0101

3 (1 points) When does addition generate an

OVERFLOW condition as defined by 2’s

complement addition?

Trang 2

4 (1 points) What is the difference between

PC-relative and register-indexed addressing modes?

How are they the same? How do they differ?

5 (1 points) Since the MSP430 ISA uses only 1

bit for selecting the destination address mode,

how are four destination addressing modes

defined?

6 (1 points) The MSP430 ISA could define the

following instruction as either a 1 word or 2 word

instruction Explain

mov.w #1,R4

7 (1 points) What does the MSP430 do with the

following operand?

@R2+

8 (1 points) Why are output ports on the

MSP430 readable? What advantage does this

have?

9 (1 points) Which MSP430 I/O ports have

interrupt capability?

10 (1 points) Some computer ISA’s define

special instructions for I/O The MSP430 does

not How then does the MSP430 communicate

with I/O devices? What advantage does this

have?

Ngày đăng: 06/09/2021, 17:29

TỪ KHÓA LIÊN QUAN

🧩 Sản phẩm bạn có thể quan tâm

w