Anda di halaman 1dari 2

Dept of Computer Science and Engineering Srinivas School of Engineering Microprocessor Lab

Note: Students will pick one program from the list and shall execute both parts of the same question 1 a. Search a key element in a list of n numbers using the Binary Search algorithm. 1.b. ead the status of eight input bits from the logic controller interface and display FF if it is even parity bits other!ise displays 00. "lso display number of 1#s in the input data. $. a. %rite "L& macros' i( )o read a character from the keyboard in the module *1(*in a different file( ii( )o display a character in module *$(*from different file( iii( +se the above t!o modules to read a string of characters from the keyboard terminated by the carriage return and print the string on the display in the ne,t line. $.b. &erform the follo!ing functions using the Logic Controller interface. i( BCD up-do!n Counter ii ( ing Counter. ...a. Sort a given set of n numbers in ascending and descending order using Bubble sort algorithm. ..b. ead the Status of t!o /-bits inputs*0 1 2( from the Logic Controller interface and display 032 4.a. ead an alphanumeric character and display its e5uivalent "SC66 code at the center of the screen 4.b Display the messages FIRE and E!" alternately !ith flickering effects on a 7- segment display interface for a suitable period of a time. Ensure a flashing rate that makes it easy to read both messages.*E,aminer does not specify these delays values nor it is necessary for the student to compute these values. 8.a. everse a given string and check !hether it is a &alindrome or not.. 8.b. "ssume any suitable message of 1$ characters length and display it in the rolling fashion on a 7-segment display interface for a suitable period of a time. Ensure a flashing rate that makes it easy to read both the messages *E,aminer does not specify these delay values nor it is necessary for the student to compute these values. 9.a ead t!o strings: store them in locations S#R$ and S#R%& Check !hether they are e5ual or not display appropriated messages. "lso display the length of the stored strings. 9.b. Convert a 19-bit binary value*assumed to be an unsigned integer( to BCD and display it from left to ight and ight to left for specified number of times on a 7-segment display interface. 7.a ead your name from the keyboard and display it at a specified location on the screen in front of the message ' (# IS )*+R N(,E- 2ou must clear the entire screen before display. 7.b. Drive a Stepper motor interface to rotate the motor in clock!ise direction by ; steps. *; is specified from the e,aminer(. 6ntroduce suitable delay bet!een successive steps.*"ny arbitrary value for the delay may be assumed by the student(.

/.a. Compute the factorial of a positive integer <n# using recursive procedure. /.b. Drive a Stepper motor interface to rotate the motor in anticlock!ise direction by ; steps. *; is specified from the e,aminer(. 6ntroduce suitable delay bet!een successive steps.*"ny arbitrary value for the delay may be assumed by the student(. =.a. Compute n.r +sing recursive procedure. "ssume that <n# and <r# are non-negative integers. =.b. Drive a Stepper motor interface to rotate the motor by ; steps left direction and ; steps ight direction. *; is specified from the e,aminer(. 6ntroduce suitable delay bet!een successive steps. *"ny arbitrary value for the delay may be assumed by the student(. 1>.a. ?ind out !hether a given sub-string is present or not in a main string of characters.. 1>.b. Scan a /,. keypad for key closure and to store the code of the key pressed in a memory location or display on screen. "lso display ro! and column numbers of the key pressed. 11.a. @enerate the first <n# ?ibonacci numbers. 11.b. Scan a /,. keypad for key closure and Simulate (// and S+B) "C) operations as in a calculator. 1$.a. ead the current time from the system and display it in the standard format on the screen. 1$.b. @enerate a sine !ave +sing D"C interface *)he output of the D"C is to be displayed on a C A( 1..a. &rogram to simulate a decimal up-counter to display >>-== 1..b. @enerate a Balf ectified sine !ave from using the D"C interface*)he output of the D"C is to be displayed on a C A( 14.a. ead a pair of input co-ordinates in BCD and move the cursor to the specified location on the screen 14.b. @enerate a ?ully ectified sine !ave form using the D"C interface*)he output of the D"C is to be displayed on a C A( 18.a. &rogram to create a file*input file( and to delete an e,isting file. 18.b. Drive an elevator interface in the follo!ing !ay to move an elevator from ground to top floor and top to ground floor.

Anda mungkin juga menyukai