Welcome to mirror list, hosted at ThFree Co, Russian Federation.

readme.txt « PWR_OptimizedRunMode « PWR « Examples_LL « NUCLEO-WB15CC « Projects - github.com/Flipper-Zero/STM32CubeWB.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3554ddcb8c1e63a3f0ba467c3e0ed5c5da6e840e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/**
  @page PWR_OptimizedRunMode PWR PWR_OptimizedRunMode
  
  @verbatim
  ******************************************************************************
  * @file    Examples_LL/PWR/PWR_OptimizedRunMode/readme.txt 
  * @author  MCD Application Team
  * @brief   Description of the PWR Optimized Run Mode example.
  ******************************************************************************
  *
  * Copyright (c) 2019 STMicroelectronics. All rights reserved.
  *
  * This software component is licensed by ST under BSD 3-Clause license,
  * the "License"; You may not use this file except in compliance with the
  * License. You may obtain a copy of the License at:
  *                       opensource.org/licenses/BSD-3-Clause
  *
  ******************************************************************************
  @endverbatim

@par Example Description

How to increase/decrease frequency and VCORE and how to enter/exit the
Low-power run mode.

In the associated software, the system clock is set to 48MHz, an EXTI line
is connected to the User push-button (SW1) through PA.00 and configured to generate an 
interrupt on falling edge upon key press.

After start-up LED2 is toggling FAST (100ms blinking period), indicates that device 
is running at 48MHz.

LED2 toggling speed is controlled by variable "uhLedBlinkSpeed".

The User push-button (SW1) can be pressed at any time to change Frequency, VCore(VOS) 
and Low Power Run mode. 

Initial STATE: 
--> Freq: 48MHz, VCore 1.2V, Core in Run Mode
--> LED2 toggling FAST (100ms)   - wait User push-button (SW1) action

STATE 2: 
User push-button (SW1) pressed:
--> Freq: 16MHz, VCore 1.0V, Core in Run Mode
--> LED2 toggling MEDIUM (200ms) - wait User push-button (SW1) action

STATE 3: 
User push-button (SW1) pressed:
--> Freq:  100KHz, VCore 1.0V, Core in Low Power Run Mode
--> LED2 toggling SLOW (400ms)   - wait User push-button (SW1) action

STATE 4: 
User push-button (SW1) pressed:
--> Freq: 16MHz, VCore 1.0V, Core in Run Mode
--> LED2 toggling MEDIUM (200ms) - wait User push-button (SW1) action

Final STATE: 
User push-button (SW1) pressed:
--> Freq: 48MHz, VCore 1.2V, Core in Run Mode
--> LED2 toggling FAST (100ms) in infinite loop

@note This example may not be used in debug mode depending on IDE and debugger
      configuration selected, due to stsem low frequency and low power mode
      constraints.

@par Keywords

Power, PWR, Low-power run mode, Interrupt, VCORE, Low Power

@par Directory contents 

  - PWR/PWR_OptimizedRunMode/Inc/stm32wbxx_it.h          Interrupt handlers header file
  - PWR/PWR_OptimizedRunMode/Inc/main.h                  Header for main.c module
  - PWR/PWR_OptimizedRunMode/Inc/stm32_assert.h          Template file to include assert_failed function
  - PWR/PWR_OptimizedRunMode/Src/stm32wbxx_it.c          Interrupt handlers
  - PWR/PWR_OptimizedRunMode/Src/main.c                  Main program
  - PWR/PWR_OptimizedRunMode/Src/system_stm32wbxx.c      STM32WBxx system source file


@par Hardware and Software environment

  - This example runs on STM32WB15CCUx devices.
    
  - This example has been tested with STMicroelectronics NUCLEO-WB15CC
    board and can be easily tailored to any other supported device
    and development board.

  - NUCLEO-WB15CC Set-up
    - LED2 connected to pin PB.00
    - User push-button connected to pin PA.00

@par How to use it ? 

In order to make the program work, you must do the following :
 - Open your preferred toolchain
 - Rebuild all files and load your image into target memory
 - Run the example

 * <h3><center>&copy; COPYRIGHT STMicroelectronics</center></h3>
 */