Sie sind auf Seite 1von 1

Roll No.

__________________

24 August, 2015

Sarhad University, Peshawar


(Distance Education)
Paper

: Microcontroller Interfacing Technology - ELC338

Time Allowed : 3 hours

Examination: Final, Spring-2015


Total Marks: 70, Passing Marks (35)

NOTE: Attempt any five questions from the following. All questions carry equal marks. Phones and other
Electronic Gadgets are not allowed.
Q1.

(a) Discuss the Differences between Microprocessors and Microcontrollers.


(b) Draw and discuss the general Block Diagram of MCS-51 family Microcontroller.

Q2.

(a) Briefly discuss the function of all input/output ports of Microcontroller.


(b) How External 64 K Rom will be connected with 8051 Microcontroller. Draw the Pin connections of
microcontroller with 64K Rom.

Q3.

(a) Discuss the Function of each bit of Program Status Word (PSW) Register.
(b) Find the timers clock frequency and its period for various 8051-based systems, with the following
crystal frequencies. (1) 8 MHz (2) 16 MHz

Q4.

(a) Find the value for TMOD if we want to program Timer 1 in mode 1, use 8051 XTAL for the clock
source and use instructions to start and stop the timer.
(b)Assuming that XTAL =11.0592 MHz, Write a program to generate a square wave of 10 kHz
frequency on pin P1.2.

Q5.

Assuming that Clock pulses are fed into pin T1, Write a Program for counter 1 in mode 1 to count the
pulses and display the state of the TL1 count on P3.

Q6.

(a) Describe the Instruction Types of MCS-51 family Microcontroller.


(b). Briefly Discuss the control signals function of MCS-51 family Microcontroller.

Q7.

Find the frequency of a Square wave generated on Pin 1.4.


MOV TMOD, #01H
2
MOV TH0, #5
2
MOV R4, #245
1
ACALL DELAY
2
CPL P1.4
1
SJMP AGAIN
2
DELAY: SETB TR0
1
BACK: JNB TF0, BACK
64255
1/(64515*2*1.085us)=7.143 hz
CLR TR0
1
CLR TF0
1
DJNZ R4, DELAY
245
RET
2

Q8.

Write short notes on any TWO of the following.


(a) Function of Serial Port Control Register
(b) Interrupt Priority & Polling Sequence
(c) Interface of Multiple 7-Segments LEDS

Microcontroller Interfacing Technology - ELC338-Spring-2015

Page 1 of 1

Das könnte Ihnen auch gefallen