Microcontroller and Embedded Systems:

Size: px
Start display at page:

Download "Microcontroller and Embedded Systems:"

Transcription

1 Microcontroller and Embedded Systems: Branches: 1. Electronics & Telecommunication Engineering 2. Electrical & Electronics Engineering Semester: 6 th Semester / 7 th Semester 1. Explain the differences between Microprocessor based system and Microcontroller based system. 2. What is OTP, explain OTP in details. 3. Explain the applications of microcontroller. 4. What is embedded microcontroller? 5. List different 8051 family microcontroller with their features indicating serial port, timers, interrupt sources and memories. 6. List the differences between 8051, 8052, 8031, 8032, 8751, 8752, AT89C2051, AT89C51, and AT89C Explain the features of Intel s 8051 Microcontroller. 8. Draw and explain the architecture of Microcontroller What is the Program status word explains in details with suitable example. 10. Explain register structure of the 8051 Microcontroller. 11. Explain following registers of the 8051 Microcontroller DPTR, PC and SP. 12. Explain the memory organization of the 8051 Microcontroller. 13. What is the special function register, what are their significances in the 8051 Microcontroller? 14. What are the addressing modes? Explain addressing modes of the Microcontroller 8051 in details. 15. Write an ALP to add RAM location contents from 40 44h. Store the result of low byte in register A and higher byte in register R Write a program to add two 16 bit numbers 2345h and 567Ch. Place the sum in register R7 and R6. R6 should have the lower byte of the result. 17. Write an ALP to add 5 BCD numbers present in RAM memory location starting at 40h. Store the result of lower byte in register A and higher byte in register R Write an ALP to transfer value 41h serially via pin P2.1.Put two high at the start and two high at the end of the data. Send the byte LSB first. 19. Write a program to copy data byte serially one bit at a time from port pin P1.7 and save it in register R2. The byte comes in with LSB first. 20. Write an ALP to count even and odd numbers from the 10 bytes present in the memory location from 30h. Put the even and odd count in register R7 and R6 respectively. 21. Write an ALP to count positive and negative numbers from the 10 bytes present in the memory location from 30h. Put the +ve and ve count in register R7 and R6 respectively. 22. Write an ALP to find smallest byte from 10 bytes present in the memory location from 30h. Put the smallest byte in register R Write an ALP to find largest byte from 10 bytes present in the memory location from 30h. Put the largest byte in memory location 7Fh. 24. Write an ALP to find cubes of a number 0-6 and put the result in the memory location from 30h. Created By: N. B. Bahadure, Associate Professor, E & TC Deptt. B. I. T. Durg 1

2 25. Write an ALP to count byte 00h from 20 bytes present in the memory location from 30H. Put the result in the external memory at 0200h. 26. Write an ALP to count byte 55h from 20 bytes present in the memory location from 30H. Put the result in the external memory at 0200h. 27. Assume that register A has packed BCD number write a program to convert packed BCD number to two ASCII numbers and place them in register R2 and R Explain the following instruction + DPTR, CALL, RET, INC DPTR, SWAP. 29. Explain absolute and long call with suitable examples. 30. State the contents of RAM location after the following program SETB PSW.3 MOV R1, #67H MOV R5, #34H MOV R7, #0ACH MOV R2, #55H 31. Write a program to add 3 to the accumulator 10 times. Save the result in register R Write a program to load accumulator with AAh and complement the accumulator 700 times. 33. Find the size of the delay in the following program. Assume that the crystal frequency for the 8051 Microcontroller is MHz. Delay: MOV R3, #200 Here: DJNZ R3, Here RET 34. Find the size of the delay in the following program. Assume that the crystal frequency for the 8051 Microcontroller is MHz MOV R3, #250 Here: NOP NOP NOP NOP DJNZ R3, Here RET 35. Find the size of the delay in the following program. Assume that the crystal frequency for the 8051 Microcontroller is MHz MOV R2, #200 Rep: MOV R3, #250 Here: NOP NOP DJNZ R3, Here DJNZ R2, Rep RET 36. Write a program to clear 16 RAM locations starting at RAM address 60h. 37. Write an ALP to find number of 1 s in a given byte. 38. Write an ALP to find number of one s in a given byte and stored the result in external memory location at 4000h. 39. Write a program to a. Write a value 55h to the RAM locations 40h 4Fh Created By: N. B. Bahadure, Associate Professor, E & TC Deptt. B. I. T. Durg 2

3 b. Add all these RAM location contents together and save the result in RAM location 60h and 61h. 40. An external ROM uses the 8051 data space to store the look up table starting at address 1000h. Write a program to read 30 bytes of these data and send them to port P External data ROM has a look up table for the squares of numbers 0 9. Write a program to copy the table elements into the internal ram starting at address 30h. The look up table starts at address 0000h. 42. Write a program to read 200 bytes of data from port P1 and save the data in external RAM starting at address 5000h. 43. Write an ALP to calculate squares of 0 9 and put the result in the memory location from 30h. 44. Write an ALP to calculate squares of BCD numbers 0 9 and put the result in the memory location from 30h. 45. Write a program to toggle all the bits of port P1 by sending to its value 55h and AAh continuously. Put a time delay in between each issuing of data to port Explain the following pins of the 8051 Microcontroller EA, PSEN, ALE, and RXD. 47. Draw and explain power on reset circuit. 48. What are the reset values for the register of 8051 Microcontroller? Also explain the importance of Port P0 and Port P Write an ALP to toggle all the bits of P0, P1 and P2 every ¼ second. Assume a crystal frequency of MHz 50. Write an ALP a. To create a square wave of 50% duty cycle on bit 0 of port 1. b. To create a square wave of 66% duty cycle on bit 3 of port 1. c. To create a square wave of 33% duty cycle on bit 4 of port 1. Timers of 8051 Microcontroller: 51. Explain the registers of timers. Also explain TMOD and TCON registers. 52. Explain the following: a. 13 bit timer mode b. 16 bit timer mode c. 8 bit timer mode or auto reload mode d. Split timer mode 53. Draw and explain timer/counter 0 and timer/counter 1 for the mode Draw and explain timer/counter 0 and timer/counter 1 for the mode Explain how to initialize the timer with suitable example. 56. Explain 13 bit timer mode and split timer mode of timers 8051 Microcontroller. 57. Assume that XTAL = MHz Write an ALP to generate pulse width of 5ms on port pin P2.3 using timer Assume that XTAL = MHz, write a program to generate a square wave of 2 KHz frequency on pin P1.5 using timer Write an assembly language program to generate square wave of 200 µs frequency using timer 1 in mode 2. Assume that XTAL = MHz Created By: N. B. Bahadure, Associate Professor, E & TC Deptt. B. I. T. Durg 3

