St Thomas College of Engineering and Technology
Department of Electrical and Electronics Engineering
EE309: MICROPROCESSOR AND EMBEDDED SYSTEMS
Second Series Examination September 2017: 2015-’19 KTU
Max Time 02:00hrs Max Mark: 60
PART A
Answer any two questions
1 a. Draw the architectural block diagram of a 8051 microcontroller
[Link] are registers of 8051 classified?
c. Explain the function of the PSW register. How does it help in the selection
of registers?
[Link] the register organization in 8051. (5+4+6=15)
2 a. Draw and explain the port structure of PORT 0. – 6marks
b. How can port 0 be configured as an input port?
c. WAP to toggle each bit of Port 0 51 times. (6+4+5=15)
3 a. Explain the classification of instruction set. Explain each in detail.
[Link] are the different addressing modes. Explain with examples.
c. WAP to transfer data from register 5 of bank 0 to register 5 of bank 3 (5+5+5=15)
PART B
Answer any two questions
1 a. Write short note on assembler directives supported by the 8051
microcontroller.
[Link] are the different data types supported by assembly C program.
c. WAP to add two numbers in 8051 microcontroller. (5+5+5=15)
2 a. Write the steps to calculate time delay in assembly language.
b. Write a program to generate a square wave with 33% duty cycle.
c. WAP in assembly C to toggle the 5th bit of port 1.
d. WAP toggle the bits in port 1 every 1/4th of a second. (2+5+5+3=15)
3 a. Design and implement a four bit up/down counter. Assign a port bit to
control the counting sequence.
b. What are the different registers used to control the timer module of 8051
microcontroller?
c. WAP to toggle the bits of port 2 using timers. (7+3+5=15)