Download Introduction To Embedded Systems Development

Transcript
Error: ...
$ ./clk-calc --target=200MHz
Cannot Compute: Target Clock Too High
2) Write a program that repeatedly toggles a GPIO pin, so that you get a square wave.
3) Use make lst and the ARM Cortex M3 Manual to find the number of clock cycles between every
toggle.
4) Change the frequency of your output square wave without changing the loop at all, use only different
clocking settings.
3.7.2
Questions
As you progress through the exercise, answer the followign questions:
1) What is the lowest CPU clock speed you can achieve with this setup?
2) How many clock cycles does your loop take between GPIO toggles?
3) What are the options needed to get the maximum speed, 120MHz?
4) What is the frequency of your output signal when the CPU clock is 200Hz? 120MHz?
5) What clock frequency do you need to get an output signal at 1kHz?
21