0% found this document useful (0 votes)
30 views2 pages

Assignments

Uploaded by

Sumukh Kini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views2 pages

Assignments

Uploaded by

Sumukh Kini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

ASSIGNMENTS

Course Title: The ARM Core: Architecture and Programming (EE428)


Weightage: 10%
Submission Date: on or before 10/04/2025
Part A: Assembly Language programming (ALP) Exercises
Write an ALP to perform the following tasks Using ARM7TDMI. Execute the programs and
state the results of the execution considering sample data using the evaluation boards /
simulator and necessary software tool.
1. Write the program to Print the “Hello, World!”
2. Write a programme that takes two integers as input (32 /16 bit) and perform following
arithmetic operation (i) addition (ii) subtraction (iii) multiplication (iv) Division
3. Write a separate program to do the following with array of 10 numbers/elements (32
bit)
a) Addition with carry
b) Finding smallest and largest number
c) Find, whether given number exist or not. If exist count how many times it
exists.
d) Arrange the array elements in Ascending/Descending order (Bubble
sort/selection sort)
4. Write a separate program to do the following
a) factorial of a given integer using both iterative and recursive methods.
b) To check whether the given number is prime number or not and lists all prime
numbers up to a specified limit.
c) square root of a given number
d) Cube of a given number
e) Check whether given number is even or odd number
5. Write a program that generates the Fibonacci sequence up to a specified number of
terms.
6. Write a program to count the number of ones and zeros in two consecutive memory’s
locations.
7. Write a programme to check given word /number is palindrome or not
8. Write a program that reverses a string and counts the number of vowels in it.
9. Write a program to do the following code conversion
a) BCD to binary conversion
b) Binary to BCD conversion
c) BCD to seven segment code conversion
d) Binary to ASCII conversion and
e) ASCII to binary conversion.
f) Hex to Binary
10. Implement a singly linked list with functions to add, remove, and display elements.
11. Create a simple program that simulates interrupt handling in an embedded system.
12. Write a program that simulates a simple embedded system task, such as reading
sensor data and responding based on thresholds.
13. Give the equivalent assembly code c programme.
if ((3 * x > b) || (z - b < 25))
x = b & 29;
else
b = x / 4;
14. Implement the assembly language equivalent of the following C code, to exercise
memory addressing modes to handle arrays. Use debug commands or a debug
initialization file to initialize values of arrays aa and bb in RAM. These arrays each have
15 elements. Circle the final values of i and zz in the debug window.
for (i = 0; i < 15; i++)
zz[i] = aa[i] – bb[i] + 5;

Part B: Interface Program/Experiments


Conduct the following experiments on an ARM7TDMI based LPC2148 microcontroller
evaluation board using evaluation version of Embedded 'C' & Keil Uvision-4 tool/compiler.
Draw the necessary interface diagram with all necessary components and signal details,
write the necessary C/Assembly program and state the results/outcome.

1. Display “Hello World” message using Internal UART.


2. Determine Digital output for a given Analog input using Internal ADC of ARM controller.
3. Interface a DAC and generate Triangular, Square, Sine and sawtooth waveforms.
4. Interface and Control a DC Motor.
5. Interface a Stepper motor and rotate it in clockwise and anti-clockwise direction.
6. Interface a 4x4 keyboard and display the key code on an LCD.
7. Using the Internal PWM module of ARM controller generate PWM and vary its duty
cycle.
8. Demonstrate the use of an external interrupt to toggle an LED On/Off.
9. Display the Hex digits 0 to F on a 7-segment LED interface, with an appropriate delay
in between.
10. Interface a simple Switch and display its status through Relay, Buzzer and LED.ARM
Assignments.

You might also like