STC8

Do STC8 microcontrollers have internal pull-up resistors?

Yes, STC8 microcontrollers have internal pull-up resistors which can be enabled individually. They have a value of 4.1kOhm, lower than many other microcontroller pullup resistors. Due to manufacturing tolerance, the pullup resistor may vary between 3kOhm and 5kOhm.

Source: STC8G1 datasheet, section 9.1.3 (value) & 9.3.5 (tolerances)

Posted by Uli Köhler in STC8

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 P54RST is unset (binary 0), pin P5.4 can be used as a normal GPIO pin, the RST functionality is disabled
  • If bit P54RST is set (binary 1), pin P5.4 is used as a RST pin. It can’t be used as a normal GPIO pin in this mode

 

Source: STC8G Datasheet, section 6.3.3+

Posted by Uli Köhler in STC8