4 60. Write an ALP to generate square wave of 50 Hz frequency on pin P2.3 using timer 1. Assume that XTAL = MHz 61. Write an ALP to generate square wave of 7.2 Hz frequency on the port pin P1.2 using Timer 1 in auto reload mode. Assume that XTAL = MHz 62. Write an ALP to generate square wave of 100 µs frequency using Timer 0 in auto reload mode with 66% duty cycle. Assume that XTAL = MHz 63. Find the frequency of a square wave generated on Pin P1.0 MOV TMOD,#2H MOV TH0,#0 AGAIN: MOV R5,#250 ACALL DELAY CPL P1.0 SJMP AGAIN DELAY: SETB TR0 BACK: JNB TF0,BACK CLR TR0 CLR TF0 DJNZ R5,DELAY RET 64. Assume that XTAL = MHz, find a. The frequency of square wave generated on P1.0 in the following program and b. The smallest frequency achievable in this program and TH value to do that. MOV TMOD, #20H MOV TH1, #5 SETB TR1 L1: JNB TF1, L1 CPL P1.0 CLR TF1 SJMP L1 65. Assume that clock pulses are fed into pin T1, write a program for counter 1 in mode 2 to count the pulses and display the state of TL1 register count on port P2. Serial Communication of 8051 Microcontroller: 66. What is serial communication? Explain integrated means of serial communication. 67. Explain the type of transmission used in serial communication. 68. Explain the following: Simplex communication, Duplex Communication and Asynchronous serial communication in details with examples. 69. Explain asynchronous serial communication using suitable example. 70. What are the means of data transfer rate in serial communication explain in details. 71. Explain in details how to write to the serial port. 72. Explain SBUF and SCON register of 8051 serial communication. 73. Explain the importance of transmit interrupt flag and receive interrupt flag bit of serial communication. Created By: N. B. Bahadure, Associate Professor, E & TC Deptt. B. I. T. Durg 4

5 74. Write an ALP for the 8051 to transfer character A serially at 4800 baud rate, continuously. 75. Write a program to transfer the message YES serially at 9600 baud rate, 8 bit data, and 1 stop bit continuously. 76. Write an ALP to receive bytes of data serially and put them in port P1. Set the baud rate at 4800, 8 bit data and 1 stop bit. 77. Explain PCON register. Also explain how baud rate will be doubled without increasing the crystal frequency. 78. Assume that XTAL = MHz Write an ALP to transfer letter B in register A and then serially continuously. Use baud rate at Write a program to transfer the message CSVTU serially at 9600 baud rate, 8 bit data, and 1 stop bit continuously. 80. Assume that the 8051 serial port is connected to the COM port of the IBM PC, and on the PC we are using the HyperTerminal program to send and receive data serially. P1 and P2 of the 8051 are connected to the LED's and switches respectively. write an ALP (a) Send to the PC the message "we are ready" (b) Receive any data sent by the PC and put it on LED's connected to the port P1 and (c) Get data on switches connected to the port P2 and send it to the PC serially. The program should perform part (a) once but part (b) and (c) continuously. Use 4800 baud rate. 81. Explain how the baud rate of serial communication in the 8051 Microcontroller is doubled without increasing the crystal frequency. Explain with suitable example. 82. Assuming that XTAL = MHz for the following program state (a) What this program does. (b) Compute the frequency used by timer 1 to set the baud rate and (c) Find baud rate of the data transfer. 83. Assume a switch is connected to pin P1.7. Write a program to monitor its status and send two messages to the serial port continuously as follows. SW = 0 send "NO" SW = 1 send "YES" Assume XTAL = MHz, 9600 baud rate, 8 bit data. 84. Write an ALP to transfer the message "NBBAHADURE" serially at baud rate with 8 bit data, 1 start bit and 1 stop bit continuously. 85. Write an ALP to transfer the ASCII character "A" serially at baud rate with 9 bits continuously. Set 9 th bit as high bit. Interrupts of 8051 Microcontroller: 86. Explain the differences between Interrupts and Polling. 87. Explain the Interrupts of 8051 Microcontroller in details. 88. Draw and explain interrupt structure of 8051 Microcontroller also explain enabling and disabling the interrupts. 89. Explain Interrupt enable and Interrupt priority register. 90. Show the instruction to a. Enable serial interrupt, timer 0 interrupt and external hardware interrupt 1. b. Disable timer 0 interrupt. Created By: N. B. Bahadure, Associate Professor, E & TC Deptt. B. I. T. Durg 5

