数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN4635 数据表(PDF) 31 Page - STMicroelectronics

部件名 AN4635
功能描述  Minimization of power consumption using LPUART in microcontrollers of the STM32L0 series
PDF  34 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN4635 数据表(HTML) 31 Page - STMicroelectronics

Back Button AN4635 Datasheet HTML 26Page - STMicroelectronics AN4635 Datasheet HTML 27Page - STMicroelectronics AN4635 Datasheet HTML 28Page - STMicroelectronics AN4635 Datasheet HTML 29Page - STMicroelectronics AN4635 Datasheet HTML 30Page - STMicroelectronics AN4635 Datasheet HTML 31Page - STMicroelectronics AN4635 Datasheet HTML 32Page - STMicroelectronics AN4635 Datasheet HTML 33Page - STMicroelectronics AN4635 Datasheet HTML 34Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 31 / 34 page
background image
DocID027290 Rev 1
31/34
AN4635
Example project
33
7
Example project
A firmware example is supplied to demonstrate the use of different configurations
mentioned in this document. Most configurations are switchable using the defines section in
the main.c source file.
Two boards are necessary to replicate the measurements referenced in the documentation
as a primary board and a repeater. The repeater must be loaded with DMA FW built with
BOARD2 option.
Measurements of consumption are supposed to be done on the primary board, not on the
repeater.
The example has been developed and tested with STM32L053R8 Nucleo boards.
7.1
HW setup
Just cross connect Tx pins with Rx pins using two wires. JP6 pins can be used to monitor
the power consumption.
7.2
Configuring the example
Various features and working modes of the example FW can be configured using following
preprocessor defines:
DEBUG_OFF – Disables the SWD debug capability on port A and error checking
BOARD2 – Configures the SW as the repeater board (only present in DMA version)
UI – Enables user interface – it is impossible to take correct power consumption readings
with buttons and LEDs enabled
BD_SPEED – Setting of communication baud speed
REG_LP – Attempts to switch to the low power regulator (Polling version only)
PWR_CR_VOS_CONF – Configuration of the main power regulator (range 3 is the default)
TXSLEEP – Sleep mode configured between transmitted bytes
RXSLEEP – Sleep mode configured between received bytes
RXSTOP – Stop mode configured between received bytes
HSI – Sets the system clock to 4MHz HSI mode.
RCC_MSIRANGE_SET – In case of HSI disabled, sets the MSI speed range.
7.3
Example operation
With UI disabled the boards start exchanging messages in the endless loop. In case of
communication error and debugging enabled, the loop is halted.
With UI option the boards will wait for user button press to start the loop and flash the LED
to indicate activity but all that has significant influence on the current consumption and UI
should be disabled for all power measurements.



Html Pages

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


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com