Académique Documents
Professionnel Documents
Culture Documents
Tutorial sheet 6
3. Specify the single instruction, which clears the most significant bit of B
register (of 8051), without affecting the remaining bits.
4. Give the alternate functions for the port pins: P 3.3 and P 3.6
Give the status register of 8251 and explain each bit.
8. Describe the Timer control (TCON) and Timer mode control (TMOD)
registers.
Tutorial sheet 7
2. Are there any advantages to having a multiplexed address and data bus?
6. What is the use of SFR? List out the special function registers of 8051?
7. How does 8051 differentiate between the external and internal program
memory?
6. Interface two 8255’s to 8051 with starting address of 0FFF0H? Show the
Hardware design? Write the instruction sequence to initialize all ports of
8255?s as input ports in mode 0.
7. Explain with waveforms different modes of counter/timer in 8051?
8. Assume that 5BCD data items are stored in RAM location starting at 40H
in8051. Write a program to find the sum of all the numbers. The result must
be in BCD.
9. Write a program to get hex data in the range of 00-FFH from port 1 of 8051
and convert into decimal. Save the digits in R7, R6 and R5 (where least
significant digit is in R7).
Tutorial sheet 9
2. I used the formula to calculate a baud rate, but I get a fractional value for
TH1. What should I do?
5. My program uses the serial port but doesn't seem to send any data. Why?
6. I'm trying to receive data with the serial port but never receive anything.
Why?
7. How many ports are available in 8051? Out of them, which port pins, are
individually programmable?
8.Explain the port pin circuits for all the ports with neat diagrams.
Create a square wave of 50% duty cycle on the P1.5 bit of 8051. Timer 0 is
Used to generate the time delay. Analyze the program.
8. In the above problem, calculate the amount of time delay in the DELAY
subroutine generated by the timer. Assume XTAL = 11.0592 MHZ.
Tutorial sheet 10
5. Give the complete block schematic of an 8051 based system having following
specifications:
(a) 64 KB program memory
(b) 64 KB data memory
(c) Make use of 16 K x 8-bit memory chips and 74LS138 decoders.
(d) Indicate clearly the address selected for the memory chips.