You are on page 1of 2

VIT

U N I V E R S I T Y
(Estd. u/s 3 of UGC Act 1956)
School of Electronics Engineering

Reg. No.

Name:

Discipline: B.Tech- ECE Subject : MICROCONTROLLER AND APPLICATIONS Marks: 50 Slot: D1 Date of Exam: 04.10.2012 (AN)

Sem : FFCS Exam: CAT-II Time: 11/2 hrs Sub Code: ECE304 Time: 3 PM to 4:30 PM

ANSWER TO THE POINT, UNNECESSARY WRITING WILL BE DISCREDITED

Note: All Assembly level programs must be targeted to 8051 Microcontroller


and given with line by line comments in tabulated format. All sub division of each question must be answered sequentially.

1. (i) (ii)

Elaborate the procedure for activating interrupt subroutine. How microcontroller reacts if an interrupt occurs. (5 Marks) Develop an 8051 assembly level program for the following tasks using interrupts. Also Calculate the delay for serial communication and waveform generation. Receive data X serially, find whether the sign magnitude representation number is positive or negative, if positive make it a negative value and if negative make it a positive value and send it to Port0. (5 Marks) (b) Have port Port1 read data Y and find Y is odd or even if even transmit the even value serially or make it even and transmit it serially, and find if it is odd send to port 2 or make it as odd number and send to Port2. (5 Marks) (c) Make Timer 0 generate a square wave of 5 kHz frequency on P0.1. Assume that XTAL = 11.0592 MHz Set the baud rate at 4800. (5 Marks) Elaborate and compose the bits of configuration registers (control word formats), for above requirement, give justification of bit configurations and illustrate how it works. (3 Marks) Draw the pictorial representation of inter connections for the above requirement. (1 M ark) Give various programming methods to double the width of the wave form generated. (1 Mark) (a)

(25)

2.

(a). For an 8051 system of XTAL= 11.0592 MHz, find the time delay for the following subroutine, also find the range of delay (min to max) provided by the same subroutine. (5 Marks) DELAY: MOV R3, #<count value1> HERE: MOV R3, #<count value2> NOP NOP HERE1: DJNZ R3, HERE1 NOP DJNZ R3, HERE RET Machine cycle 1 1 1 1 2 1 2 2

(10)

(b). Differentiate the steps to program 8051 timer in mode 0 and mode 2. (5 Marks) 3. (a). Find the TH1 value (in both decimal and hex) to set the baud rate to each of the following. If SMOD=0 Assume that XTAL = 11.0592 MHz. (i) 9600 (ii) 4800 (5 Marks) (b). Write the importance of the RI and TI flag bit. 4. (a) (5 Marks) (10) (i). Write an 8051 ALP that transfers your register number space your name serially at 19200 baud rate. Use suitable timer to configure required baud rate. Assume that XTAL = 11.0592 MHz. Elaborate the bits of configuration registers (control word formats) and give justification of bit configurations and Explore how it works for above requirement. (6 Marks) (10)