You are on page 1of 3

Department of Electrical and Electronics Engineering Class Test-II (13-14) Subject- icrocontroller !

Embedded S"stem Semester-#t$ Time % & $our a'( ar)s- 4*

+ote,- -ll .uestions are compulsar"( Sol/e an" t0o among (b)1(c) and (d)
2(1 a) In the 8051, what memory area is assigned to the interrupt vector table? Can the programmer change the memory space assigned to the table? (2 b) !i""erentiate interrupt versus polling method and e#plain the "ormat o" I$ register% &' (rite a program in which the 8051 reads data "rom )1 continuously while giving a copy o" it to the serial com port to be trans"erred serially%*ssume that +,*-.11%05/2 012% 3et the baud rate at /400% (5 c) $#plain "ollowings(any two 5 i 3pit ,imer mode in 8051 0icrocontroller% ii Interrupt priority in 8051 0icrocontroller iii 6ormat o" )C&7 register% d) (rite a program that continuously gets 88bit data "rom )0 and sends it to )1 while simultaneously creating a s9uare wave o" 200 microsecond period on pin )2%1% :se ,imer 0 to create a s9uare wave that has a high portion o" 1085 microsecond and a low portion o" 15 microsecond% *ssume +,*- . 11%05/2 012% :se ,imer 1% &' (rite a program that continuously gets 88bit data "rom )0 and sends it to )1 while simultaneously creating a s9uare wave o" 200 microsecond period on pin )2%1% :se ,imer 0 to create the s9uare wave% *ssume that +,*- . 11%05/2 012 % (5

(5

2(&

a) ,o which register does the 30&! bit belong? 3tate its role in data trans"er rate% b) $#plain the "ollowing (any two 5 i !i""erentiate '32;2 and '3<22 standards ii )in con"iguration o" 0*+ 2;2 chip and its connection with 8051(7ull 0odem

(2

iii =)I>

(4

c) $#plain the steps involved in )rogramming the 8051 to receive and transmit data serially% &' $#plain the Importance o" the ,I ? 'I "lag in serial communication% % d (rite a program to send the message @,he $arth is but &ne Country@ to serial port% *ssume a 3( is connected to pin )1%2% 0onitor its status and set the baud rate as "ollows5 3( . 0, <800 baud rate 3( . 1,/400 baud rate *ssume +,*- . 11%05/2 012, 88bit data, and 1 stop bit%

(4

&' *ssume that the 8051 serial port is connected to the C&0 port o" the I>0 )C, and on the )C we are using the 1yper,erminal program to send and receive data serially% )I and )2 o" the 8051 are connected to -$!s and switches, respectively% (rite an 8051 program to (a send to the )C the message @(e *re 'eady@ (b receive any data sent by the )C and put it on -$!s connected to )1 (c get data on switches connected to )2 and send it to the )C serially% ,he program should per"orm part (a once, but parts (b and (c continuously% :se the <800 baud rate% (4 2(3( a (rite the "unction o" *-$, 3&C and $&C pin o" *!C 0808A080/( b !raw inter"acing diagram o" !*C 0808 with microcontroller 8051and generate saw tooth wave"orm at the output o" !*C 0808% &' (rite a program to generate a sine wave% *lso show the calculations "or the same% !raw the inter"acing diagram% c * robotic arm consist o" two stepper motors 01 ? 02 at two Boints% $ach motor has step angle o" 2 degree% (rite an *-) to rotate 01 by 4< dgre clocCwise and then 02 by 2< degree anticlocCwise% :se < step se9uence , assume 01 connected to )1and 02 to port )2% &' Inter"ace Ceyboard o" <D< matri# ? write a program to send the *3CII code o" pressed Cey to port 0% d !esign a memory system "or 8051 using 8E '&0 as code memory ? <E '*0 as data memory% (2

(4

(4

&'

(rite a short note on 80/4 microcontroller and the design parameters o" $mbedded 3ystem%

(4

You might also like