13.07.2015 Views

chapter 1 introduction to microprocessor and microcontroller

chapter 1 introduction to microprocessor and microcontroller

chapter 1 introduction to microprocessor and microcontroller

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Assignment 1:a. Convert the following numbers <strong>to</strong> Hexadecimal number:i. 11001100 2 ii. 456 10iii. 001110101110 2 iv. 1011 10v. 1110001010 2 vi. 1101 10b. Convert the following numbers <strong>to</strong> binary number:i. 5F6A 16 ii. 127 10iii. 101101 16 iv. 255 10v. FFFF 16 vi. 256 10c. Solve the problems below <strong>and</strong> find out the condition of Carry (C), Auxiliary Carry (AC)<strong>and</strong> Parity (P) bit:i. 5AHex ADD with 36Hex ii. 9DHex ADD with ABHexiii. 8B 16 AND with 97 16 iv. A6 16 AND with C3 16v. A7 16 OR with C1 16 vi. 93 16 OR with C7 16vii. 4C 16 EX-OR with 8A 16 viii. 23 16 EX-OR with EC 16ix. Data 78 16 is OR-ed with data 5C 16 first <strong>and</strong> then is AND-ed with data A7 16x. Data FA 16 is AND-ed with data D8 16 first <strong>and</strong> then EX-OR-ed with data 67 16Prepared by Tan KL Page 1-6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!