Electronic Components Datasheet Search
  English  ▼

X  

AN3404 Datasheet(PDF) 26 Page - STMicroelectronics

Part # AN3404
Description  Low power considerations for STM8TL5xxx devices
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3404 Datasheet(HTML) 26 Page - STMicroelectronics

Back Button AN3404 Datasheet HTML 22Page - STMicroelectronics AN3404 Datasheet HTML 23Page - STMicroelectronics AN3404 Datasheet HTML 24Page - STMicroelectronics AN3404 Datasheet HTML 25Page - STMicroelectronics AN3404 Datasheet HTML 26Page - STMicroelectronics AN3404 Datasheet HTML 27Page - STMicroelectronics AN3404 Datasheet HTML 28Page - STMicroelectronics AN3404 Datasheet HTML 29Page - STMicroelectronics AN3404 Datasheet HTML 30Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 26 / 30 page
background image
Low power mode management by the STM8TL5x STMTouch Library
AN3404
26/30
Doc ID 018847 Rev 3
step is almost identical to the previous example in Section 7.2.1: Low power management
with all acquisition banks.
Entry into Proximity detection mode is conditioned by the value of the “proxy_mode” variable
which is managed in a user function. This mode is exited by checking the state of the
POWER touchkey.
The response time depends on the scanning frequency but, also on the debounce value
which is defined by the CounterDebProx parameter in the touchkey TSL_TouchKeyParam_T
structure. If needed, this variable can be modified by the user application when entering
Proximity detection mode and it can be restored when exiting it (this variable is not modified
in the example given below).
Code example 2
// Executive low power loop, runs continually till POWER key detects a proximity
AWU_Init(AWU_Timebase_512ms);
ECS_last_tick = 40;
while (proxy_mode)
{
TSL_user_Action_LowPower();
if (MyTKeys[POWER].p_Data->StateId == TSL_STATEID_DEB_PROX)
{
AWU_Init(AWU_Timebase_16ms); //reduce the period between acquisition in order
to have a faster response time.
}
else
{
if (TEST_PROX(POWER))
{
proxy_mode = FALSE;
POWER_LED = 1;
LED_ManageLighting();
}
else
{
AWU_Init(AWU_Timebase_512ms);
}
}
disablePXS();
// Prepare AWU



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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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