전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

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



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