STC8 微控制器 P5.4 / RST 引脚功能
STC8 微控制器有 P5.4,可以(可选)用作设备复位引脚。
STC 称其为低电平复位引脚,但在更标准的术语中,它是低电平有效复位引脚
为了在将 P5.4 用作 ~RST 引脚或仅用作 GPIO 端口(P5.4)之间进行选择,设置或取消设置 RSTCFG 寄存器中的 P54RST 位(位 4)。
- 如果
P54RST位未设置(二进制0),引脚P5.4可用作普通 GPIO 引脚,RST功能被禁用 - 如果
P54RST位已设置(二进制1),引脚P5.4用作RST引脚。在此模式下不能用作普通 GPIO 引脚
来源:STC8G 数据手册,第 6.3.3 节+
Check out similar posts by category:
STC8
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow