Microprocessor and Microcontroller Lab Programs
1] Design and develop an assembly language program to search a key element ‘X’ in a list of ‘n’ 16-bit numbers. Adopt a binary search algorithm in your program for searching.
2] Design and develop an assembly program to sort a given set of ‘n’ 16- bit numbers in ascending order. Adopt bubble sort algorithm to sort given elements.
3] Develop an assembly language program to reverse a given string and verify whether it is a palindrome or not. Display the appropriate message
4] Develop an assembly language program to compute nCr using the recursive procedure. Assume that ‘n’ and ‘r’ are non-negative integers.
5] Design and develop an assembly language program to read the current time and date from the system and display it in the standard format on the screen
6] To write and simulate ARM assembly language programs for data transfer, arithmetic and logical operators (Demonstrate with the help of a suitable program)
7] To write and simulate c programs for ARM microprocessor using KEIL( demonstrate with the help of suitable program) Note: To use KEIL one may refer to the book: Insider’s guide to the ARM7 based microcontrollers, Hitex Ltd, 1st edition, 2005
- a] Design and develop an assembly program to demontrate BCD up-down counter (00-99) on the logic controller interface.
- b] Design and develop an assembly program to read the status of two 8-bit inputs ( X & Y ) from the logic controller interface and display X*Y
9] Design and devlop an assembly program to display messages ‘FIRE’ and ‘HELP’ alternately with flickering effects on a 7-segment display interface for a suitable period of time. Ensure a flashing rate that makes it easy to read both the messages( Examiner does not specify these delay values nor is it necessary for the student to compute these values).
10] Design and develop an assembly program to drive a stepper motor interface and rotate the moto in the specified direction(clockwise or counter-clockwise) by N steps ( direction and N are specified by the examiner). Introduce suitable delay between successive steps. (Any arbitrary value may be assumed by the student).
11] Design and develop an assembly language program to
- a] Generate the sine wave using DAC interface ( the output of the DAC is to be displayed on t he CRO)
- b] Generate a half rectified sine waveform using the DAC interface. ( The output of the DAC is to be displayed on the CRO)
12] To interface LCD with ARM processor — ARM7TDMI/LPC2148. write and execute programs in C language for displaying text messages and numbers on LCD