MANIPAL UNIVERSITY MS DD&ES Batch 4 Design using Microcontrollers Assignment by Prof.Swarnalatha Srinivasan Max Marks: 50
1.
Write a program to interface the keyboard to 8051. Using both C and ALP
10
+Vcc
Port 2 Output
2.2 2.1 2.0
cc
c c
%
/
*
_
+
.
9
8
7
6
5
4
3
2
1
0
P0.7
P0.6
P0.5
P0.4
P0.3
P0.2
P0.1
P0.0
2. 3. 4.
Eplain the following i) I2C and ii) ARM architecture. 10 Write an ALP to sort a set of numbers stored in external memory. 10 Distinguish between timing and counting requirements. Explain the modes of 10 operation of timers/counters with diagrams
5.
Interface 8051 to a stepper motor and write a program in C to rotate it 10 continuously in clockwise/anti-clockwise direction.