ICPC18_Programming Assignment II_05_04_2025
ICPC18_Programming Assignment II_05_04_2025
PROGRAMMING ASSIGNMENT – II
Instructions
1. The report of the assignment-II must be submitted in the electronic 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-II. Also, the 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 10 seconds and the corresponding
zone LED, or LEDs, will be activated.
3. Write an 8051 C language program which will generate a 500 Hz square wave at an
output pin. The program is to use a 16 bit timer in interrupt driven mode.
4. Write an 8051 C language subroutine which will transmit an 8-bit data character via the
serial port.
#####################################################################