công cụ tìm kiếm bảng dữ liệu linh kiện điện tử
  Vietnamese  ▼
ALLDATASHEET.VN

X  

AN3404 bảng dữ liệu(PDF) 25 Page - STMicroelectronics

tên linh kiện AN3404
Giải thích chi tiết về linh kiện  Low power considerations for STM8TL5xxx devices
PDF  30 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
nhà sản xuất  STMICROELECTRONICS [STMicroelectronics]
Trang chủ  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3404 bảng dữ liệu(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


bảng dữ liệu tải về

Go To PDF Page


Link URL



Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không?  [ DONATE ] 

Alldatasheet là   |   Quảng cáo   |   Liên lạc với chúng tôi   |   Chính sách bảo mật   |   Liên kết đến bảng dữ liệu    |   Trao đổi link   |   Tìm kiếm theo nhà sản xuất
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