6 c. Show how to disable all the interrupt with a single instruction. 91. Program the IP register to assign the highest priority to external interrupt 1 then discuss what happen if INT0, INT1 and TF0 are activated at the same time. 92. Assume that after reset the IP register is set by the instruction MOV IP, #0Ch. Discuss the sequence in which the interrupts are serviced. 93. Write a program to generate square wave of 50Hz frequency on P1.2 using interrupt for timer 0. Assume XTAL = MHz 94. Write an ALP to gets data from P1 and send to P2 continuously, while giving a copy of it to the serial communication port to be transferred serially. Assume XTAL = MHz set the baud rate at Write a program that continuously gets 8 bit data from Port P0 and send it to port P1 while simultaneously creating a square wave of 200 μsec period on port pin P2.1. Use timer 0 to create the square wave. Assume that XTAL = MHz 96. Write a program to gets data from P1 and sends to P2 continuously while incoming data from serial port is sent to P0. Assume XTAL = MHz set the baud rate at Assume that INT1 pin is connected to a switch that is normally high, whenever it goes low, it should turn ON LED. The LED is connected to the port pin P1.4 and is normally OFF. When it is turned ON it should stay on for a fraction of second. as long as switch is pressed low, the LED should stay ON. 98. Assume that pin P3.3 is connected to a pulse generator, write a program in which the falling edge of the pulse will send a high to P1.4, which is connected to the LED. In other words, the LED is turned ON and OFF at the same rate as the pulses is applied to the INT1 pin. 99. Write a program using interrupts to do the following: (a) Receive data serially and send it to Port P0. (b) Gets data from port P1 and transferred serially and give a copy to port P2. (c) Make timer 0 to generate a square wave of 5 KHz frequency on P0.4 Assume XTAL = 12 MHz set baud rate 4800 Memory Interfacing with 8051 Microcontroller: 100. Show that the design of an 8031 based system with 8K bytes of program ROM and 8K bytes of data ROM Design the interfacing system of 16 K 8 data RAM with 8051 Microcontroller. Use starting addresses 8000h Design the interfacing of 8031 based system with 16 KB program space, 16 KB of data ROM starting at 0000h and 16 KB of NV RAM starting at 8000h. Show the design using 74LS138 for the address decoder Design the interfacing system of 8051 Microcontroller with 256K 8 data NV RAM. Also write an assembly language program to read the contents of memory location from 20000h and store the contents in internal memory location form 30h Find the address range of the memory design for Y0, Y3 and Y6 of the 74LS 138 for the given diagrammed design shown in figure (1) Created By: N. B. Bahadure, Associate Professor, E & TC Deptt. B. I. T. Durg 6

7 Fig (1) Applications of 8051/AT89C Design an application to interface LED with the port pin P1.2 and write an assembly language program to blink the LED Design an application to interface 7-segment LED with 8051 and write an ALP to display number 8 on it Design an application to interface 2 Seven segment LED with 8051 and write an ALP to display 3 and 5 on it Design an application to interface 7-segment LED with 8051 Microcontroller and write an ALP to display 0 9 on it 109. Design an application to interface 2*16 LCD with 8051 and write an ALP to display "BIT DURG" on it Design an application to interface stepper motor with 8051 and write an ALP to rotate stepper motor clockwise continuously Design an application to interface stepper motor with 8051 and write an ALP to rotate stepper motor anticlockwise continuously A switch is connected to pin P2.7. write a program to monitor the status of switch and perform the following. (a) If SW = 0 ; the stepper motor moves clockwise (b) If SW = 1 ; the stepper motor moves anticlockwise 113. Design an application to interface ADC 0804 with Interface ADC 0804 with 8051 Microcontroller. write an ALP to brings an analog input into register A and then stored then in the internal memory location from 30h onwards Interface ADC 0808/0809 with 8051 Microcontroller and write an ALP to select channel 1 and stored the converted data by channel 1 into internal memory location from 30h onwards Design an application to interface DAC 0808 with 8051 Microcontroller. Write an ALP to generate a sine wave continuously on DAC. Use port P1 of Interface DAC 0808 with 8051 µc. Write an ALP to generate a stair- step ramp on port P Interface DAC 0808 with 8051 µc. Write an ALP to generate reverse sawtooth waveform using port P Interface DAC 0808 with 8051 µc. Write an ALP to generate triangular waveform at the DAC output. Generate 200 cycles. Use port P1. Created By: N. B. Bahadure, Associate Professor, E & TC Deptt. B. I. T. Durg 7

8 120. Design an application to interface 8 * 8 matrix keyboards with 8051 Microcontroller Interface 4 * 4 matrix keyboards with 8051 Microcontroller. Write an ALP to read the keypad and send the ASCII code of pressed key to the port P0. P1.0 P1.3 Connected to rows (output) P2.0 P2.3 Connected to columns (Input) 122. Design an application to interface 4 * 4 matrix keyboards with 8051 Microcontroller Design an application for digital voltmeter with 8051 Microcontroller. Display digital voltage value on the LCD Design an application for frequency counter with 8051 Microcontroller and display counter value on LCD Design an application to interface two 8051 Microcontroller, write a program to transmit character byte serially from one microcontroller and receive serially by other microcontroller. Also display received character byte on display device connected with the port P1. Dear students any queries on the above questions and also on the others related topics to the Microcontroller are welcome. Please put up your queries on any of the topics of Microcontroller on my ID (nbahadure@gmail.com -- pls mention sub: BE (ET)/EE) or discuss with me directly as per convenience. Please remember the following for examination (if possible try this): 1. All Ur solution Theory or Programs must be in well manner and up to the point. Also highlight important points. 2. If problem solved then please make a habit to outline Ur answers by drawing square or underline it (Don t use other ink pen other than blue or black). 3. If u attempt que -1 Part (a) and u wish to attempt then Part (b) or (c) of que -1 later but not at the moment leave the space for it. But don t solve other questions part and then again remaining parts of que -1 its make lot of confusion for the checker so it must be ignore. 4. Finally all blank spaces are simply cross. 5. If possible avoids mistakes don t rub it again and again make better visibility of your attempt. Created By: N. B. Bahadure, Associate Professor, E & TC Deptt. B. I. T. Durg 8

ELEG3923 Microprocessor Ch.9 Timer Programming

ELEG3923 Microprocessor Ch.9 Timer Programming Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.9 Timer Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Programming 8051 Timers Counter programming Timer programming

More information

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC

More information

Department of Electronics and Instrumentation Engineering Question Bank

Department of Electronics and Instrumentation Engineering Question Bank www.examquestionpaper.in Department of Electronics and Instrumentation Engineering Question Bank SUBJECT CODE / NAME: ET7102 / MICROCONTROLLER BASED SYSTEM DESIGN BRANCH : M.E. (C&I) YEAR / SEM : I / I

