Sunteți pe pagina 1din 2

25th May, 2013

Microprocessor Systems
Final Exam

1- “A” denotes 8bits Accumulator and “R0”, “R1” …and ”R7” are 8bits auxiliary
registers which can be used as internal variables in Intel’s 8x51series
microcontrollers. Calculate the value of A (Accumulator) in hexadecimal number
system by the end of logical and arithmetic operations listed below.
SP: STACK POINTER, R0..R7: Auxilary registers, ACC≡A ,

a) MOV SP,#7FH
MOV A,#0H
CLR C
MOV R0,#48D
LOOP: ADD A,R0
PUSH ACC
RLC A
DJNZ R0,LOOP
MOV A,83H A=( ? )16

b) MOV 20H,#10D ; [20H]=(10)10


MOV R0,1FH
ORL 20H,#03H
INC R0
MOV A,@R0
; A=( ? )16

2- Write a subroutine for the 8-bit microcontroller family 8x51 (intel) that copies RAM
memory area between the addresses 40H and 5FH (totally 32 bytes) to another memory
block where the destination base address (offset) is indicated by the accumulator (A)
content.

3- An 8 bit CPU having 64kBytes addressing capability will be connected to a memory


block that contains 1 piece of 27C256 EPROM, 1 piece of 62C128 static RAM, 1 piece
of 74HC573 (8 bits single directional latch) and an address decoder unit. 4 relays and 4
LEDs will be driven through the outputs of the 74HC573. LEDs will directly be sourced
by 4 output pins of 74HC573 via resistors. Relays will be driven through an NPN
transistor. Reset vector assigns ProgramCounter=0000H.

a) Draw the memory-addressing map of the described system and related logical chip
selection table for the decoder.
b) Draw the circuit schema of the system using 74HC138 as the decoder IC.
(Unspecified memory field can arbitrarily be assigned)
Duration : 100minutes 1- a)15P b)15P 2- 30P 3- a)10P b)30P
74HC138 – Pin connection Diagram:

74HC573 – Pin connection Diagram & Truth Table

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