Search ...
Results
Subscribe
Step-by-Step Solutions
University Majors
Support Hub
Legal & Support Articles
Contact Us
Login
Share
Search ...
Results
Subscribe
Step-by-Step Solutions
University Majors
Support Hub
Legal & Support Articles
Contact Us
Login
Share
The 8051 Microcontroller and Embedded Systems
166 SOLVED PROBLEMS
Question: 11.8
Write a program in which the 8051 reads data from P1 and writes it to P2 continuously while giving a copy of it to the serial COM port to be transferred serially. Assume that XTAL=11.0592. Set the baud rate at 9600. ...
Verified Answer:
ORG 0000H LJMP MAIN ORG ...
Question: 6.8
Show how the 8051 would represent -34H ...
Verified Answer:
1. 0011 0100 34H given in binary 2. ...
Question: 6.7
(a) Write a program to get hex data in the range of 00 – FFH from port 1 and convert it to decimal. Save it in R7, R6 and R5. (b) Assuming that P1 has a value of FDH for data, analyze program. ...
Verified Answer:
(a) MOV A,#0FFH MOV P1,A ...
Question: 6.12
Write a program to transfer value 41H serially (one bit at a time) via pin P2.1. Put two highs at the start and end of the data. Send the byte LSB first. ...
Verified Answer:
MOV A,#41H SETB P2.1 ;high SETB ...
Question: 3.1
Find the period of the machine cycle for 11.0592 MHz crystal frequency ...
Verified Answer:
11.0592/12 = 921.6 kHz; machine cycle is 1/921.6 k...
Question: 11.22
Looking at the design in Figure 14-6, find the address range for the Following. (a) Y4, (b) Y2, and (c) Y7. ...
Verified Answer:
(a) The address range for Y4 is calculated as foll...
Question: 10.1
With XTAL = 11.0592 MHz, find the TH1 value needed to have the following baud rates. (a) 9600 (b) 2400 (c) 1200 ...
Verified Answer:
The machine cycle frequency of 8051 = 11.0592 / 12...
Question: 7.11
Write an 8051 C program to toggle only bit P2.4 continuously without disturbing the rest of the bits of P2. ...
Verified Answer:
//Toggling an individual bit #include <reg51.h&...
Question: 11.5
Assume that the INT1 pin is connected to a switch that is normally high. Whenever it goes low, it should turn on an LED. The LED is connected to P1.3 and is normally off. When it is turned on it should stay on for a fraction of a second. As long as the switch is pressed low, the LED should stay on. ...
Verified Answer:
ORG 0000H LJMP MAIN ;by-pass inter...
Question: 11.28
In a certain application, we need 256K bytes of NV-RAM to store data collected by an 8051 microcontroller. (a) Show the connection of an 8051 to a single 256K×8 NV-RAM chip. (b) Show how various blocks of this single chip are accessed ...
Verified Answer:
(a) The
256K×8
NV-RAM has 18 addres...
Loading...
Load More Questions