More information

CPEG300 Embedded System Design. Lecture 8 Timer

CPEG300 Embedded System Design. Lecture 8 Timer CPEG300 Embedded System Design Lecture 8 Timer Hamad Bin Khalifa University, Spring 2018 Review 8051 port and port schematic Internal read/write data path Serial communication vs. parallel communication

More information

Interrupt Programming: Interrupts vs. Polling Method:

Interrupt Programming: Interrupts vs. Polling Method: UNIT 4: INTERRUPT PROGRAMMING & SERIAL COMMUNICATION WITH 8051: Definition of an interrupt, types of interrupts, Timers and Counter programming with interrupts in assembly. 8051 Serial Communication: Data

More information

اصول ميکروکامپيوترها استاد درس: دکتر http://ee.iust.ac.ir/rahmati/index.htm rahmati@iust.ac.ir ا درس Email و Website برای تکاليف و... : http://eel.iust.ac.ir/rahmati/ ١ هجدهم فصل ا شنايی با تايمرهای 8051

More information

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture Department of Electrical Engineering Lecture 4 The 8051 Architecture 1 In this Lecture Overview General physical & operational features Block diagram Pin assignments Logic symbol Hardware description Pin

More information

Introduction To MCS-51

Introduction To MCS-51 Introduction To MCS-51 By Charoen Vongchumyen Department of Computer Engineering Faculty of Engineering KMITLadkrabang 8051 Hardware Basic Content Overview Architechture Memory map Register Interrupt Timer/Counter

More information

CoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation

CoE3DJ4 Digital Systems Design. Chapter 5: Serial Port Operation CoE3DJ4 Digital Systems Design Chapter 5: Serial Port Operation Serial port 8051 includes an on-chip serial port Hardware access to the port is through TXD and RXD (Port 3 bits 1 and 0) Serial port is

More information

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller and Applications Subject Code:

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller and Applications Subject Code: MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller and Applications Subject Code: I m p o r t a n t I n s t r u c t i o n s t o e x a m i n e r s : 1) The answers should be examined by key

More information

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices.

3. (a) Explain the steps involved in the Interfacing of an I/O device (b) Explain various methods of interfacing of I/O devices. Code No: R05320202 Set No. 1 1. (a) Discuss the minimum mode memory control signals of 8086? (b) Explain the write cycle operation of the microprocessor with a neat timing diagram in maximum mode. [8+8]

More information

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK

INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK Course Name Course Code Class Branch INSTITUTE OF AERONAUTICAL ENGINEERING Dundigal, Hyderabad - 500 04 ELECTRONICS AND COMMUNICATION ENGINEERING QUESTION BANK : Microprocessors and Microcontrollers :

More information

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013)

BHARATHIDASAN ENGINEERING COLLEGE. III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013) BHARATHIDASAN ENGINEERING COLLEGE III Year / V Semester / EEE MICROPROCESSORS AND MICROCONTROLLERS (R-2013) FREQUENTLY ASKED QUESTIONS IN UNIVERSITY EXAMINATION PART A UNIT 1-8085 PROCESSOR 1. Draw the

More information

Chapter 09. Programming in Assembly

Chapter 09. Programming in Assembly Chapter 09 Programming in Assembly Lesson 05 Programming Examples for Timers Programming TMOD Register 3 Write instructions to run T0 in Mode 0, external count inputs, internal start/stop control ANL TMOD,

More information

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Programming in Assembly Module No: CS/ES/12 Quadrant 1 e-text

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Programming in Assembly Module No: CS/ES/12 Quadrant 1 e-text e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Serial Port Programming in Assembly Module No: CS/ES/12 Quadrant 1 e-text In this lecture, serial communication control register

More information

EE6502- MICROPROCESSOR AND MICROCONTROLLER

EE6502- MICROPROCESSOR AND MICROCONTROLLER . EE6502- MICROPROCESSOR AND MICROCONTROLLER UNIT III - 8051 MICROCONTROLLER PART - A 1. What is Microcontroller? A device which contains the microprocessor with integrated peripherals like memory, serial

More information

8051 Timers. Class 7 EE4380 Fall Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

8051 Timers. Class 7 EE4380 Fall Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Timers Class 7 EE4380 Fall 2002 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Introduction Timers Timing devices - Generate specific time delay Event

More information

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT 2 THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

Interrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

Interrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas 8051 - Interrupts EE4380 Fall 2001 Class 9 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Polling Vs Interrupts Polling: MCU monitors all served devices continuously,

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many

More information

MLR INSTITUTE OF TECHNOLOGY DUNDIGAL , HYDERABAD

MLR INSTITUTE OF TECHNOLOGY DUNDIGAL , HYDERABAD Name Code : 56012 Class Branch MR INSTITUTE OF TECHNOOGY DUNDIGA - 500 043, HYDERABAD EECTRONICS AND COMMUNICATION ENGINEERING ASSIGNMENT QUESTIONS : MICROPROCESSORS AND MICROCONTROERS : III - B. Tech

More information

The 8051 microcontroller has two 16-bit timers/counters called T0 and T1.

The 8051 microcontroller has two 16-bit timers/counters called T0 and T1. Counters and Timers: The 8051 microcontroller has two 16-bit timers/counters called T0 and T1. As their names suggest, timer counts internal clock pulse i.e. machine cycle to provide delay. Counter counts

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY GUJARAT TECHNOLOGICAL UNIVERSITY INSTRUMENTATION & CONTROL ENGINEERING (17) MICROCONTROLLER & INTERFACING (IC) SUBJECT CODE: 21517 B.E. 5 th SEMESTER Type of course: Core Engineering Prerequisite: 1. Fundamental

More information

Microcontroller and Applications

Microcontroller and Applications S.Y. Diploma : Sem. IV [DE/EJ/ET/EN/EX/EQ/IS/IC/IE] Microcontroller and Applications Time: 3 Hrs.] Prelim Question Paper Solution [Marks : 70 Q.1 Attempt any FIVE of the following : [10] Q.1(a) Define

More information

Mod-3: Interrupts,Timer operation,serial communication 1

Mod-3: Interrupts,Timer operation,serial communication 1 Mod-3: Interrupts,Timer operation,serial communication 1 Module-3 Contents: Interrupts - interrupt sources - interrupt handling programming examples. Timers operation different modes waveform generation-

More information

8051 Timers and Serial Port

8051 Timers and Serial Port 8051 Timers and Serial Port EE4380 Fall 2001 Class 10 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Timer: Mode 1 Operation (recap) 16 bit counter. Load the

More information

Question Bank Microprocessor and Microcontroller

Question Bank Microprocessor and Microcontroller QUESTION BANK - 2 PART A 1. What is cycle stealing? (K1-CO3) During any given bus cycle, one of the system components connected to the system bus is given control of the bus. This component is said to

More information

Q.1. A) Attempt any THREE of the following:

Q.1. A) Attempt any THREE of the following: Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate

More information

MCS-51 Serial Port A T 8 9 C 5 2 1

MCS-51 Serial Port A T 8 9 C 5 2 1 MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.

More information

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE ENGINEERING

VALLIAMMAI ENGINEERING COLLEGE. SRM Nagar, Kattankulathur DEPARTMENT OF COMPUTER SCIENCE ENGINEERING VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur-603 203 DEPARTMENT OF COMPUTER SCIENCE ENGINEERING EC6504 MICROPROCESSOR AND MICROCONTROLLER YEAR / SEMESTER: II / IV ACADEMIC YEAR: 2015-2016 (EVEN

More information

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING

UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING UNIT THE 8051 INSTRUCTION SET AND PROGRAMMING Instructions Alphabetical List of Instructions ACALL: Absolute Call ADD, ADDC: Add Accumulator (With Carry) AJMP: Absolute Jump ANL: Bitwise AND CJNE: Compare

More information

Unit-I. 1. INTRODUCTION TO MICROCONTROLLERS. Micro controller, types, selection of a microcontroller and applications

Unit-I. 1. INTRODUCTION TO MICROCONTROLLERS. Micro controller, types, selection of a microcontroller and applications Department of Technical Education DIPLOMA COURSE IN ELECTRONICS AND COMMUNICATION ENGINEERING Fourth Semester MICROCONTROLLERS AND APPLICATION Contact Hours/Week : 04 Contact Hours/Semester : 64 CONTENTS

More information

EC 6504 MICROPROCESSOR AND MICROCONTROLLER

EC 6504 MICROPROCESSOR AND MICROCONTROLLER DEPARTMENTOFELECTRONICS&COMMUNICATIONENGINEERING EC 6504 MICROPROCESSOR AND MICROCONTROLLER UNIT I THE 8086 MICROPROCESSOR PARTA 1. What is microprocessor? What is the difference between a MP and CPU?

More information

VALLIAMMAI ENGINEERING COLLEGE

VALLIAMMAI ENGINEERING COLLEGE VALLIAMMAI ENGINEERING COLLEGE SRM Nagar, Kattankulathur 603 203 DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING QUESTION BANK V SEMESTER EE6502- MICROPROCESSORS AND MICROCONTROLLERS Regulation 2013

More information

Microcontroller & Interfacing

Microcontroller & Interfacing Course Title Course Code Microcontroller & Interfacing EC406 Lecture : 3 Course Credit Practical : 1 Tutorial : 0 Total : 4 Course Objective At the end of the course the students will be able to Understand

More information

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution

Vidyalankar T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution 1. (a) 1. (b) T.E. Sem. V [ETRX] Microprocessors and Microcontrollers I Prelim Question Paper Solution Priority modes. 1) Fully Nested Mode : It is a general purpose mode. IR 0 highest priority IR 1 lowest

More information

INTERRUPTS PROGRAMMING

INTERRUPTS PROGRAMMING INTERRUPTS PROGRAMMING The 8051 Microcontroller and Embedded Systems: Using Assembly and C Mazidi, Mazidi and McKinlay Chung-Ping Young 楊中平 Home Automation, Networking, and Entertainment Lab Dept. of Computer

More information

Department of EIE / Pondicherry Engineering College. Timer/Counters. Department of EIE / Pondicherry Engineering College 1

Department of EIE / Pondicherry Engineering College. Timer/Counters. Department of EIE / Pondicherry Engineering College 1 Timer/Counters Department of EIE / Pondicherry Engineering College 1 The 8051 has two internal sixteen bit hardware Timer/Counters. Each Timer/Counter can be configured in various modes, typically based

More information

Timer-1 can be run using the internal clock, fosc/12 (timer mode) or from any external source via pin T1 (P3.5) (Counter mode).

Timer-1 can be run using the internal clock, fosc/12 (timer mode) or from any external source via pin T1 (P3.5) (Counter mode). EC 6504 MICROPROCESSOR AND MICROCONTROLLER Electronics and Communication Engineering Fifth Semester UNIT-V Part A 1. List the modes of Timer in 8051. [N/D16] The timers available in 8051 are Timer 0 (T0)

More information

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS

QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS FATIMA MICHAEL COLLEGE OF ENGINEERING & TECHNOLOGY Senkottai Village, Madurai Sivagangai Main Road, Madurai -625 020 QUESTION BANK CS2252 MICROPROCESSOR AND MICROCONTROLLERS UNIT 1 - THE 8085 AND 8086

More information

UNIT IV MICROCONTROLLER

UNIT IV MICROCONTROLLER UNIT IV 8051- MICROCONTROLLER Prepared by R. Kavitha Page 1 Application Prepared by R. Kavitha Page 2 Pin Description of the 8051 UNIT IV- 8051 MICROCONTROLLER P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 RST

More information

Three criteria in Choosing a Microcontroller

