a6a7-fri2-4

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.

Upload: ayush-purohit

Post on 16-Jan-2016

220 views

Category:

Documents


0 download

DESCRIPTION

jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj

TRANSCRIPT

Page 1: A6A7-Fri2-4

Date: 11-11-11A1Batch

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.