Sunteți pe pagina 1din 1

Date: 11-11-11

A1Batch
SET-A
Write an 8051 program to receive serially a sequence of even and odd
numbers 217344812594327800193792465 at 9600baud rate. Use counter
to count the number of even and odd numbers and use timer to generate a
square wave at P1.1 and at P1.2 whose frequency depicts the occurrence of
even and odd numbers in the sequence respectively. So a high signal at P1.1
shows an occurrence of even number while a high signal at P1.2 indicates an
occurrence of odd number. The CF is 11.0592MHz.

SET-B
Write an 8051 program to receive serially a sequence of positive and
negative numbers 21-73-4-4-8-125-9432-7-8-0-0-1-93-7-9-24-65 at
9600baud rate. Use counter to count the number of positive and negative
numbers and use timer to generate a square wave at P1.1 and at P1.2 whose
frequency depicts the occurrence of positive and negative numbers in the
sequence respectively. So a high signal at P1.1 shows an occurrence of
positive number while a high signal at P1.2 indicates an occurrence of
negative number. The CF is 11.0592MHz.

S-ar putea să vă placă și