Three criteria in Choosing a Microcontroller The 8051 Microcontroller architecture Contents: Introduction Block Diagram and Pin Description of the 8051 Registers Some Simple Instructions Structure of Assembly language and Running an 8051 program

More information

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text In this lecture the detailed architecture of 8051 controller, register bank,

More information

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051:

MICROPROCESSORS AND MICROCONTROLLERS MATERIAL. Features of 8051: DEPARTMENT OF ECE MICROPROCESSORS AND MICROCONTROLLERS MATERIAL UNIT V 8051 MICROCONTROLLERS To make a complete microcomputer system, only microprocessor is not sufficient. It is necessary to add other

More information

ELEG3923 Microprocessor Ch.10 Serial Port Programming

ELEG3923 Microprocessor Ch.10 Serial Port Programming Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.10 Serial Port Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Basics of Serial Communication Serial port programming

More information

ELEG3923 Microprocessor Ch.4 I/O Ports

ELEG3923 Microprocessor Ch.4 I/O Ports Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.4 I/O Ports Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 8051 I/O programming I/O bit manipulation programming I/O PORT

More information

8051 Serial Port. EE4380 Fall02 Class 10. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

8051 Serial Port. EE4380 Fall02 Class 10. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Serial Port EE4380 Fall02 Class 10 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Serial Comm. - Introduction Serial Vs Parallel Transfer of data Simplex,

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller 1 Salient Features (1). 8 bit microcontroller originally developed by Intel in 1980. (2). High-performance CMOS Technology. (3). Contains Total 40 pins. (4). Address bus is of 16 bit

More information

8051 Serial Communication

8051 Serial Communication 8051 Serial Communication Basics of serial communication Parallel: transfers eight bits of data simultaneously over eight data lines expensive - short distance fast Serial : one bit at a time is transferred

More information

CHAPTER TIMER PROGRAMMING

CHAPTER TIMER PROGRAMMING CHAPTER 9 8051 TIMER PROGRAMMING 8051 Timers The 8051 has two timers/counters, they can be used as Timers to generate a time delay Event counters to count events happening outside the microcontroller Both

More information

2. Write an 8051 program to generate a square wave of 25 khz at pin P2.3 using XTAL = 12 MHz. Solution:

2. Write an 8051 program to generate a square wave of 25 khz at pin P2.3 using XTAL = 12 MHz. Solution: Assignment 2 1. Assume that 5 binary data items are stored in RAM locations starting at 50h, as shown below. Write a program to find the sum of all the numbers. The calculation is in 16-bit format and

More information

WINTER 14 EXAMINATION

WINTER 14 EXAMINATION Subject Code: 17534 WINTER 14 EXAMINATION Model Answer Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2)

More information

MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following.

MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following. MODEL ANSWER SUBJECT- MICROCONTROLLER(12187) CLASS-EJ5E CLASS TEST-02 Q1.)Attempt any THREE of the following. (9M) 1) Describe the instructions SWAP A and MOVX@DPTR,A with one example. (3Marks) SWAP A

More information

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC.

Module I. Microcontroller can be classified on the basis of their bits processed like 8bit MC, 16bit MC. MICROCONTROLLERS AND APPLICATIONS 1 Module 1 Module I Introduction to Microcontrollers: Comparison with Microprocessors Harvard and Von Neumann Architectures - 80C51 microcontroller features - internal

More information

COURSE NAME : ELECTRICAL ENGINEERING GROUP COURSE CODE : EE/EP SEMESTER : FIFTH SUBJECT TITLE : Microcontroller and Applications (Elective I for EP) SUBJECT CODE : Teaching and Examination Scheme: Teaching

More information

4. (a) With a neat sketch explain 8237 DMA controller and its operation? (b) With the help of basic cell explain SRAM and DRAM?

4. (a) With a neat sketch explain 8237 DMA controller and its operation? (b) With the help of basic cell explain SRAM and DRAM? Code No: R05220504 Set No. 1 II B.Tech II Semester Regular Examinations, Apr/May 2008 MICROPROCESSORS AND INTERFACING ( Common to Computer Science & Engineering, Information Technology and Computer Science

More information

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller

Architecture & Instruction set of 8085 Microprocessor and 8051 Micro Controller of 8085 microprocessor 8085 is pronounced as "eighty-eighty-five" microprocessor. It is an 8-bit microprocessor designed by Intel in 1977 using NMOS technology. It has the following configuration 8-bit

More information

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI

DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI DHANALAKSHMI COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING YEAR : III SEM : VI EE2354- MICROPROCESSORS AND MICROCONTROLLER UNIT I 8085 and 8086 PROCESSOR PART A 1. Define

More information

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET

SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET 1 SYLLABUS UNIT - I 8086/8088 ARCHITECTURE AND INSTRUCTION SET Intel 8086/8088 Architecture Segmented Memory, Minimum and Maximum Modes of Operation, Timing Diagram, Addressing Modes, Instruction Set,

More information

EC6504 MICROPROCESSOR AND MICROCONTROLLER QUESTION BANK UNIT I - THE 8086 MICROPROCESSOR PART A

EC6504 MICROPROCESSOR AND MICROCONTROLLER QUESTION BANK UNIT I - THE 8086 MICROPROCESSOR PART A EC6504 MICROPROCESSOR AND MICROCONTROLLER Question Bank EC6504 MICROPROCESSOR AND MICROCONTROLLER QUESTION BANK UNIT I - THE 8086 MICROPROCESSOR 1. List the addressing modes of 8086?give examples [May

More information

Microcontrollers. Fig. 1 gives a comparison of a microprocessor system and a microcontroller system.

Microcontrollers. Fig. 1 gives a comparison of a microprocessor system and a microcontroller system. Syllabus: : Introduction to, 8051 Microcontroller Architecture and an example of Microcontroller based stepper motor control system (only Block Diagram approach). (5 Hours) Introduction to A microcontroller

More information

FACULTY OF ENGINEERING LAB SHEET

FACULTY OF ENGINEERING LAB SHEET FACULTY OF ENGINEERING LAB SHEET MICROCONTROLLER AND MICROPROCESSOR SYSTEMS ECE2216 TRIMESTER 1 (2017/2018) MP2: Construction and programming of a basic electronic piano *Note: On-the-spot evaluation may

More information

CPEG300 Embedded System Design. Lecture 6 Interrupt System

CPEG300 Embedded System Design. Lecture 6 Interrupt System CPEG300 Embedded System Design Lecture 6 Interrupt System Hamad Bin Khalifa University, Spring 2018 Correction Lecture 3, page 18: Only direct addressing mode is allowed for pushing or popping the stack:

More information

ET2640 Microprocessors

ET2640 Microprocessors ET2640 Microprocessors Unit -2 Processor Programming Concepts Basic Control Instructor : Stan Kong Email : skong@itt-tech.edu Figure 2 4 Bits of the PSW Register 8051 REGISTER BANKS AND STACK 80 BYTES

More information

CS 320. Computer Architecture Core Architecture

CS 320. Computer Architecture Core Architecture CS 320 Computer Architecture 8051 Core Architecture Evan Hallam 19 April 2006 Abstract The 8051 is an 8-bit microprocessor designed originally in the 1980 s by the Intel Corporation. This inexpensive and

More information

Q 1 a) Attempt any THREE of the following: 12 TMOD.7 TMOD.6 TMOD.5 TMOD.4 TMOD.3 TMOD.2 TMOD.1 TMOD.0 GATE C/T M1 M0 GATE C/T M1 M0

Q 1 a) Attempt any THREE of the following: 12 TMOD.7 TMOD.6 TMOD.5 TMOD.4 TMOD.3 TMOD.2 TMOD.1 TMOD.0 GATE C/T M1 M0 GATE C/T M1 M0 Page 1 of 33 Q 1 a) Attempt any THREE of the following: 12 Q 1 a i) Describe Timer modes of 8051. Ans: Timer 0 and Timer 1 can both be used as either Counters or Timers. There are 4 different operating

