Question

Design a circuit using 10 LEDs with ARM ASSEMBLY CODE that works with Rasberry Pi. The...

Design a circuit using 10 LEDs with ARM ASSEMBLY CODE that works with Rasberry Pi. The LEDs blink in any pattern

Explain the code.

Homework Answers

Answer #1
#include<lpc214x.h>
void delay (int);
void delay (int i)
{
T0TCR=0x02;
T0TCR=0x01;
while (T0TC < i);
T0TCR=0x00;
}
int main()
{
PINSEL2=0x00;
IODIR1=0xFFFFFFFF;
PLL0CON = 0x01;
PLL0CFG = 0x24;
PLL0FEED = 0xAA;
PLL0FEED = 0x55;
while(!(PLL0STAT & 0x00000400));
PLL0CON = 0x03;
PLL0FEED = 0xAA;
PLL0FEED = 0x55;
VPBDIV = 0x01;
T0CTCR=0x00;
T0PR=59999;
T0TCR=0x02;
while(1)
{
IOSET1=0xFFFFFFFF;
delay(1000);
IOCLR1=0xFFFFFFFF;
delay(1000);
}
}
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
if statement translation Using ARM assembly language, initialize the variables a, b, and c to consecutive...
if statement translation Using ARM assembly language, initialize the variables a, b, and c to consecutive integers starting at 1. Create your code so that a is in R0, b is in R1, and c is in R2. Build the following if statements, using the ARM Cortex-M0 instructions, in sequence in your code. Please put both if statement implementations in one file. Send me your .s file for grading. if a == 1 b = b * 4 + 2...
PLEASE COMMENT CODE AND TEST THAT IT WORKS: Write a assembly program to find the largest...
PLEASE COMMENT CODE AND TEST THAT IT WORKS: Write a assembly program to find the largest item in an array and store it in a AX. Hint: Use both Jump and loop instruction to write the program. logic: Assume that the first item of the array is the minimum and store it in AX Write a loop. Inside the loop, compare the each array item with the AX If the array item is less than the AX, update AX with...
ARM on a raspberry pi 1. Create a assembly program that branches based off the value...
ARM on a raspberry pi 1. Create a assembly program that branches based off the value of three different variables. ## Details Task 1: I highly suggest reading the book and doing the practice before doing this. Name your file cp5.s. You need to initally start with the three variables. * the variables should be called max, t1, t2. * Set the values to whatever you would like. * max tells us the cut off for a value * if...
Using one JK one SR and one D ff’s design a sequential circuit that generates the...
Using one JK one SR and one D ff’s design a sequential circuit that generates the output pattern: 7-6-5-4-3-2-1 Looking for K-maps only. Thank you!
Using one SR one JK and one D flip flop design a sequential circuit that generates...
Using one SR one JK and one D flip flop design a sequential circuit that generates the output pattern: 7-6-5-4-3-2-1-0 and then the sequence repeats. Derive the equations for SA, RA, JB, KB, and DC.
Please Code in Assembly Language Code solution using the provided template AL_Template_Irvine32.asm located towards the bottom...
Please Code in Assembly Language Code solution using the provided template AL_Template_Irvine32.asm located towards the bottom of the question. Debug programs with Visual Studio2017/19. Please add single line or block comments explaining the purpose or functionality of your code statements. Draw Text Colors Write a program that displays the same string in four different colors, using a loop. Call the Set-TextColor procedure from the book’s link library. Any colors may be chosen, but you may find it easiest to change...
6. What is short circuit evaluation? Give an example. 7. Briefly explain how operator precedence works...
6. What is short circuit evaluation? Give an example. 7. Briefly explain how operator precedence works in APL. 8. What does times do in Ruby? What about each? What about upto? Use code snippets to explain your answers. 9. What is a functional side effect? Give an example in code. 10. What is an unconditional branch statement? If you were to define a new language, would you include this construct? Why or why not?
Design a four resister BJT (CE) bias circuit (using any method) for the following       specifications:...
Design a four resister BJT (CE) bias circuit (using any method) for the following       specifications:             ICQ= 1.5 mA,   VCEQ=5 V,   Vcc=14 V.   Find all resistor values.             Assume a BJT transistor (npn) with β=100 and VBE=0.7V             Draw the designed circuit with all values.
Experiment 4 1. Design Increasing Voltage Chopper Circuit with DC Motor using any software (example: MATLAB)....
Experiment 4 1. Design Increasing Voltage Chopper Circuit with DC Motor using any software (example: MATLAB). 2. Analyse the peformane of the motor.
(4 pts) Design a circuit that realizes the following three functions using ONLY ONE 1-hot decoder...
(4 pts) Design a circuit that realizes the following three functions using ONLY ONE 1-hot decoder and any additional gates. ?1 (?,?,?) = ∑?(1,3,7) ? 2(?,?,?) = ∑?(2,3,5)    ?3 (?,?,?) = ∑?(0,1,5,7)