chenke9703 发表于 2018-4-24 16:28:27

BUCUO

a随遇而安a 发表于 2018-6-1 14:51:42

用这些的好处是省事,坏处但是不清楚原理。手册有详细描述的,把RCC_CR寄存器HSEON关了就可以。
sing the HSE or LSE oscillator pins as GPIOs
When the HSE or LSE oscillator is switched OFF (default state after reset), the related
oscillator pins can be used as normal GPIOs.
When the HSE or LSE oscillator is switched ON (by setting the HSEON or LSEON bit in the
RCC_CSR register) the oscillator takes control of its associated pins and the GPIO
configuration of these pins has no effect.
When the oscillator is configured in a user external clock mode, only the pin is reserved for
clock input and the OSC_OUT or OSC32_OUT pin can still be used as normal GPIO.

bugyang1 发表于 2018-7-2 15:03:49

谢谢分享!

KCL 发表于 2018-7-3 11:19:45

學習了:(:):)

ZDPHPN 发表于 2018-7-10 17:19:09

这个“腿”;P;P;P

damiaa 发表于 2018-7-11 09:02:44

ZDPHPN 发表于 2018-7-10 17:19
这个“腿”

:victory::lol

zjlinyf 发表于 2020-4-8 01:13:22

要积分才能下载

fidjia 发表于 2020-8-30 20:41:48

感谢分享,用晶振管脚做IO一直读不到电平,查了好久
页: 1 2 [3]
查看完整版本: 如何使用STM32F0的晶振腿做GPIO口