More information

www.vidyarthiplus.com www.vidyarthiplus.com www.vidyarthiplus.com www.vidyarthiplus.com www.vidyarthiplus.com Time : Three hours Reg. No. : B.E./B.Tech. DEGREE EXAMINATION, APRIL/MAY 2011 Sixth

More information

Chapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan

Chapter 6 Interrupts. (I. Scott Mackenzie) By: Masud-ul-Hasan Chapter 6 Interrupts (I. Scott Mackenzie) 1 Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program. It

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY ELECTRONICS AND COMMUNICATION (11) MICROCONTROLLER AND INTERFACING (EC) SUBJECT CODE: 2151001 B.E. 5 th SEMESTER Type of course: Microcontroller Architecture and Programming Prerequisite: Students should

More information

UNIT MICROCONTROLLER AND ITS PROGRAMMING

UNIT MICROCONTROLLER AND ITS PROGRAMMING M i c r o p r o c e s s o r s a n d M i c r o c o n t r o l l e r s P a g e 1 UNIT-7 8051 MICROCONTROLLER AND ITS PROGRAMMING INTRODUCTION The microcontroller incorporates all the features that are found

More information

8051 microcontrollers

8051 microcontrollers 8051 microcontrollers Presented by: Deepak Kumar Rout Synergy Institute of Engineering and Technology, Dhenkanal Chapter 2 Introduction Intel MCS-51 family of microcontrollers consists of various devices

More information

ENE 334 Microprocessors

ENE 334 Microprocessors Page 1 ENE 334 Microprocessors Lecture 7: MCS-51 Architecture I : Dejwoot KHAWPARISUTH http://webstaff.kmutt.ac.th/~dejwoot.kha/ ENE 334 MCS-51 Architecture I Page 2 Outlines: 8051 Microcontroller Hardware

More information

CoE3DJ4 Digital Systems Design. Chapter 6: Interrupts

CoE3DJ4 Digital Systems Design. Chapter 6: Interrupts CoE3DJ4 Digital Systems Design Chapter 6: Interrupts Interrupts An interrupt is the occurrence of an event that causes a temporary suspension of a program while the condition is serviced by another program.

More information

MODEL ANSWER WINTER 17 EXAMINATION Subject Title: Microcontroller and applications

MODEL ANSWER WINTER 17 EXAMINATION Subject Title: Microcontroller and applications Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme. 2) The model answer and the answer written by candidate

More information

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families

The Microcontroller. Lecture Set 3. Major Microcontroller Families. Example Microcontroller Families Cont. Example Microcontroller Families The Microcontroller Lecture Set 3 Architecture of the 8051 Microcontroller Microcontrollers can be considered as self-contained systems with a processor, memory and I/O ports. In most cases, all that is

More information

Serial I-O for Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai (version 14/10/07)

Serial I-O for Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai (version 14/10/07) Serial I-O for 8051 Dinesh K. Sharma Electrical Engineering Department I.I.T. Bombay Mumbai 400 076 (version 14/10/07) 1 Motivation Serial communications means sending data a single bit at a time. But

More information

Scheme I. Sample Question Paper

Scheme I. Sample Question Paper Sample Question Paper Marks : 70 Time:3 Hrs. Q.1) Attempt any FIVE of the following :- 10 Marks (5X2) (a) Draw the symbol and write the truth table of Universal Gates. (b) In a 3 variable K Map if there

More information

2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?

2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to? ECE3710 Exam 2. Name _ Spring 2013. 5 pages. 102 points, but scored out of 100. You may use any non-living resource to complete this exam. Any hint of cheating will result in a 0. Part 1 Short Answer 1.

More information

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and

More information

ET2640. Unit 5:ADVANCED I/O TECHNIQUES Pearson Education, Inc. Pearson Prentice Hall Upper Saddle River, NJ 07458

