Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
db99ae00
Commit
db99ae00
authored
9 years ago
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
docs/machine: Move WiPy-specific hardware details to its general reference.
parent
06ec96b4
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/library/machine.rst
+1
-4
1 addition, 4 deletions
docs/library/machine.rst
docs/wipy/general.rst
+6
-0
6 additions, 0 deletions
docs/wipy/general.rst
with
7 additions
and
4 deletions
docs/library/machine.rst
+
1
−
4
View file @
db99ae00
...
@@ -59,20 +59,17 @@ Power related functions
...
@@ -59,20 +59,17 @@ Power related functions
Gates the clock to the CPU, useful to reduce power consumption at any time during
Gates the clock to the CPU, useful to reduce power consumption at any time during
short or long periods. Peripherals continue working and execution resumes as soon
short or long periods. Peripherals continue working and execution resumes as soon
as any interrupt is triggered (including the systick which has a period of 1ms).
as any interrupt is triggered (including the systick which has a period of 1ms).
Current consumption is reduced to ~12mA (in WLAN STA mode)
.. function:: sleep()
.. function:: sleep()
Stops the CPU and disables all peripherals except for WLAN. Execution is resumed from
Stops the CPU and disables all peripherals except for WLAN. Execution is resumed from
the point where the sleep was requested. Wake sources are ``Pin``, ``RTC`` and ``WLAN``.
the point where the sleep was requested. Wake sources are ``Pin``, ``RTC`` and ``WLAN``.
Current consumption is reduced to 950uA (in WLAN STA mode).
.. function:: deepsleep()
.. function:: deepsleep()
Stops the CPU and all peripherals including WLAN. Execution is resumed from main, just
Stops the CPU and all peripherals including WLAN. Execution is resumed from main, just
as with a reset. The reset cause can be checked to know that we are coming from
as with a reset. The reset cause can be checked to know that we are coming from
``machine.DEEPSLEEP``. Wake sources are ``Pin`` and ``RTC``. Current consumption
``machine.DEEPSLEEP``. Wake sources are ``Pin`` and ``RTC``.
is reduced to ~5uA.
.. only:: port_wipy
.. only:: port_wipy
...
...
This diff is collapsed.
Click to expand it.
docs/wipy/general.rst
+
6
−
0
View file @
db99ae00
...
@@ -170,3 +170,9 @@ There are currently 2 kinds of errors that you might see:
...
@@ -170,3 +170,9 @@ There are currently 2 kinds of errors that you might see:
2. If the heartbeat LED stays on, then there was a hard fault, you cannot
2. If the heartbeat LED stays on, then there was a hard fault, you cannot
recover from this, the only way out is to press the reset switch.
recover from this, the only way out is to press the reset switch.
Power consumption in various sleep modes
----------------------------------------
* ``machine.idle()`` - ~12mA (in WLAN STA mode)
* ``machine.sleep()`` - 950uA (in WLAN STA mode)
* ``machine.deepsleep()`` - ~5uA
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment