Prerequisites:- The prerequisite for this program you should have knowledge of Simple LCD interfacing on ARM LPC2148. You can visit this post to get the program, algorithm about LCD interfacing. Introduction:- In this post, We will be dealing with RTOS(Real-time Operating System) Program to switch the tasks based on the priorities.At…
Tag: ARM
RTOS program to generate Round Bin Multitasking algorithm
In this article let’s learn to assign tasks in round robin fashion. In the following program first, it assigns the highest priority to task1 and then it creates task2,task3. It continued the execution and waits for an event in task1, then suspends task1 and then enters into task2. Next, it…
ARM thumb program to find first 10 fibonacci numbers
In this article let’s learn how to find the first 10 Fibonacci numbers.Usually Fibonacci numbers start from 0,1,1,2……In this, we can observe that the present number in Fibonacci is the summation of the previous two numbers. So in this, we should initialize the first two numbers as -1 and +1…
ARM assembly code to find number of ones and zeros in a 32 bit number
Hello guys! Today we will see how to find number of ones and zeros in a 32 bit number. Let’s first understand the algorithm later we see a example code. Algorithm: Start Store a 32 bit number in register(Rd). Initialize a counter register to 1Fh(32) Initialize one regiter(Ra) to zero…
Embedded C to find the number of one's in a given 32bit number and optimize the code
Embedded C to find the number of one’s in a given 32bit number and optimize the code In this article let’s learn how to optimize a program.The program which is used for optimization is to find number of ones in a given 32bit number. First let’s write a simple code…
ARM Assembly code to find number of positive numbers in an array
Let’s see how to write a ARM assembly code to find number of positive numbers in an array. ALGORITHM Start Load the base address of array. Initialize a counter register to number of elements in array. Initialize a register(Rd) to zero to store number of positive numbers. Load the value…
ARM code: Assembly code to add numbers from array
ARM processor is used in all the Embedded systems that are being built now. Here I explain ARM assembly program to add numbers declared in an array. ALGORITHM: Start Create an array of numbers Initialize a counter register to the number of elements in an array Load base address of…
You must be logged in to post a comment.