STC8 microcontroller P5.4 / RST pin functionality
STC8 microcontrollers have P5.4 which can (optionally) be used as device reset pin.
STC calls is a low-level reset pin, but in more standard terminology, it is an active-low reset pin
In order to select between using P5.4 as a ~RST pin or just a GPIO port (P5.4), set or unset bit P54RST (bit 4) in the RSTCFG register.
- If bit
P54RSTis unset (binary0), pinP5.4can be used as a normal GPIO pin, theRSTfunctionality is disabled - If bit
P54RSTis set (binary1), pinP5.4is used as aRSTpin. It can’t be used as a normal GPIO pin in this mode
Source: STC8G Datasheet, section 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