You are on page 1of 2

EEE-347/CNG-336 Introduction to Microprocessors/Embedded Systems Development Spring 2014 Homework #4 - Due on the date of midterm 2.

1. (20 pts.) Design an address decoding circuit for the following 68HC11 system: 8KB memory chip starting at address $D000 8KB socket for RAM or EPROM starting at address $6000 8KB RAM starting at address $A000 I/O chip partially decoded to start at address $1800 Show your detail work and explain how you developed the solution.

2. (20 pts.) Address $0F00 contains the word $9127. Predict the cycle-by-cycle bus activity (address bit) for the following program segment. bus, data bus, / ORG LDX CPX STX $2000 $0F00 #$1212 $2024

3. (25 pts.) A 68HC11 system runs at 2 MHz. It executes the following oscilloscope loop. ORG LDAB LOOP STAB BRA $D250 #$37 $E330 LOOP

An oscilloscope measures address lines A3 and A2, triggered by an appropriate external trigger edge that coincides with when the constant $37 shows up at the data bus. a) Which signal can be used as the trigger? b) Show the oscilloscope readings at 500ns intervals after the trigger edge until the $FFFF in the last cycle of branch instruction shows up on the address bus. You can show the readings as logic 0 and 1 (exact voltage levels are not needed.) 4. (20 pts.)Port A has the following pins: PA0 Input PA1 Input PA2 Input PA3 Output PA4 Output PA5 Output PA6 Output PA7 Configured as Output Presently, PORTA has the value $EE. What is the value of accumulator A and PORTA after the Following instructions are executed? (a) LDAA #$29

(b) STAA $1000 (c) LDAA $1000 5. (15 pts.) What are the advantages and disadvantages of Serial I/O compared to parallel I/O?

You might also like