Professional Documents
Culture Documents
Section: A & B
Subject: Microcontrollers & Embedded Systems
Assignment Questions
1)
2)
3)
4)
one in R0 of bank 3.
5) Write an ALP to read data from p1.0. If it is high, send a high to low pulse to p2.0 else
send a low signal.
6) Explain the structure of ports 1to 3. How they differ from p0 and why?
7) How can be looping done in 8051? Explain with example.
8) Write a program to find if the given number is even or odd. If odd, count the number
of 1s and sends the result to R0.
9) Write a program to toggle all bits of p1 and p2 continuously
a. Using AAH and 55H.
b. Using CPU.
10) Find the time delay generated by the following routine if XTAL=2.2MHZ.
HERE: MOV r0, #200
AGAIN: DJNZ R0, AGAIN
RET