IC615 - Embedded Systems Programming Assign I PDF
IC615 - Embedded Systems Programming Assign I PDF
PROGRAMMING ASSIGNMENT – I
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.
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.
#####################################################################