Documente Academic
Documente Profesional
Documente Cultură
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
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.
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: