BUCUO
用这些的好处是省事,坏处但是不清楚原理。手册有详细描述的,把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.
谢谢分享!
學習了:(:):)
这个“腿”;P;P;P
ZDPHPN 发表于 2018-7-10 17:19
这个“腿”
:victory::lol
要积分才能下载
感谢分享,用晶振管脚做IO一直读不到电平,查了好久