Question

Using Atmel Studio 7 and device ATMEGA128A

E7.6 Write a C function that uses the internal 2 MHz oscillator to generate system clocks so that the frequency of clkcpu is

0 0
Add a comment Improve this question Transcribed image text
Answer #1
  1. Look.. How to calculate the system tick of Timer, if I am starting the Hardware Timer of a controller for generating any delay. If I am having the 16-bit timer for example and I configured the system clock for 8MHz.
  2. As per my knowledge the single tick will be T=1/f. Then one single tick will take 0.125 microsecond. Is this correct? or any other dependency to calculate it.
  3. Whether this calculation will vary with controller by controller?
  4. Is there any way to configure the clock(eg 1MHz) for only Timer or any other peripheral with out changing the System Clock(eg 8Mhz)
  5. If controller goes to low power mode(typically a changing of power mode). The timer resolution will also change? whether I need to change the setting of Timer for each power Mode.
Add a comment
Know the answer?
Add Answer to:
E7.6 Write a C function that uses the internal 2 MHz oscillator to generate system clocks so that...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • A communication system uses a superheterodyne receiver containing two mixers. The intermediate frequencies are 10.7 MHz...

    A communication system uses a superheterodyne receiver containing two mixers. The intermediate frequencies are 10.7 MHz and 470 kHz. The desired signal has a carrier frequency of 102.3 MHz. (a) What are the two local oscillator frequencies in the receiver (both mixers are superheterodyne)? (3 marks) (b) Explain what an image frequency is. (2 marks) (c) How many image frequencies are there in this communication system? Calculate their frequencies. (5 marks) (d) Explain how this receiver removes each of the...

  • 4 A nonlinear oscillator Consider a perturbed harmonic oscillator. Using x p2 H + ke? 2...

    4 A nonlinear oscillator Consider a perturbed harmonic oscillator. Using x p2 H + ke? 2 + ex4 2m 1. write this Hamiltonian in terms of â and at 2. At what frequency or frequencies could this system absorb radiation if € = 0, i.e. the oscillator is unperturbed 1 3. Qualitatively, what do the states look like for the perturbed Hamiltonian? Write the new states as a sum of the unperturbed states, without worrying too much about the amplitude...

  • Consider an LTID svstem with system function H[2] b07-9716 (a) Determine the constant bo so that ...

    Consider an LTID svstem with system function H[2] b07-9716 (a) Determine the constant bo so that the system 5.6-9 2+1 frequency response at S--п is-1 (b) Accurately sketch the system poles and zeros. (c) Using the locations of the system poles and zeros, sketch lHle'sıl over 0 < Ω < 2π. (d) Determine the response y[n] to the input x(n] = (-1 +j) +j" + (1-j) sin(Tn + 1). (e) Draw an appropriate block diagram representation of this system Consider...

  • 1. Write a C programme by using visual Studio: a) Write a function with parameters that...

    1. Write a C programme by using visual Studio: a) Write a function with parameters that returen the largest of three integer arguments. So users could call your function (name: max3) to output the maximum of three input values. b) Make a function outside of the main routine. And in the main routine, please call this function and print the harmonic mean. The harmonic mean of two numbers is obtained by taking the inverses of the two numbers, averaging them,...

  • C++ program Write a C++ program to manage a hospital system, the system mainly uses file...

    C++ program Write a C++ program to manage a hospital system, the system mainly uses file handling to perform basic operations like how to add, edit, search, and delete record. Write the following functions: 1. hospital_menu: This function will display the following menu and prompt the user to enter her/his option. The system will keep showing the menu repeatedly until the user selects option 'e' from the menu. Arkansas Children Hospital a. Add new patient record b. Search record c....

  • Write a C program that is uses a function to search for a specific value in...

    Write a C program that is uses a function to search for a specific value in a two dimensional array using quick search

  • please do on paper then program 3. Sampling. Write a function to generate samples of the ramp function y 5 (a) Write...

    please do on paper then program 3. Sampling. Write a function to generate samples of the ramp function y 5 (a) Write a mathematical expression for y. Use piece-wise linear notation. Suppose we want to create a plot of the ramp function from t- o to t=2 using a step of 0.1. (b) Write the numbers that need to be created and stored for the t-samples and the y-samples. Note: Write them all out. Don't be lazy! (c) Write a...

  • A one-particle two-dimensional harmonic oscillator has the potential energy function V=V(x,y)=k/2(x2+y2). write the t...

    A one-particle two-dimensional harmonic oscillator has the potential energy function V=V(x,y)=k/2(x2+y2). write the time-independent SchrÖdinger equation for the system and the energy eigenvalues. Define clearly the symbols you used.

  • A)What is the maximum delay that can generated by an 8 bit Timer with a prescale...

    A)What is the maximum delay that can generated by an 8 bit Timer with a prescale divider value of 0 and a system clock frequency of 16 MHz? B) In the HCS12, port T is a bidirectional port. Write a short segment of code (C and Assembly) that illustrates how to initialize port T so that bits 7-4 may be used as outputs and bits 3-0 may be used as inputs: C)If you are using an output compare with interrupts...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT