Sheet01

Only available on StudyMode
  • Topic: Binary-coded decimal, ASCII, MOS Technology 6502
  • Pages : 3 (1045 words )
  • Download(s) : 178
  • Published : May 6, 2013
Open Document
Text Preview
CSE 312 Microprocessor based Systems

Ain Shams University Faculty of Engineering Computer and Systems Department

Spring 2013 Third Year CSE

Sheet 1 (Covering Chapters 0 to 5)
March 9th, 2012

Chapter 0 – INTRODUCTION TO COMPUTING
1. Find the total amount of the memory in units requested, for each of the following CPUs, given the size of the address buses: a) 16-bit address bus. (in K) b) 24-bit address bus. (in megs) c) 32-bit address bus. (in megabytes and gigabytes) d) 48-bit address bus. (in megabytes, gigabytes, and terabytes)

Chapter 1 – THE HCS12/9S12 MICROCONTROLLER HISTORY AND FEATURES 2. What components are usually put together with the microcontroller onto a single chip? 3. In an embedded controller with on-chip ROM. Why does the size of the ROM matter?

Chapter 2 – HCS12 ARCHITECTURE AND ASSEMBLY LANGUAGE PROGRAMMING 4. What is the result of the following code and where is it kept? LDAA #$15 ADDA #$13 5. Which of the following instructions is (are) illegal? a- LDAA #500 b- LDAA #50 c- LDAA #00 d- LDAA #$255 e- LDAA #$25 f- LDAA #$F5 g- ADDA mybyte , #$25 6. Which of the following instructions is (are) illegal? a- ADDA #$300 b- ADDA #$50 c- ADDA #$500 d- ADDA #$255 e- ADDA #12 f- ADDA#$F5 g- ADDA #$25 7. 8. 9. 10. Show a simple code to load values 30H and 97H into locations 805H and 806H, respectively. Show a simple code to load value 55H into locations 300H and 308H. Show a simple code to load value 5FH into Port B. Which of the following is an invalid use of the immediate addressing mode? a- LDDA #$24 b- LDAA $30 c- LDAA #$60

11. Identify the addressing mode for each of the following: a- STAA PORTB b- LDAA #$50 c- STAA $800 d- LDAA #0 e- CLRA f- ABA 12. Indicate the size of instruction for each of the following: a- STAA PORTB b- LDAA #$50 c- STAA $800 dLDAA #0 e- CLRA f- ABA

Chapter 3 – BRANCH, CALL, AND TIME DELAY LOOP
13. Find the number of the times the following loop is performed: REGA EQU $800 REGB EQU $801 LDAA #200...
tracking img