You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
667 B
Markdown
15 lines
667 B
Markdown
# 0. 80MHz system clock
|
|
|
|
This example shows how to set up the STM32 microcontroller to execute at its faster clock speed of 80MHz.
|
|
|
|
Achieving this speed requires two things:
|
|
|
|
1. Setting up the Phase-Locked Loop (PLL) to multiply a source clock up to 80MHz.
|
|
2. Configuring flash wait-states to ensure that the processor does not execute faster than instructions can be fetched.
|
|
|
|
Once the system clock is set to 80MHz, the Microcontroller Clock Output (MCO) is configured to output the system clock
|
|
over pin PA8. This output can be viewed with an oscilloscope to confirm the clock's speed.
|
|
|
|
See `main.c` for comments describing the configuration steps in more detail.
|
|
|