Current URL:   


STMPE811 reference code for touchscreen controller operation


features depend on the filter capacitor used in the touch screen pins (X+, Y+, X-, Y-). For small screens, less than 6, a filter capacitor of 1-2nF is recommended to be placed in each of the touchscreen pins, while for bigger screens, 5-10nF capacitors can be used.In case of 1-2nF capacitors: 500uS settling time and touch detect delay are recommended.In case of 5-10nF capacitors:1mS settling time and touch detect delay are recommended.In this document, 2nF filter is assumed. Hence 500uS settling time and 500uS Touch Detect Delay are used.b) Average control: average of 2 or 4 is recommended. In this document, 4 point averaging is used. Write 0x9A to this register for the above mentioned setting.AN2807Device initialization 3/117. FIFO_TH (0x4A), to set FIFO threshold level.FIFO threshold defines the minimum number of samples in the FIFO memory before it gives interrupt. The setting depends on the interrupt handling architecture to be used. Refer to Section1.1. In overall there are two op datasheet.www.st.comDevice initializationAN28072/11 1 Device initializationIn the startup of the system, the initialization of each hardware is performed. For STMPE811 operating as touchscreen controller, the registers listed below need to be initialized:1.SYS_CTRL_2 register (0x04), to turn on the necessary blocks. To turn on the touchscreen controller block, we need to turn on both the touchscreen controller and ADC blocks by writing 0x0C to this register.2. INT_EN register (0x0A), to enable the required interrupt source.For the touchscreen function, only three interrupt sources need to be enabled: TOUCH_DETECT and FIFO_TH. - Write 0x03 to this register for group data reading. - Write 0x02 to this register for single data reading.3. ADC_CTRL1 (0x20), to select sample time, bit number and ADC reference.a) Sample time: it is recommended to select 80 clock cycles for ADC conversion in order to get reasonably fast data rate and accurate reading.b) ADC bit number: 12-bit ADC is used in th September 2008 Rev 11/11AN2807STMPE811 referen

Datasheet URL: 
Relevant Keywords: 
0x0111, STMPE811.In, 0x0710, 0x21, 0xFF13, 0x02, 0x0B, 0x4B, 0x01, STMPE811, 0x07, 0x20, 0x9A, 0x018, 0x0A, 0x4A, 0x009, ADC_CTRL2, 0x05, 0x17, 0x58, 0x015, 0x09, 0x41, 0x006, ADC_CTRL1, 0x04, 0x0C2, 0x56, 0x0112, 0x073, 0x40, 0x00, 2mS4, 0x03, 0x0C, 0x4C

Other Descriptions

0x015 회로도 0x015 данные 0x015 Process Change Notification 0x015 MOQ
0x015 Operating Parameter 0x015 Example 0x015 Equivalent 0x015 Datenblatt
0x015 Data Sheet 0x015 Fichetechnique 0x015 Distributor 0x015 Ficha técnica de
0x015 Schéma 0x015 Mechanical Outline 0x015 User Guide 0x40 Revision
0x40 相等于 0x40 Errata 0x40 Scheda 0x40 User Guide
0x40 данные 0x40 Fichetechnique 0x40 데이터시트 0x40 Esquema
0x40 Broker 0x40 PDF 0x40 Schematico 0x40 Archive
0x40 Prototyping 0x40 Options 0x04 Stock 0x04 Lead Time
0x04 Archive 0x04 данные 0x04 Specs 0x04 Leadtime
0x04 Design Idea 0x04 Esquema 0x04 Broker 0x04 Revision
0x04 Схематический 0x04 Distributor 0x04 Data Sheet 0x04 Feature
0x04 數據 0x0A Suffix 0x0A Schematic 0x0A Reference Design
0x0A Component 0x0A EOL 0x0A Fichetechnique 0x0A Application Note
0x0A Scheda 0x0A equivalente 0x0A End-of-Life 0x0A MOQ
0x0A Technical Specs 0x0A Datasheet 0x0A Data Sheet 0x0A Leadtime
0x0B Mechanical Outline 0x0B Example 0x0B Lead Time 0x0B User Guide
0x0B Ficha técnica de 0x0B Specs 0x0B Datasheet 0x0B Schéma
0x0B 회로도 0x0B 相等於 0x0B Options 0x0B Esquema
0x0B Description 0x0B Capacity 0x0B Circuit ADC_CTRL2 equivalente
ADC_CTRL2 Mechanical Outline ADC_CTRL2 Technical Specs ADC_CTRL2 Schematico ADC_CTRL2 User Guide
ADC_CTRL2 Schematische ADC_CTRL2 replacement ADC_CTRL2 Features ADC_CTRL2 Reference Design
ADC_CTRL2 MOQ ADC_CTRL2 Distribution ADC_CTRL2 End-of-Life ADC_CTRL2 Fichatécnicade
ADC_CTRL2 相等于 ADC_CTRL2 Capacity 2mS4 回路図 2mS4 Prototyping
2mS4 Lead Time 2mS4 データシート 2mS4 данные 2mS4 Inventory
2mS4 Specs 2mS4 Datenblatt 2mS4 gleichwertige 2mS4 회로도
2mS4 équivalent 2mS4 Distribution 2mS4 Broker 2mS4 Design
2mS4 Capacity ADC_CTRL1 RoHS ADC_CTRL1 equivalente ADC_CTRL1 User Guide
ADC_CTRL1 replacement ADC_CTRL1 Pin-out ADC_CTRL1 Fiche technique ADC_CTRL1 Scheda
ADC_CTRL1 Distribution ADC_CTRL1 Release Notes ADC_CTRL1 Errata ADC_CTRL1 데이터시트
ADC_CTRL1 Description ADC_CTRL1 δελτίο ADC_CTRL1 Feature ADC_CTRL1 數據
0x073 示意圖 0x073 Pin-out 0x073 Datenblatt 0x073 Xref
0x073 相等於 0x073 EOL 0x073 Distribution 0x073 Fichatécnicade
0x073 Process Change Notification 0x073 Esquema 0x073 Operating Parameter 0x073 Design
0x073 Equivalent 0x073 Distributor 0x073 Data Sheet 0x0C2 Prototyping
0x0C2 Schematico 0x0C2 Lead Time 0x0C2 データシート 0x0C2 данные
0x0C2 MOQ 0x0C2 Schéma 0x0C2 Ficha técnica 0x0C2 Design Idea
0x0C2 Process Change Notification 0x0C2 Esquema 0x0C2 데이터시트 0x0C2 δελτίο
0x0C2 Data Sheet 0x0C2 Feature

Popular content