This document is an assignment for the Microcontrollers course at A. C. Patil College of Engineering, focusing on various aspects of the 8051 microcontroller. It includes questions on instructions, assembler directives, addressing modes, and programming tasks such as generating waveforms and interfacing with LEDs and AC bulbs. The assignment is due on April 4, 2025, and is intended for students of the Electronics & Telecommunication Engineering department, Batch 2021-2025.
This document is an assignment for the Microcontrollers course at A. C. Patil College of Engineering, focusing on various aspects of the 8051 microcontroller. It includes questions on instructions, assembler directives, addressing modes, and programming tasks such as generating waveforms and interfacing with LEDs and AC bulbs. The assignment is due on April 4, 2025, and is intended for students of the Electronics & Telecommunication Engineering department, Batch 2021-2025.
Department of Electronics & Telecommunication Engineering Microcontrollers ECC 402/S.E./ IV Semester/ Batch 2021-2025 ____________________________________________________________________________ Assignment 4 (Last Date: 4 April 2025) 1. Write Answer in brief (One or two lines only) a) What is use of DAA instruction. b) Identify correct and wrong instruction MOV A,#3FH, MOV R1,30H, MOV 60H, A, MOV A,@R3. c) What is difference between action of LCALL and LJMP instruction. d) Comapre SJMP, AJMP and LJMP instruction of 8051 e) How much time taken by NOP instruction if operating frequency of 8051 is 12 MHz. f) How much time taken by MUL AB instruction g) What instruction sequence could be used to read bit 1 of Port 0 and write the state of the bit read to bit 0 of Port 2? h) Find out the mistake in this in this program MOV R2,#20H MOV A,@R2, ADD A, #FFH i) What is Longest instruction in instruction/s set of 8051. j) What is EQU directives. k) Which instruction is normally use to terminate ISR. l) Write instrction to disable all interrupts. m) illustrate an instruction sequence to store the value of 8AH in external RAM at address 3CB0H. 2. What do you mean by Assembler Directives, Why Assembler directives are called as Pseudo instructions? Explain few with examples 3. What do you mean by addressing modes. Explain addressing modes of 8051 with examples 4. Write assembly language program for 8051 to transfer message “WELCOME” serially at baud rate of 9600 in mode1. Assume that 8051 operate at frequency 11.0592 MHz 5. Write assembly language program to generate square wave with 50% duty cycle on pin P1.0 of 8051 Using Timer. Assume that 8051 operate at frequency 11.0592 MHz 6. WAP to generate a rectangular waveform of frequency 1 Khz and 70 % duty cycle at Pin P1.1 using 8051. assume 8051 is operating at frequency 12Mhz 7. Write a program to blink all LEDs connected to port 1 at slow rate so that the blinking is clearly seen. asume a frequency of 12Mhz and that the system is using the 8051. 8. Write sequence of operation to enable INT0 pin with edge trigger mode 9. Interface 230V/40W AC Bulb to 8051 microcontrollers. Write a program to make this bulb on and off using toggle key connected to pin P1.1 of 8051. 10. It is required to interface Green and Red LED to 8051 on P1.3 and P1.4. LED needs 15 mA current flow through it for desired intensity. Use suitable components. Draw interfacing diagram and write a program to keep this LED ON and OFF alternatively Use suitable delay routine for proper visualization. ______________
Elizabeth A. Povinelli - Between Gaia and Ground - Four Axioms of Existence and The Ancestral Catastrophe of Late Liberalism-Duke University Press (2021)