Assignment 1
Assignment 1
Q. No Questions
Write ALP to blink LED connected to port pin P1.7 with delay of 25 ms generated using
1
Timer 1 Mode 1.
A switch is connected to Pin P2.5. Write a program to check the status of the switch. Send
2
the word “ECE” using serial port communication.
Write a program for the 8051 to transfer “GRATITUDE” serially at 9600 baud, 8-bit data, 1
3
stop bit, do this continuously
Write a program to send the message “Success is the sum of small efforts, repeated day in
and day out” to serial port. Assume a SW is connected to pin P1.2. Monitor its status and set
4 the baud rate as follows:
SW = 0, 4800 baud rate
SW = 1, 9600 baud rate Assume XTAL = 11.0592 MHz, 8-bit data, and 1 stop bit
Design Model train controller. Outline the design in each step of embedded system design
5 process. Provide Use case diagram, sequence diagram and class diagram to explain the
design.
Mark Allocation
Content (25) Presentation (5) Date of submission (10) Total (40)