Skip to content

incorrect documentation in lgt8f/libraries/lgt_LowPower/examples/powerDown-Dps2/powerDown-Dps2.ino #324

Description

@whyameye

The documentation in powerDown-Dps2.ino states:
In DPS2 mode, no need to set up IOs against leakage current because all IOs have a weak internal pull-up resistor which automatically turned on. Thats why the built-in LED on the MiniEVB board will be glow dimly during sleep

This is not correct. Measuring the IO pins they are clearly floating when in DSP2 mode. I verified this running the example unaltered in several ways:

  • connecting any D port pin to GND through a 100K resistor and pin measures 0V when in DSP2
  • connecting any D port pin to Vcc through 100K resistor and pin measures Vcc when in DSP2
  • with nothing connected to the pin just touching the D2 or D4 pin with a probe from the multimeter sometimes wakes the MCU up from DSP2

The manufacturer's documentation (v1.0.5 English) confirms that the pull-ups will not be on. It states: In DPS2 mode, because of core voltage disable and register data lost, interface control status all resume to input status, all IO output drive and pull-up will disable.

I tested with a MiniEVB board and the built-in LED did not glow dimly.

I can submit a PR if you wish.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions