a4-lab test-2.pdf

1
A4-BATCH Thursday 17 th Nov ‘11 SET-A 1. Write an 8051 program to read 4 numbers from UART at baud rate of 9600bps and then generate the SAW TOOTH wave on P0, when input has equal number of odd and even number as shown below. SET-B 2. Write an 8051 program to read 10 characters from UART at baud rate of 2400bps and then generate the STEP WAVE on P3, when input has vowels greater than 7 characters as shown below.

Upload: ayush-purohit

Post on 13-Nov-2015

3 views

Category:

Documents


2 download

TRANSCRIPT

  • A4-BATCH

    Thursday 17th Nov 11

    SET-A 1. Write an 8051 program to read 4 numbers from UART at baud rate of 9600bps

    and then generate the SAW TOOTH wave on P0, when input has equal number of odd and even number as shown below.

    SET-B 2. Write an 8051 program to read 10 characters from UART at baud rate of 2400bps

    and then generate the STEP WAVE on P3, when input has vowels greater than 7 characters as shown below.