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...
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!
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?
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)
To analyze and design a passive, second-order bandreject filter using a series RLC circuit. A bandreject...
To analyze and design a passive, second-order bandreject filter using a series RLC circuit. A bandreject filter is needed for an equalizer, a device that allows one to select the level of amplification of sounds within a specific frequency band while not affecting the sounds outside that band. The filter should pass frequencies lower than 1.4 kHz and have a resonant frequency of 3.8 kHz. A 5.0 μF capacitor and any needed resistors and inductors are available to be used...
Design a circuit using PIC 18F458, which counts the number of input pluses read by any...
Design a circuit using PIC 18F458, which counts the number of input pluses read by any input I/O port of the PIC 18 and show the pulses counting state on the 7-segment display . Hint : For Input pulses function generator or 555 Astable oscillator can be used.
I need to design a circuit using only resistors and capacitors that will filter out a...
I need to design a circuit using only resistors and capacitors that will filter out a signal above a specific frequency. In order to deemed a success, the peak voltage across your capacitor must be equal to 20% of the peak voltage provided by the function generator at the frequency ftheory. Available values of resistance are 5, 10, 30, and 39 Available values of capacitance are 100, 150, 220 and 470 uF ftheory=1699Hz I need to draw the circuit and...