Sunteți pe pagina 1din 1

1st December, 2016

Microprocessor Systems
Visa Exam

1- Calculate the value of A (8Bits Accumulator) in hexadecimal number


system by the end of logical and arithmetic operations listed below.
R0..R7: Auxiliary registers, ACC≡A ,

a) MOV A,#0ABH
XRL A,#0F0H
ANL A,#108D ; A=( ? )16

b) MOV A,#55H
CLR C
ANL A,#00111100B
XRL A,#0AFH
RRC A ; A=( ? )16

c) MOV R0,#100D
MOV A,#0
LOOP: ADD A,R0
DJNZ R0,LOOP
; A=( ? )16

2- Write a subroutine that serially sends 8 bit accumulator(A) value to


an external component (shift register) through 2 port pins
(Data:P1.0 , Clock:P1.1) of the microcontroller. It will be assumed
that external component (connected via P1.0 and P1.1) will sample
serially sent data bits on each rising edge of the clock signal.

3- A 16-bits CPU has 17bits addressing capability. It will be connected


to a memory block that contains 2 pieces of 27C512 EPROMs, 2
pieces of 62C256 static RAMs, and 2 pieces of 28C128 EEPROMs.
Reset vector assigns “Program Counter”=0000H.
a) Draw the memory-addressing map of the described system and
related logical chip selection table for the decoder (unused part
of the memory map will not be reserved for future connections).
Express the address decoder outputs in logically reduced form.
What are the total sizes of utilized and all addressable memory
amount?
b) Draw the circuit diagram of the defined microcomputer system
including the memory decoder consisting of logical gates.

Q1: a) 10P b) 13P c) 17P Q2:25P Q3:a) 18P b) 17P Duration: 105minutes

S-ar putea să vă placă și