Question

Write assembly code to create a 1 sec delay time by using Timer2?

Write assembly code to create a 1 sec delay time by using Timer2?

Homework Answers

Answer #1

I assumed clock frequency=4MHz

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
Q1. Write a delay routine for 8051 to create a delay of approximately 1 ms. Q2....
Q1. Write a delay routine for 8051 to create a delay of approximately 1 ms. Q2. Write a routine for 8051 to create a rectangular wave (on port 2, bit 1) of 66% duty cycle using the above delay routine.
Write assembly code using direct mode: load Acc.B a value from memory location: $1A, and store...
Write assembly code using direct mode: load Acc.B a value from memory location: $1A, and store Acc.B to the memory location: $08. Write assembly code using extended mode: load Acc.A a value from memory location: $1100, and store Acc.A to the memory location: $100A.
open atmell studio and write an assembly program that toggels a 8 leds for differnt collor...
open atmell studio and write an assembly program that toggels a 8 leds for differnt collor connected to portB with a custom delay time i want the code of this program
Write an assembly code for a M68CH12 microcontroller that counts from 0000-9999 using even numbers on...
Write an assembly code for a M68CH12 microcontroller that counts from 0000-9999 using even numbers on the seven segment display.
write an AVR C program code to create 5 inputs with corresponding 5 different outputs. The...
write an AVR C program code to create 5 inputs with corresponding 5 different outputs. The instruction is listed to follow.  Specify your 5 inputs and 5 outputs. Describe your method .The Conditions: ? AVR C code must be used , Any conditional statement must be used (e.g. IF statement or CASE statement) at least one time, must use the time delay for your output and Bit-wise logic and shift operator.
(MIPS Assembly Language): Write the following sequence of code using *native* MIPS instructions: x = x...
(MIPS Assembly Language): Write the following sequence of code using *native* MIPS instructions: x = x - y[0] + y[1]; In memory x, y are stored beginning at 0x010000cc. Use registers $s1 for x,  and $s2 for the base address of y. Make sure your code includes all necessary declarations such that it could run in SPIM.
In MIPS assembly, write an assembly language version of the following C code segment: int A[100],...
In MIPS assembly, write an assembly language version of the following C code segment: int A[100], B[100]; for (i=1; i < 100; i++) { A[i] = A[i-1] + B[i]; }
Write an assembly program that toggles a LED connected to pin4 of PORTB with a custom...
Write an assembly program that toggles a LED connected to pin4 of PORTB with a custom delay time.
Write a piece of assembly code in SimpleRisc to find out if a number is a...
Write a piece of assembly code in SimpleRisc to find out if a number is a Factorian number or Dudeney number. Save 1 in r1 if it is a Factorian number; otherwise, save 0. Save 1 in r2 if it is a Dudeney number; otherwise, save 0. You have to write a single program to test both these conditions.
Write the following code segment in MARIE's assembly language: if x <= y then Y =...
Write the following code segment in MARIE's assembly language: if x <= y then Y = Y+1; else if x! =x then Y= Y -1; else z=z+1
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT