MMA
MMA
transmission
80(825/).
9600forparity losection
opInitialize [b].
register
desiredcounters to with
PWM diagramfrequency
to Draw provide
8051 bit, send of Doutput respect
and chopping of through ofthe to
unitsDraw using one the 8051 neat a
8085 connections
may produce to
including Timerl, a to
stop dataprogram
speed
receive diagram e be
Pratassembly each
neat bit for andproduced. control
is requisite
of other
diagram
baud asynchronous
Crystal with data the
for
speed20kHz. different
baud USART language inbeyond
fe=I1.059MHz).
rate through
DTE-DTE is The 256 duly
proportional
ORAssume
generationfor of rate (8251) system timers stepscycle half
communication
the factorinterrupt program
825 and in time
to PWM
clock
reference operate clockwise
1/8051
Assume ofinterfaced to period
(RST
DTE-DCE duty is in (or
8051). 16(for kept 8083 the 9
with th 5.
wi5NINTI) cycle.speed correspnndimg
direction ond
even
8251/baud with atsystem
so 9
receiver
address 8 serial 5.12 that
is ger
bits/frame, and8035/
go
proideh MHz Inifialrne rgu
agogrngrate
rate nterface f
to UART
into md flig t
and be of 10 PrA
a n he he fin
e ey
Total Number of Pages 2 Ikoll No,
D flip flop (preser and clear) are used to producc requisite duly cycle PWM (at
Qand Qoutputs of FlipFlop) which in turn provide thespced control in 128 steps. B.Tecth ELECTRICAL/ELECTRICAL &ELECTRONICSENGG. 6,EMESER
Draw a neat diagram of connections of different timers to operate the system, END SEMESTER CXAMINATION (Muy-o19)
Initialize the counters through assembly language program in 8085 1P so that
appropriate PWM output may be produced. Thesystem clock is kept at 2.56 EE/EL-306 Microprocessor & Microcontroller Application
MHZ and the desired chopping rate is 20kHz. Assume reference speed is Time: 3:00Hours Maxlmum Marks:40
provided in register D of 8085uP and speed is proportional to duty cycle 8
Noto: ana2& a3 aro compulsory
5[a] A 2x8 hex key pad [Oy-7hr" ron); 8-Fn(2nd row] and.8 seven segment(2seg). HAtermpt'otther 2(Two)parta one:trom.Quontlon 4, andisecond trom Quostlon 5
displays are connected to 8085 uP/805lC through.-8279 interfacc. Write, an ASSuraesujablemis9hgaala Tany pataSheagie provido
assembly language program that waits. for the key press, assimilate the data HAtomptall parto o a quostion ationo placo.(Mitkumay nottboawarded othewio)
received in format of row and column with encoded scan with N key rollover
for each key press and then write on the display sequentially with right entry. 1[ajGiving reasonsexplain briefly, why? (Answer any five)
Devise a subroutine which converts the data received fromn FIFO of 8279 into (i) The bus operation is regulated through Tristate bulfers.
a 4bit binary hex code with higher nibble containing zero for use in the main (ii) Overflow occurs with addition of similar signed numbers.
program. System clock is available at IMHz and Odd address 43. Draw a (ii) Stack memory isemployed for both CALL and RET instructions.
neat diagram of the system. Assume each write on the display memory (iv) Interruptroutines always begin with instruction D.
sequences next display for writing. (v) Only onc register bank can be used at a timne in 8051 microcontroller(z).
OR (vi) Multiple SFRs are put in service while programming with 80STC fmily.
(vii)8byte FIFO RAM is arequisite for 8x8 Keyboard scanning with %279.
(b). Draw a neat diagram for DTE-DTE and DTE-DCE serial interface. Ix5
Initialize and program the USART (8251) interfaced with 8085/ UART [b]Return answer in cither numerical value/ value in requisite formav names
section of 805 1 to go into the loop to send and receive the data in alternating
fashion for asynchronous communication with 8 bits/frame, no parity bit, one () 8900 in Q13 format, is cqual to.....in base 10?
stop bit with baud rate factor of 16(for 825/)/baud rate of 9600for 8051 using (ii)T states consumed in cxecution of instruction LHLD 2500,. (8085uP)
Timerl, Crystal fou=l1.059MHZ). Assume even address to be 80:(825/). Draw a (ii) After execution of following instructions what will be the status of S,Z,AC,PC
neat diagram of the 825 1/8051 with receiver and transmission units including and overflow flags ?
baud rate generation(for 8051). 8
MVIA,301
ADI E8|
-X
(iv) If the initialvalues of the DE and HL. register pairs aro given, after oxecution
of following instructions the content of DE register pair will be...7
XCHG
DAD H DE 2264
4433
XCHG
(v) After execution of following instructions what will be the content of SP nd
BCregister pairs?
LXISP, FFFE,
LXI B, CADB|
LXI D, 007CH
PUSH B
PUSH D
POPB
(vi) If data <BO> is given one arithmetic right shift the
contents becomes...?
program. [b] Draw a neat timing diagram for the:
lajoe the lollowng prograns and report thc answer after exCcution of cach () Instruction IN 204 (8085uP)
(i) MVICOAN handshake
XRA A (i)Process involved for output of data through 8255S port under 1hx2
MOV B,A mode
+INR B
3[a] Write an 8085/8051 assembly language program to
implement Successive
Approximation based analog to digital conversion using Digital to Analog
ADD B
DCR C analog
-JNZ What would Accumulator hold after execution? (DIA) converter (directly interfaced with 8085 uP. Port Address-204) and an
(1) LXI H, 2400H comparator. Use RSTS.5 pin of the 8085 uP to input from analog comparator.
MVIC04H
Use delay of approximaely- S6T states-in the-progrä-to-take-care of the
XRA A
MOV A,M
response time of the D/Aconverter andanalog comparator.
MOV B,M -fA
CMP B Converter
JNC
MOV A,B 8085/
4INX H 8051
DCR C Analog