德里克你好。
SWIM引脚在复位阶段配置。
因此,无需配置它。
保持其配置不变,您的应用程序将起作用。
如果使用其备用功能,则只需配置PA0。
例如,STM8L15x将BEEP信号输出到PA0,但您首先要禁用SWIM(清除CFG_GCR中的第0位),启用并配置BEEP模块,最后将PA0配置为输出推/拉。
BR
EtaPhi
以上来自于谷歌翻译
以下为原文
Hello Derek.
The SWIM pin is configured during the reset phase.
Therefore, there is no need to configure it.
Leave its configuration untouched and your application will work.
You only need to configure PA0 if you use one of its alternate function.
For instance, a STM8L15x outputs the BEEP signal to PA0, but you have first to disable SWIM (clear bit 0 in CFG_GCR), enable and configure the BEEP module, and finally configure PA0 as output push/pull.
BR
EtaPhi
德里克你好。
SWIM引脚在复位阶段配置。
因此,无需配置它。
保持其配置不变,您的应用程序将起作用。
如果使用其备用功能,则只需配置PA0。
例如,STM8L15x将BEEP信号输出到PA0,但您首先要禁用SWIM(清除CFG_GCR中的第0位),启用并配置BEEP模块,最后将PA0配置为输出推/拉。
BR
EtaPhi
以上来自于谷歌翻译
以下为原文
Hello Derek.
The SWIM pin is configured during the reset phase.
Therefore, there is no need to configure it.
Leave its configuration untouched and your application will work.
You only need to configure PA0 if you use one of its alternate function.
For instance, a STM8L15x outputs the BEEP signal to PA0, but you have first to disable SWIM (clear bit 0 in CFG_GCR), enable and configure the BEEP module, and finally configure PA0 as output push/pull.
BR
EtaPhi
举报