ET2640. Unit 5:ADVANCED I/O TECHNIQUES Pearson Education, Inc. Pearson Prentice Hall Upper Saddle River, NJ 07458 ET2640 Unit 5:ADVANCED I/O TECHNIQUES skong@itt-tech.edu HARDWARE CONNECTION CHAPTER 8 8051 PINOUT XTAL1 & XTAL2 On-chip oscillator requires an external clock Quartz crystal clock 2 external 30 pf capacitors

More information

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller.

UNIT V MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS. 3.Give any two differences between microprocessor and micro controller. UNIT V -8051 MICRO CONTROLLER PROGRAMMING & APPLICATIONS TWO MARKS 1. What is micro controller? Micro controller is a microprocessor with limited number of RAM, ROM, I/O ports and timer on a single chip

More information

Government of Karnataka Department of Technical Education Board of Technical Examinations, Bengaluru

Government of Karnataka Department of Technical Education Board of Technical Examinations, Bengaluru Prerequisites Government of Karnataka Department of Technical Education Board of Technical Examinations, Bengaluru Course Title: Microcontroller & Applications Course Code : 15EC42T Credits : 4 Semester

More information

Lecture 1. Course Overview and The 8051 Architecture

Lecture 1. Course Overview and The 8051 Architecture Lecture 1 Course Overview and The 8051 Architecture MCUniversity Program Lectures 8051 architecture t System overview of C8051F020 8051 instruction set System clock, crossbar and GPIO Assembler directives

More information

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5

MICROCONTROLLER AND PLC LAB-436 SEMESTER-5 MICROCONTROLLER AND PLC LAB-436 SEMESTER-5 Exp:1 STUDY OF MICROCONTROLLER 8051 To study the microcontroller and familiarize the 8051microcontroller kit Theory:- A Microcontroller consists of a powerful

More information

Microcontroller Intel [Instruction Set]

Microcontroller Intel [Instruction Set] Microcontroller Intel 8051 [Instruction Set] Structure of Assembly Language [ label: ] mnemonic [operands] [ ;comment ] Example: MOV R1, #25H ; load data 25H into R1 2 8051 Assembly Language Registers

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller EE4380 Fall 2001 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 8051 Architecture Programmer s View Register Set Instruction Set Memory

More information

VALLIAMMAI ENGINEERING COLLEGE S.R.M. NAGAR, KATTANKULATHUR-603203. DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING VII-EEE EE6502- MICROPROCESSORS AND MICROCONTROLLERS QUESTION BANK UNIT I 1. What

More information

Microprocessors and Interfacng. Question bank

Microprocessors and Interfacng. Question bank Microprocessors & Interfacing 8086 ARCHITECTURE: UNIT-I Functional Diagram, Register Organization, Addressing modes, Instructions, Functional schematic, Minimum and Maximum mode operations of 8086, 8086

More information

8051 MICROCONTROLLER

8051 MICROCONTROLLER 8051 MICROCONTROLLER Mr.Darshan Patel M.Tech (Power Electronics & Drives) Assistant Professor Department of Electrical Engineering Sankalchand Patel College of Engineering-Visnagar WHY DO WE NEED TO LEARN

More information

8051 Microcontrollers

8051 Microcontrollers 8051 Microcontrollers Richa Upadhyay Prabhu NMIMS s MPSTME richa.upadhyay@nmims.edu March 8, 2016 Controller vs Processor Controller vs Processor Introduction to 8051 Micro-controller In 1981,Intel corporation

More information

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) WINTER 17 EXAMINATION Subject Name: Microcontroller Model Answer Subject Code: 17534 I m p o r t a n t I n s t r u c t i o n s t o e x a m i n e r s : 1) The answers should be examined by key words and

More information

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text In this lecture embedded C program for interrupt handling

More information

Timers and interrupts

Timers and interrupts Timers and interrupts CSCI 255: Introduction to Embedded Systems Keith Vertanen Copyright 2011 Timers Overview Creating fixed pauses Calculate length of events Counts events Generate baud rate for serial

More information

KINGS DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK. Subject Name: Microprocessors and Microcontrollers UNIT-I 8085 MICROPROCESSOR

KINGS DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK. Subject Name: Microprocessors and Microcontrollers UNIT-I 8085 MICROPROCESSOR KINGS COLLEGE OF ENGINEERING DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK Subject Name: Microprocessors and Microcontrollers Year/Sem: II/IV UNIT-I 8085 MICROPROCESSOR PART-A (2 MARKS) 1. Name the

More information

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller Subject Code:

MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller Subject Code: MODEL ANSWER SUMMER 17 EXAMINATION Subject Title: Microcontroller Subject Code: 17534 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING EC6504 MICROPROCESSOR AND MICRO CONTROLLER

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING EC6504 MICROPROCESSOR AND MICRO CONTROLLER DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING EC6504 MICROPROCESSOR AND MICRO CONTROLLER UNIT - I : THE 8086 MICROPROCESSOR PART A (2 Marks) 1. What are different

More information

Embedded Controller Programming

Embedded Controller Programming Embedded Controller Programming Counters, Timers and I/O in Assembly Language Ken Arnold Copyright 2000-2004 Ken Arnold 1 Outline Timer/Counters Serial Port More 8051 Instructions Examples Copyright 2000-2004

More information

WINTER 14 EXAMINATION Subject Code: Model Answer Page No: 1/ 26

WINTER 14 EXAMINATION Subject Code: Model Answer Page No: 1/ 26 WINTER 14 EXAMINATION Subject Code: 17509 Model Answer Page No: 1/ 26 Important Instructions to examiners: 1) The answers should be examined by key words and not as word-to-word as given in the model answer

More information

SUMMER 13 EXAMINATION

SUMMER 13 EXAMINATION MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC - 27001-2005 Certified) Subject Code: 12187 SUMMER 13 EXAMINATION Model Answer Important Instructions to examiners: 1) The answers should

More information

8051 I/O and 8051 Interrupts

8051 I/O and 8051 Interrupts 8051 I/O and 8051 Interrupts Class 7 EE4380 Fall 2002 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Agenda 8051 I/O Interfacing Scanned LED displays LCD displays

More information