| Electronic Components Datasheet Search |
|
AN3404 Datasheet(PDF) 26 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN3404 Datasheet(HTML) 26 Page - STMicroelectronics |
|
26 / 30 page ![]() 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 |
|
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 |
| 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 |