поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN3404 датащи(PDF) 25 Page - STMicroelectronics

номер детали AN3404
подробное описание детали  Low power considerations for STM8TL5xxx devices
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  STMICROELECTRONICS [STMicroelectronics]
домашняя страница  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3404 датащи(HTML) 25 Page - STMicroelectronics

Back Button AN3404 Datasheet HTML 21Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 25 / 30 page
background image
AN3404
Low power mode management by the STM8TL5x STMTouch Library
Doc ID 018847 Rev 3
25/30
Code example 1
// Configure the Zone
TSL_acq_ZoneConfig(&MyZone, 0);
// Set the AL bit to exit from WFI mode only on PXS interrupt
CFG->GCR |= (uint8_t)CFG_GCR_AL;
// Start Bank acquisition
TSL_acq_BankStartAcq();
wfi();
// Process Objects
TSL_obj_GroupProcess(&MyObjGroup);
// DxS processing
TSL_dxs_FirstObj(&MyObjGroup);
With MyZone being declared as followed:
TSL_Zone_T MyZone = {MyBankSorting, 0, TSLPRM_TOTAL_BANKS};
And MyBankSorting as followed:
TSL_tIndex_T MyBankSorting[TSLPRM_TOTAL_BANKS] = {0, 1, 2, 3};
MyBankSorting is a simple array of index referring to an acquisition bank number.
The second element of MyZone is the index to an element in MyBankSorting used as the
first bank to be acquired.
The third element of MyZone is the number of banks belonging to this Zone.
In this simple example, all the banks are defined in MyZone and sorted from the first to the
last.
User can imagine to declare many zones from a single bank sorting table:
TSL_Zone_T MyZone = {MyBankSorting, 0, TSLPRM_TOTAL_BANKS};
TSL_Zone_T MyZone1 = {MyBankSorting, 1, 3};
TSL_Zone_T MyZone2 = {MyBankSorting, 3, 2};
And MyBankSorting as followed:
TSL_tIndex_T MyBankSorting[TSLPRM_TOTAL_BANKS] = { 0, 1, 2, 3, 6, 5, 4};
With such declaration, the acquisition on MyZone will acquire all acquisition banks, while
MyZone1 acquires only bank 1, 2, 3 and MyZone2 acquires only bank 3 and 6.
7.2.2
Very low power management with proximity detection
This example shows how to manage a proximity detection by scanning the key each 512
ms. This is done by alternating Active-halt mode with the AWU and Active-halt mode with
ProxSense. Once a proximity is detected, a scan of the touch keys is performed. This last



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


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
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