You are on page 1of 2

NATIONAL INSTITUTE OF TECHNOLOGY, TIRUCHIRAPPALLI-620 015

DEPARTMENT OF INSTRUMENTATION AND CONTROL ENGINEERING

SUBJECT: IC615 EMBEDDED SYSTEMS

PROGRAMMING ASSIGNMENT – I

Marks: (15 Marks)

Instructions

1. The report of the assignment-I must be submitted in the pdf format with algorithm,
program, observation and result for each problem statement.
2. For each program, provide the program size in bytes. Also give the optimized
program size along with the change made in the code.
3. Do not copy the content of assignment from neighbors which leads to zero marks for
the assignment-I. Also, a group fail to submit on due date will lose mark accordingly.

Problem statement

Write and simulate the C language program (generalized program - should work for
any input) to:

1. A simple burglar alarm system has 4 zone inputs connected to an 8051 I/O port. If any
one of these inputs is activated a bell will sound for 15 seconds and the corresponding
zone LED, or LEDs, will be activated.

2. A heating oven in a manufacturing process is to be maintained at a temperature level


between 50oC and 100oC. The controller device is to be based on an 8051
microcomputer. Two temperature sensor devices are fitted to the oven as follows:
(i) Sensor A outputs logic 0 if temperature exceeds 50oC
(ii) Sensor B outputs logic 0 if temperature falls below 100oC

3. Write an 8051 C language program which will generate a 100 Hz square wave at an
output pin. The program is to use a 16 bit timer and is to be interrupt driven.

4. Write an 8051 C language subroutine which will transmit an 8-bit data character via
the serial port.

5. One conducting probe is fixed at the level B and another conducting probe is at level
A in the coal mine where the water is accumulating. The effects of the probes A and B
can be read through pin P3.1 and P3.4. Using the timer functions of 8-bit
microcontroller, measure the rate of rise of water level. If the measured rate of rise
water is larger than the threshold, then the system has to send the alarm to the operator
for any standby operations. Write the C program to instruct the 8-bit microcontroller
to measure the rate of rise in the water level in the coal mine.

#####################################################################

You might also like