Microprocessors: From Assembly Language to C Using thePIC18Fxx2

Appendix I: Answers to Review Problems

This appendix contains answers to the odd-numbered review questions at the end of Chapters 1 through 13.

I.1 CHAPTER 1

1.

How many bits does it take to represent 40 items?

2.

What is the largest unsigned integer that can be represented in 7 bits?

3.

Convert the value 120 to binary using 8 bits.

4.

Convert 89 to hex using 8 bits.

5.

Convert 0xF4 to binary.

6.

Convert 0xF4 to decimal.

7.

Convert the value 0b10110111 to decimal.

8.

Compute 0xB2 + 0x9F, give the result in hex.

9.

Compute 0xB2 - 0x9F and give the result in hex. Check your work by verifying that 0xB2 + ~ (0x9F) + 0x1 produces the same result. To compute ~(0x9F), complement each bit.

10.

Draw the logic network and derive the truth table for the logic function F = (A&B) C.

11.

Derive the CMOS transistor network that implements the NOR function.

12.

Compute 0xC3 >> 2, give the value in hex (this is a right shift by two).

13.

Compute 0x2A << 1, give the value in hex (this is a left shift by one).

14.

What is the period of a 400 kHz clock in microseconds?

15.

Given a 30% duty cycle clock, with a high pulse width of 20 ?s, what is the clock frequency in kHz?

16.

Design an N-bit subtractor using an adder with a carry-in input and the fact that A-B = A + ~B + 1.

17.

Design an N-bit adder/subtractor...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Logic Adders
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.