0% found this document useful (0 votes)
29 views

Timer / Counter 1. 2. 3

The document discusses timers and interrupts in 8051 microcontrollers. It asks for an explanation of timer 1 operation in mode 1, including the relevant mode word. It also asks about external interrupts in 8051 and how to set INT 1 as an edge triggered interrupt. Finally, it asks for an 8051 program that uses interrupts to receive serial data and send it to port 0, transmit data from port 1 serially and copy it to port 2, and generate a 5 kHz square wave on port 0 using timer 0 with a crystal frequency of 11.059 MHz and baud rate of 4800.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Timer / Counter 1. 2. 3

The document discusses timers and interrupts in 8051 microcontrollers. It asks for an explanation of timer 1 operation in mode 1, including the relevant mode word. It also asks about external interrupts in 8051 and how to set INT 1 as an edge triggered interrupt. Finally, it asks for an 8051 program that uses interrupts to receive serial data and send it to port 0, transmit data from port 1 serially and copy it to port 2, and generate a 5 kHz square wave on port 0 using timer 0 with a crystal frequency of 11.059 MHz and baud rate of 4800.
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Timer / counter 1. 2. 3.

4.

5. 6. 7.

8.

9.

10.

11. 12.

13. 14.

15.

Explain the operation of timer 1 in 8051 in mode 1. Give the relevant mode word. What are external interrupts? How they are handled in 8051? How to set INT 1 as edge triggered interrupt? (08 Marks)

b. Write a 8051 program using interrupts to do the following: i) Receive the data serially and send it to Po. ii) Read port PI transmit data serially and give a copy to P2. iii) Make timer 0 generate a square wave of 5 kHz frequency on Po.!. Assume that XTAL = 11.059 MHz. Set the band rate at 4800.

You might also like