Você está na página 1de 2

ITM UNIVERSE -VADODARA ELECTRONICS & COMMUNICATION ENGINEERING DEPARTMENT Class: 6th Sem- EE Subject : Microcontroller Assignment No:

1 Subject Code : 160903


PART A-THEORY Q1) give Difference Between Microprocessor & Microcontroller Q2) write a features of 8051 Q3)draw &explain Pin diagram of 8051 Q4) Draw & explain architecture of 8051 Q5) Explain PSW &Flag register Q6)Explain Following Terms 1) Clock, oscillator &Reset Circuit 2) Program Counters & DPTR Register 3) Stack &Stack Pointer 4) SFR Q7)Draw &explain Memory Organization in 8051 Q8)Draw &explain Input Output port in 8051 Q9)explain following terms 1) Assembler Directives 2) Linker 3) Compiler 4) Editor Q10) draw assembly Language Program with the help of Flowchart Q11) Explain Addressing Mode of 8051 Q12)Explain Branching &Machine Control Instruction with help of Example Q13)Explain Data type in c Q14) Explain following SFR 1) SCON 2) TCON 3) TMOD 4) PCON Q15)Give the difference between 1)SWAP-XCHG 2)MOVX-MOVC 3)bit Level ANL byte level ANL 4)SJMP-LJMP 5) ACALL-LCALL Q16)Explain operation &Programming step of Mode 1&2

PART B-Programs P1)write an ASM Program for 8051 to Toggle all Bits of P0,P1,P2 with every 0.5 sec use 11.0592 MHz P2) write an ASM Program for 8051 to Generate 10 KHz square wave on pin 3.2 with every 1sec with 25% duty cycle P3) write an ASM Program for 8051 to Find out 2s complement the no store in register Bank 2 &take the data from p2 &send it to p1 P4) ) write an ASM Program for 8051 to add 10 consecutive even no the no store in 30h location and result store in 45h location P5) write an ASM Program for 8051 to 10 hex no store in ram location 50h find out biggest no in this set the biggest no store in 66h location P6) write an ASM Program for 8051 to count the no of Nonzero Elements array and store it to 30h array starting at 40h and size of array is 16 P7) write an ASM Program for 8051 to generate square wave with On time 4ms &off time 10 ms on all pin of port 0 XTAL 22MHz P8) write an ASM Program for 8051 assuming that ROM space starting at 350h contain ITM UNIVERSE to transfer byte into RAM location 30h P9) Draw interfacing diagram to interface push-button switch at port pin P3.3 and relay with transistor circuit at port pin P2.0. Write program such that when push-button key is pressed, relay should become ON. When push-button key is pressed again relay should become OFF (i.e. toggling of relay by pushbutton switch). P10) Draw interfacing diagram for interfacing of common anode seven segment displays with 8051 microcontroller. Write program to display digit 0 to 9 at the interval of approximately 1 second (Consider crystal frequency 11.0592 MHz) P11) Write a program to check if the character string of length 7,stored in RAM location40H onwards is a palindrome. If it is, output Y to P1. Hint: A palindrome is a string in which the characters are same whether the string is read in forward or reverse direction. P12) Write a program to calculate the average of an array of unsigned positive integers. The array starts from 41H and number of terms in the array is available in location 40H. Store the calculated average in location 3FH. P13) Write an 8051 C program to toggle all the bits of P0 and P2 continuously with a 250ms delay. Use the inverting operator P14)Write a program to generate a square wave with frequency of 10KHz and with 50% duty cycle using Timer 0,mode 1. Assume the external crystal frequency of 12 MHz. P15) Write program to generate delay of 0.25 mS using timer-1 in mode-2. Show necessary calculation P16) Write a program to subtract 156F83H from 24759CH save the result In RAM location starting at 50H. P17) Write an assembly language program that find the position of the first high in an 8-bit data item. The data is scanned from D7 to D0 P18) Write an Embedded C program for 8051 to find number of positive and negative data among Five byte of array. Send number of positive data to Port P1 and negative data to Port P2. P19) Write an 8051 C program to convert 8-bit binary data todecimal and display the digits on P0,P1, and P2 P20) Write a program to get the x value from P1 and send 2 to P2, continuously Last date of submission 03/03/2014 by Prof. Rahul Patel

Você também pode gostar