1
\$\begingroup\$

I am programming an STM32 (manual here). Page 83 has a diagram indicating that the HSE Clock frequency is between 4 and 26 MHz.

The paragraph on HSE clocks starts on page 84, but does not give any information regarding setting the clock to a specific frequency. I have had a look at the RCC registers (starting from page 91) and could find how to turn on/off several clocks, and set various prescalers. I haven't found any register dealing with setting and reading the HSE clock frequency.

How can I read/write the HSE clock frequency?

\$\endgroup\$
3
\$\begingroup\$

You have to supply the clock to the chip with either a crystal/ceramic resonator or other external clock signal.

The 4 to 26 MHz is not generated by the chip itself...

\$\endgroup\$
  • \$\begingroup\$ Yep, that's right. My dev board has an HSE clock of 25MHz. Thanks. \$\endgroup\$ – Randomblue Mar 22 '12 at 11:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.