IQ Switch® ProxSense® Series IQS227AS Datasheet IQ Switch® - ProxSense® Series Single Channel Capacitive Proximity/Touch Controller The IQS227AS ProxSense® IC is a fully integrated Self Capacitive sensor with dual outputs (Touch and Proximity outputs). Features Sub 2.5µA in Low Power Mode while sensing Proximity Automatic Tuning Implementation (ATI) - Automatic tuning of sense electrode Internal Capacitor Implementation (ICI) – reference capacitor on-chip Supply voltage: 1.8V to 3.6V Minimum external components Data streaming option Advanced on-chip digital signal processing RoHS2 User selectable (OTP): 4 Power Modes Compliant IO sink / source Time-out for stuck key Output mode (Direct / Latch / Toggle) Proximity and Touch Button sensitivity 6 pin TSOT23-6 Representations only, not actual markings Applications LCD, Plasma & LED TVs GSM cellular telephones – On ear detection / touch keys LED flashlights or headlamps White goods and appliances Office equipment, toys, sanitary ware Flame proof, hazardous environment Human Interface Devices Proximity detection enables backlighting activation Wake-up from standby applications Replacement for electromechanical switches Find-In-The-Dark (FITD) applications Automotive: Door pocket lighting, electric window control GUI trigger on Proximity detected Available options TA -40°C to 85°C Copyright © Azoteq (Pty) Ltd 2015 All rights reserved TSOT23-6 IQS227AS IQS227AS Datasheet Revision 1.05 Page 1 of 31 October 2015 IQ Switch® ProxSense® Series Contents IQS227AS DATASHEET ................................................................................................................................................ 1 1 OVERVIEW ......................................................................................................................................................... 4 2 ANALOGUE FUNCTIONALITY............................................................................................................................... 4 3 PACKAGING AND PIN-OUT ................................................................................................................................. 5 4 USER CONFIGURABLE OPTIONS .......................................................................................................................... 7 5 MEASURING CAPACITANCE USING THE CHARGE TRANSFER METHOD ...............................................................10 6 DESCRIPTIONS OF USER OPTIONS .....................................................................................................................10 7 DATA STREAMING MODE ..................................................................................................................................15 8 AUTO TUNING IMPLEMENTATION (ATI) ............................................................................................................17 9 ELECTRICAL SPECIFICATIONS .............................................................................................................................20 10 DATASHEET AND PART-NUMBER INFORMATION ..............................................................................................24 11 REVISION HISTORY ............................................................................................................................................27 APPENDIX A. MEMORY MAP .................................................................................................................................28 APPENDIX B. CONTACT INFORMATION ..................................................................................................................31 Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 2 of 31 October 2015 IQ Switch® ProxSense® Series List of Abbreviations ATI Automatic Tuning Implementation BP Boost Power Mode CS Counts (Number of Charge Transfers) Cs Internal Reference Capacitor EMI Electromagnetic Interference ESD Electro-Static Discharge FTB/EFT (Electrical) Fast Transient Bursts GND Ground HC Halt Charge LP Low Power Mode LTA Long Term Average ND Noise Detect THR Threshold Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 3 of 31 October 2015 IQ Switch® ProxSense® Series 1 Overview The IQS227AS is a single channel capacitive proximity and touch controller with an internal voltage regular and reference capacitor (Cs). The IQS227AS devices have dedicated pin(s) for the connection of sense electrodes (Cx) and output pins for proximity events on POUT and touch event on TOUT. The output pins can be configured for various output methods including a serial data streaming option on TOUT (1-wire protocol) or debug I2C. Device configuration is determined by one time programmable (OTP) options. The devices automatically track slow varying environmental changes via various filters, detect noise and has an Automatic Tuning Implementation (ATI) to tune the device sense electrode(s). The IQS227AS is built on ProxSense® new low voltage platform ideal for battery application (down to 1.8V). 1.1 Applicability All specifications, except where specifically mentioned otherwise, provided by this datasheet are applicable to the following ranges: Temperature:-40C to +85C Supply voltage (VDDHI): 1.8V to 3.6V 2 Analogue Functionality The analogue circuitry measures the capacitance of a sense electrode attached to the Cx pin through a charge transfer process that is periodically initiated by the digital circuitry. The measuring process is referred to a conversion and consists of the discharging of reference capacitor and Cx, the charging of Cx and then a series of charge transfers from Cx to Cs until a trip voltage is reached. The number of charge transfers required to reach the trip voltage is referred to as the Counts (CS). Copyright © Azoteq (Pty) Ltd 2015 All rights reserved The capacitance measurement circuitry makes use of an internal Cs and voltage reference (VREF). The analogue circuitry further provides functionality for: Power on reset (POR) detection. Brown out detection (BOD). Detection of a watch dog timer (WDT) IQS227AS Datasheet Revision 1.05 Page 4 of 31 October 2015 IQ Switch® ProxSense® Series 3 Packaging and Pin-out 3.1 IQS227AS The IQS227AS is available in a TSOT23-6 package. 3.1.1 Pin-out Table 3.1 1 GND 2 POUT 3 227Axx Figure 3.1 TOUT 6 CX 5 VDDHI 4 VREG Pin-out of IQS227AS in TSOT23-6 package. Pin-out description. IQS227AS Pin 1 2 3 4 5 6 Name TOUT GND POUT VREG VDDHI CX Copyright © Azoteq (Pty) Ltd 2015 All rights reserved Type Digital Out Ground Digital Out Analogue Output Supply Input Analogue I/O Function Touch Output GND Reference Proximity Output Internal Regulator Pin Supply Voltage Input Sense Electrode IQS227AS Datasheet Revision 1.05 Page 5 of 31 October 2015 IQ Switch® ProxSense® Series 3.1.2 Schematic Refer to AZD008 for touch key designs Figure 3.2 Typical application schematic of IQS227AS. 100pF capacitors are optional for added RF immunity. Place all decoupling capacitors (on VDDHI and VREG) as close to the IC as possible. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 6 of 31 October 2015 IQ Switch® ProxSense® Series 4 User Configurable Options The IQS227AS provides One Time Programmable (OTP) user options (each option can be modified only once). The device is fully functional in the default state. OTP options are intended for specific applications. The configuration of the device can be done on packaged devices or in-circuit. In-circuit configuration may be limited by values of external components chosen. A number of standard device configurations are available. Azoteq can supply pre-configured devices for large quantities. 4.1 Configuring of Devices Azoteq offers a Configuration Tool (CT210) and accompanying software (USBProg.exe) that can be used to program the OTP user options for prototyping purposes. More details regarding the configuration of the device with the USBProg program is explained by application note: “AZD007 – USBProg Overview” which can be found on the Azoteq website. Alternate programming solutions of the IQS227AS also exist. For further enquiries regarding this matter please contact Azoteq at [email protected] or the local distributor Table 4.1 TFUNC User Selectable Configuration Options: Bank 0 (0xC4H) PFUNC LOGIC TTHR2 TTHR1 TTHR0 PTHR1 PTHR1 bit 7 bit 0 Bank0: bit 7 TFUNC: Touch Function 0 = Normal 1 = Toggle Section 6.3 Bank0: bit 6 PFUNC: Proximity Function 0 = Normal 1 = Latch Section 6.3 Bank0: bit 5 LOGIC: I/O’s Output Logic Select 0 = Active Low 1 = Active High Section 6.2 Bank0: bit 4-2 TTHR: Touch Thresholds 000 = 72/256 001 = 8/256 010 = 24/256 011 = 48/256 100 = 96/256 101 = 128/256 110 = 160/256 111 = 192/256 Section 6.5 Bank0: bit 1-0 PTHR: Proximity Thresholds 00 = 4 01 = 2 10 = 8 11 = 16 Section 6.4 Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 7 of 31 October 2015 IQ Switch® ProxSense® Series Table 4.2 tHALT1 : User Selectable Configuration Options: Bank 1 – Full ATI (0xC5H) tHALT0 ~ ~ ~ BASE2 BASE1 BASE0 bit 7 bit 0 Bank1: bit 7-6 tHALT: Halt times 00 = 20 seconds 01 = 40 seconds 10 = Never 11 = Always (Prox on 40s) Bank1: bit 5-3 Not used Bank1: bit 2-0 BASE: Base Value 000 = 200 001 = 50 010 = 75 011 = 100 100 = 150 101 = 250 110 = 300 111 = 500 Copyright © Azoteq (Pty) Ltd 2015 All rights reserved Section 6.13 Section 6.7 IQS227AS Datasheet Revision 1.05 Page 8 of 31 October 2015 IQ Switch® ProxSense® Series User Selectable Configuration Options: Bank 1 – Partial ATI1 Table 4.3 tHALT1 tHALT0 MULTSENSE1 MULTSENSE0 MULTCOMP3 MULTCOMP2 MULTCOMP1 MULTCOMP0 bit 7 bit 0 Bank1:7-6 tHALT: Halt times 00 = 20 seconds 01 = 40 seconds 10 = Never 11 = Always (Prox on 40s) Section 6.13 Bank1: bit 5-4 MULT: Multiplier for Sensitivity 00 = 1 01 = 2 10 = 3 11 = 4 MULT: Multiplier for Compensation 0000 = 0 1111 = 15 Section 6.8 Bank1: bit 3-0 Table 4.4 STREAM Section 6.8 User Selectable Configuration Options: Bank 2 (0xC6H) TRANS COMMS ND Target ATI LP1 LP0 bit 7 bit 0 Bank2: bit 7 STREAM: Streaming Method 0 = 1-wire 1 = 2-wire (I2C) Section 7.2 Bank2: bit 6 TRANS: Charge Transfer Frequency 0 = 512kHz 1 = 250kHz Section 6.9 Bank2: bit 5 COMMS: Streaming 0 = Disabled 1 = Enabled Section 7 Bank2: bit 4 ND: Noise Detect 0 = Disabled 1 = Enabled (1-wire comms only) Section 6.11 Bank2: bit 3 Target: ATI target counts 0 = 1024 1 = 512 Section 6.10 Bank2: bit 2 ATI: ATI selection 0 = Full 1 = Partial Section 6.12 Bank2: bit 1-0 LP: Low Power Modes 00 = BP (9ms) 01 = NP (128ms) 10 = LP1 (256ms) 11 = LP2 (512ms) Section 6.6 1 Requires OTP bit 2 in Bank 2 to be set. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 9 of 31 October 2015 IQ Switch® ProxSense® Series 5 Measuring capacitance using the Charge Transfer method The charge transfer method of capacitive sensing is employed on the IQS227AS. (The charge transfer principle is thoroughly described in the application note: “AZD004 Azoteq Capacitive Sensing”.) A charge cycle is used to take a measurement of the capacitance of the sense electrode (connected to Cx) relative to ground. It consists of a series of pulses charging Cx and discharging Cx to the reference capacitor, at the charge transfer frequency (FCX - refer to Section 9). The number of the pulses required to reach a trip voltage on the reference capacitor is referred to as Count Value (CS) which is the instantaneous capacitive measurement. The Counts (CS) are used to determine if either a physical contact or proximity event occurred (refer to section 6.13.1), based on the change in Counts (CS) detected. The typical values of CS, without a touch or proximity condition range between 650 and 1150 Counts, although higher and lower counts can be used based on the application requirements. With counts larger than +/- 1150 the gain of the system may become too high causing unsteady operation. The IQS227AS schedules a charge cycle every tSAMPLE seconds to ensure regular samples for processing of results. The duration of the charge cycle is defined as tCHARGE. (refer to Table 9.5) and varies according to the counts required to reach the trip voltage. Following the charge cycle other activities such as data streaming is completed (if in streaming mode), before the next charge cycle is initiated. Please note: Attaching a probe to the Cx pin will increase the capacitance of the sense plate and therefore Cs. This may have an immediate influence on the counts (decrease tCHARGE) and cause a proximity or touch event. After tHALT seconds the system will adjust to accommodate for this change. If the total load on Cx, with the probe attached is still lower than the maximum Cx load the system will continue to function normally after tHALT seconds with the probe attached. t SAMPLE t CHARGE Cx pin 1 2 Figure 5.1 6 4 Charge cycles as can be seen on Cx Descriptions of User Options This section describes the individual user programmable options of the IQS227AS in more detail. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved 3 User programmable options are programmed to One Time Programmable (OTP) fuse registers (refer to Section 4). Note: HIGH=Logical ‘1’ and LOW=Logical ‘0’. The following sections are explained with POUT and TOUT taken as ‘Active LOW’. IQS227AS Datasheet Revision 1.05 Page 10 of 31 October 2015 IQ Switch® ProxSense® Series The default is always where bits are set to 0. Refer to section 9.3 for the sourcing and sinking capabilities POUT and TOUT. These pins are sourced from VDDHI and will be turned HIGH (when active high) for a minimum time of tHIGH, and LOW for a minimum time of tLOW (when active low). 6.1 Proximity / Touch Sensor The IQS227AS provides a Proximity output on POUT and a Touch output on TOUT, and does not need to be configured. 6.2 Logic select for outputs The logic used by the device can be selected as active HIGH or active LOW. The output pins, POUT and TOUT, will function based on this selection. The I/O’s are push pull in both directions and does not require a pullup resistor. Configuration: Bank0 bit5 LOGIC: Output logic select Bit Selection 0 Active Low 1 Active High 6.3 Output pin function Various options for the function of the output pin(s) are available. These are selected as follow: Configuration: Bank0 bit7-6 FUNC1:FUNC0 OUTPUT Pins’ functions Bit Selection 00 POUT active, TOUT active 01 POUT latch, TOUT active 10 POUT active, TOUT toggle 11 POUT latch, TOUT toggle 6.3.1 Output function: Active With a Proximity or Touch event, the output pin will change to LOW and stay LOW for as long as the event remains (see Figure 6.1). Also refer to the use of tHALT section 6.13.1 that may cause the termination of the event. User Actuation 1 0 Output Pin 1 0 Figure 6.1 Active Mode Output Configuration 6.3.2 Output function: Latch (for tLATCH) With a Proximity or Touch event, the output pin will latch LOW for tLATCH seconds. When the event remains active longer than tLATCH the output pin will remain LOW as long as the event remains active (see Figure 6.2). When the event terminates prior to tLATCH the output pin will remain LOW. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 11 of 31 October 2015 IQ Switch® ProxSense® Series User Actuation 1 0 Output Pin tLATCH tLATCH tLATCH + time that User Actuation stays active 1 0 Figure 6.2 Latch Mode Output Configuration 6.3.3 Output function: Toggle The output pin will toggle with every Proximity or Touch event occurring. Thus when an event occurs and the output is LOW the output will become HIGH and when the output is HIGH the output will become LOW (see Figure 6.3). User Actuation 1 0 Output Pin 1 0 Figure 6.3 6.4 Toggle Mode Output Configuration Proximity Threshold The IQS227AS has 4 proximity threshold settings. The proximity threshold is selected by the designer to obtain the desired sensitivity and noise immunity. The proximity event is triggered based on the selected proximity threshold; the Counts (CS) and the LTA (Long Term Average). The threshold is expressed in terms of counts; the same as CS (refer to Table 4.3) PTHR =< LTA-CS Where LTA is the Long Term Average (refer to 6.13.1) 6.5 Touch Threshold Configuration: Bank0 bit1-0 PTHR1:PTHR0 Proximity Thresholds Bit Selection 00 4 01 2 (Most sensitive) 10 8 11 16 (Least sensitive) A proximity event is identified when for at least 6 consecutive samples the following equation holds: TTHR =< LTA-CS With lower average counts (therefore lower LTA) values the touch threshold will be lower and vice versa. The IQS227AS has 8 touch threshold settings. The touch threshold is selected by the designer to obtain the desired touch sensitivity. The touch threshold is expressed as a fraction of the LTA as follows: 𝑇𝑇𝐻𝑅 = 𝑥⁄256 × 𝐿𝑇𝐴 The touch event is triggered based on TTH, Counts (CS) and LTA. A touch event is identified when for at least 3 consecutive samples the following equation holds: Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 12 of 31 October 2015 IQ Switch® ProxSense® Series Configuration: Bank0 bit4-2 TTHR2:TTHR0: Touch Thresholds Bit Selection 000 72/256 001 8/256 (Most sensitive) 010 24/256 011 48/256 100 96/256 101 128/256 110 160/256 111 192/256 (Least sensitive) 6.6 Power Modes The IQS227AS has four power modes specifically designed to reduce current consumption for battery applications. The power modes are basically implemented around the occurrence of charge cycle every tSAMPLE seconds (refer to Table 6.1). The fewer charge transfer cycles that need to occur per second the lower the power consumption (but decreased response time). During Boost Power Mode (BP), charge cycles are initiated approximately every 9ms. While in any power mode the device will zoom to BP whenever an existing count sample (CS) indicates a possible proximity or touch event. The device will remain in BP for tZOOM seconds and then return to the selected power mode. The Zoom function allows reliable detection of events with counts being produced at the BP rate. Table 6.1 Power Mode configuration: Bank2 bit1-0 Bit 00 01 10 11 Charge Cycle Duration = tCHARGE Power Mode timing tBP (default) tNP tLP1 tLP2 tSAMPLE (ms) BP (9ms) 128 256 512 Zoom to Boost Mode after proximity detected CX tSAMPLE tSAMPLE Figure 6.4 6.7 LP Modes: Charge cycles Base Values The sensitivity of the IQS227AS can be changed by adjusting the base value of the ATI algorithm, and as a result changing the compensation required to reach the target. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved 𝑇𝐴𝑅𝐺𝐸𝑇 𝐵𝐴𝑆𝐸 The target of the IQS227AS is fixed at 1000 counts. 𝑆𝑒𝑛𝑠𝑖𝑡𝑖𝑣𝑖𝑡𝑦 = IQS227AS Datasheet Revision 1.05 Page 13 of 31 October 2015 IQ Switch® ProxSense® Series Configuration: Bank1 bit2-0 BASE: Base Value Select Bit Selection 000 200 001 50 010 75 011 100 100 150 101 250 110 300 111 500 6.8 Multipliers When using partial ATI, the base value is set up using the multipliers. Compensation will still be added automatically to reach the target. 6.9 Charge Transfer The charge transfer frequency of the IQS227AS is adjustable. Changing the transfer frequency will affect sensitivity and response rate. Two options are available: Configuration: Bank2 bit6 TRANS: Charge Transfer Frequency Bit Selection 0 512kHz 1 250kHz 6.10 ATI Target Counts The target of the ATI algorithm can be adjusted between 1024 (default) and 512 counts. When less sensitivity is required, the lower counts will also increase response rate. Configuration: Bank2 bit3 Target: ATI Target Counts Bit Selection 0 1024 1 512 6.11 Noise Detect 6.11.1 ND: RF Noise Detection The IQS227AS has RF Noise Detect (ND) functionality. If ND function is enabled, the IQS227AS is able to detect RF Noise on the TOUT pin. Further details on the working of Copyright © Azoteq (Pty) Ltd 2015 All rights reserved this can be found in the Application Notes: AZD015 and AZD015b. In extremely noise environments, and close proximity to RF noise sources, the noise detect of the IQS227AS can be enable to block false triggers. Proper layout guidelines should always be used before the need to use ND. Configuration: Bank2 bit4 ND: Noise Detect Bit Selection 0 Disabled 1 Enabled 6.12 Enable Partial ATI In some applications the startup time of the IQS227AS may be required to be decreased. This is possible by enabling partial ATI, if the multipliers required can be determined, and the compensation alone is adequate to account for environmental change. Configuration: Bank2 bit2 ATI: Partial ATI Bit Selection 0 Disabled 1 Enabled 6.13 Filters used by the IQS227AS The IQS227AS devices employ various signal processing functions that includes the execution of various filters as described below. 6.13.1 Long Term Average (LTA) Capacitive touch devices detect changes in capacitance that are not always related to the intended proximity or touch of a human. This is a result of changes in the environment of the sense plate and other factors. These changes need to be compensated for in various manners in order to reliably detect touch events and especially to detect proximity events. One mechanism the IQS227AS employs is the use of a Long Term Averaging filter (IIR type filter) which tracks slow changes in the environment (expressed as changes in the counts). The IQS227AS Datasheet Revision 1.05 Page 14 of 31 October 2015 IQ Switch® ProxSense® Series result of this filter is a Long Term Average (LTA) value that forms a dynamic reference used for various functions such as identification of proximity and touch events. The LTA is calculated from the counts (CS). The filter only executes while no proximity or touch event is detected to ensure compensation only for environmental changes. However there may be instances where sudden changes in the environment or changes in the environment while a proximity or touch event has been detected cause the counts to drift away from the LTA. To compensate for these situations a Halt Timer (tHALT) has been defined. The Halt Timer is started when a proximity or touch event occurs and when it expires the LTA filter is recalibrated. Recalibration causes LTA < CS, thus the disappearance of proximity or touch events (refer to 6.4 and 6.5). The designer needs to select a Halt Timer value to best accommodate the required application. Configuration: Bank1 bit7-6 tHALT1:tHATL0: Halt time of Long Term Average Bit Selection 00 20 seconds 01 40 seconds 10 NEVER 11 ALWAYS (Proximity on 40 seconds) Notes: The “NEVER” option indicates that the execution of the filters will never be halted. With the ‘ALWAYS’ option and the detection of a proximity event the execution of the filter will be halted for only 40 seconds and with the detection of a touch event the execution of the filter will be halted as long as the touch condition applies. Refer to Application note “AZD024 Graphical Representation of the IIR Filter” for detail regarding the execution of the LTA filter. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved 6.13.2 IIR Raw Data filter The extreme sensitivity of the IQS227AS makes it susceptible to external noise sources. This causes a decreased signal to noise (S/N) ratio, which could potentially cause false event detections. Noise can also couple into the device as a result of poor PCB, sense electrode design and other factors influencing capacitive sensing devices. In order to compensate for noise the IQS227AS uses an IIR filter on the raw data to minimize result of noise in the counts. This filter is implemented on all of the IQS227AS devices, and cannot be disabled. 7 Data Streaming Mode The IQS227AS has the capability to stream data to a MCU. This provides the designer with the capability to obtain the parameters within the device in order to aid design into applications. Data streaming may further be used by an MCU to control events or further process results obtained from the IQS227AS devices. Data streaming is performed as a 1wire data protocol on TOUT, OR set to I2C streaming (SDA on POUT, SCL on TOUT). Data Streaming can be enabled as indicated below: Configuration: Bank2 bit7 COMMS: Data Streaming Bit Selection 0 Disabled 1 Enabled Configuration: Bank2 bit5 STREAMING: Data streaming mode Bit Selection 0 1-Wire 1 I2C Data streaming is initiated by the IQS227AS. When data streaming is enabled data is sent following each charge. Figure 7.1 illustrates the communication protocol for initialising and sending data with the 1 wire communication protocol. IQS227AS Datasheet Revision 1.05 Page 15 of 31 October 2015 IQ Switch® ProxSense® Series 1. Communication is initiated by a START bit. Bit defined as a low condition for tSTART. 2. Following the START bit, is a synchronisation byte (TINIT = 0xAA). This byte is used by the MCU for clock synchronisation. 3. Following TINIT the data bytes will be sent. With short data streaming mode TOUT /OUT B1 tINIT tDATA B2 B3 enabled, 5 bytes of data will be sent, otherwise 8 bytes will be sent after each charge cycle. 4. Each byte sent will be preceded by a START bit and a STOP bit will follow every byte. 5. STOP bit indicated by taking pin 1 high. The STOP bit does not have a defined period. B4 B5 B6 B7 B8 tSTOP Stop – Start Start Stop – Start Figure 7.1 1-wire data streaming mode The following table defines the data streamed from the IQS227AS devices during the 1-wire streaming protocol. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 16 of 31 October 2015 IQ Switch® ProxSense® Series Table 7.1 Byte Definitions for 1-Wire Data Streaming Mode Byte (B) 0 1 2 3 4 5 Sys Flags 6 7 8 Bit 7:0 15:8 23:16 31:24 39 38 37 36 35 34 33 32 47 46 45 44 43 42 41 40 55:48 63:56 Value AA CS High byte CS Low byte LTA High byte LTA Low byte ~ ~ Active High Filter Halt LP active ATI Busy Noise Found In Zoom Touch Proximity Multipliers Multipliers Multipliers Multipliers Multipliers Multipliers Compensation Counter 7.1 Event Mode The IQS227AS has Event Mode implemented during 1-wire communication. This allows the MCU to monitor the POUT pin for status changes (proximity or touch made or released events) instead of capturing data continuously. Upon a status change, the IQS227AS will pull the POUT pin for low to indicate to the MCU to read data. The POUT pin will stay low for 1.6ms. 7.2 I2C The IQS227AS also allow for I2C streaming for debugging. Data Streaming can be changed from 1-wire protocol to I2C as shown below: Copyright © Azoteq (Pty) Ltd 2015 All rights reserved Configuration: Bank2 bit7: Streaming Mode Bit Selection 0 1-Wire Protocol 1 I2C Streaming The Memory Map for the IQS227AS can be found in Appendix A. The IQS227AS can communicate on an I2C compatible bus structure. Note that 4.7kΩ pull-up resistors should be placed on SDA and SCL. The Control byte indicates the 7-bit device address (0x44H) and the Read/Write indicator bit. 8 Auto Tuning Implementation (ATI) ATI is a sophisticated technology implemented in the latest generation ProxSense® devices that optimises the performance of the sensor in a wide range of applications and environmental conditions (refer to application note AZD0027 - Auto Tuning Implementation). ATI makes adjustments through external reference capacitors (as required by most other solutions) to obtain optimum performance. ATI adjusts internal circuitry according to two parameters, the ATI multiplier and the ATI compensation. The ATI multiplier can be viewed as a course adjustment and the ATI compensation as a fine adjustment. The adjustment of the ATI parameters will result in variations in the counts and sensitivity. Sensitivity can be observed as the change in current sample as the result of a fixed change in sensed capacitance. The ATI parameters have been chosen to provide significant overlap. It may therefore be possible to select various combinations of ATI multiplier and ATI compensation settings to obtain the same count value. The sensitivity of the various options may however be different for the same count value. IQS227AS Datasheet Revision 1.05 Page 17 of 31 October 2015 IQ Switch® ProxSense® Series seconds as internal filters stabilises. 8.1 Automatic ATI The IQS227AS implements an automatic ATI algorithm. This algorithm automatically adjusts the ATI parameters to optimise the sensing electrodes connection to the device. Automatic ATI can be implemented so effectively due to: The device will execute the ATI algorithm whenever the device starts-up and when the counts are not within a predetermined range. While the Automatic ATI algorithm is in progress this condition will be indicated in the streaming data and proximity and touch events cannot be detected. The device will only briefly remain in this condition and it will be entered only when relatively large shifts in the counts has been detected. The automatic ATI function aims to maintain a constant count value, regardless of the capacitance of the sense electrode (within the maximum range of the device). The effects of auto-ATI on the application are the following: Automatic adjustment of the device configuration and processing parameters for a wide range of PCB and application designs to maintain a optimal configuration for proximity and touch detection. Automatic tuning of the sense electrode at start-up to optimise the sensitivity of the application. Automatic re-tuning when the device detects changes in the sensing electrodes capacitance to accommodate a large range of changes in the environment of the application that influences the sensing electrode. Re-tuning only occurs during device operation when a relatively large sensitivity reduction is detected. This is to ensure smooth operation of the device during operation. Re-tuning may temporarily influences the normal functioning of the device, but in most instances the effect will be hardly noticeable. Shortly after the completion of the re-tuning process the sensitivity of a Proximity detection may be reduced slightly for a few Copyright © Azoteq (Pty) Ltd 2015 All rights reserved Excellent system signal to noise ratio (SNR). Effective digital signal processing to remove AC and other noise. The very stable core of the devices. Built in capability to accommodate a large range of sensing electrode capacitances. 8.2 IQS227AS Noise Immunity The IQS227AS has advanced immunity to RF noise sources such as GSM cellular telephones, DECT, Bluetooth and WIFI devices. Design guidelines should however be followed to ensure the best noise immunity. The design of capacitive sensing applications can encompass a large range of situations but as a summary the following should be noted to improve a design: A ground plane should be placed under the IC, except under the Cx line. All the tracks on the PCB must be kept as short as possible. The capacitor between VDDHI and GND as well as between VREG and GND, must be placed as close as possible to the IC. A 100 pF capacitor can be placed in parallel with the 1uF capacitor between VDDHI and GND. Another 100 pF capacitor can be placed in parallel with the 1uF capacitor between VREG and GND. When the device is too sensitive for a specific application a parasitic capacitor (max 5pF) can be added between the Cx line and ground. Proper sense electrode and button design principles must be followed. Unintentional coupling of sense electrode to ground and other circuitry must be limited by increasing the distance to these sources or making use of the driven shield. In some instances a ground plane some distance from the device and sense electrode may provide significant shielding from undesired interference. IQS227AS Datasheet Revision 1.05 Page 18 of 31 October 2015 IQ Switch® ProxSense® Series When then the capacitance between the sense electrode and ground becomes too large the sensitivity of the device may be influenced. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 19 of 31 October 2015 IQ Switch® ProxSense® Series 9 Electrical Specifications 9.1 Absolute Maximum Specifications Exceeding these maximum specifications may cause damage to the device. Operating temperature Supply Voltage (VDDHI – VSS) Maximum pin voltage (TOUT, POUT) Pin voltage (Cx) Minimum pin voltage (VDDHI, VREG, TOUT, POUT, Cx) Minimum power-on slope HBM ESD protection (VDDHI, VREG, VSS, TOUT, POUT, Cx) 9.2 -40°C to 85°C 3.6V VDDHI + 0.3V 1.7V VSS - 0.3V 100V/s 8kV General Characteristics The IQS227AS devices are rated for supply voltages between 1.8V and 3.6V. Table 9.1 IQS227AS General Operating Conditions (Self) DESCRIPTION Supply voltage Internal regulator output Boost operating current Normal operating current Low power operating current Low power operating current Conditions 1.8 ≤ VDDHI ≤ 3.6 1.8 ≤ VDDHI ≤ 3.6 1.8 ≤ VDDHI ≤ 3.6 1.8 ≤ VDDHI ≤ 3.6 1.8 ≤ VDDHI ≤ 3.6 PARAMETER VDDHI VREG IIQS227AS BP IIQS227AS NP IIQS227AS LP1 IIQS227AS LP2 MIN 1.8 1.64 119 4.7 2.8 1.75 TYP 1.7 128 6 3.5 <2.51 MAX 3.6 1.76 135 7.6 4.7 3 UNIT V V μA μA μA μA Charge Transfer Timings for low power modes are found in Section6.6. Table 9.2 Start-up and shut-down slope Characteristics DESCRIPTION POR BOD 1 Conditions VDDHI Slope ≥ 100V/s PARAMETER POR BOD MIN 1 MAX 1.55 UNIT V V All low power current values arise from characterization done from (-)35°C to (+)85°C at 3.3V Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 20 of 31 October 2015 IQ Switch® ProxSense® Series 9.3 Output Characteristics1 Table 9.3 TOUT Characteristics Symbol Description ISOURCE Output High voltage Symbol Description ISINK Output Low voltage Table 9.4 Conditions VDDHI = 3.6V VDDHI = 3.3V VDDHI = 1.8V Conditions VDDHI = 3.6V VDDHI = 3.3V VDDHI = 1.8V MIN ~ ~ TBD MIN Conditions VDDHI = 3.6V VDDHI = 3.3V VDDHI = 1.8V Conditions VDDHI = 3.6V VDDHI = 3.3V VDDHI = 1.8V MIN ~ ~ TBD MIN TYP ~ 10 ~ TYP MAX TBD ~ ~ MAX TBD 10 UNIT mA UNIT mA TBD POUT Characteristics Symbol Description ISOURCE Output High voltage Symbol Description ISINK Output Low voltage Table 9.5 VOH 0.9*VDDHI 0.9*VDDHI 0.9*VDDHI VOL 0.1V 0.1V 0.1V VOH 0.9*VDDHI 0.9*VDDHI 0.9*VDDHI VOL 0.1V 0.1V 0.1V TYP ~ 10 ~ TYP MAX TBD ~ ~ MAX TBD 10 UNIT mA UNIT mA TBD Combined Characteristics Symbol Description ISOURCE Output High voltage Symbol Description ISINK Output Low voltage VOH 0.9*VDDHI 0.9*VDDHI 0.9*VDDHI VOL 0.1V 0.1V 0.1V Conditions VDDHI = 3.6V VDDHI = 3.3V VDDHI = 1.8V Conditions VDDHI = 3.6V VDDHI = 3.3V VDDHI = 1.8V MIN ~ ~ TBD MIN TYP ~ 17 ~ TYP 20 MAX TBD ~ ~ MAX TBD UNIT mA UNIT mA TBD 1 I/O sink capabilities only in Active Low configuration. I/O source capabilities only in Active High configuration. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 21 of 31 October 2015 IQ Switch® ProxSense® Series 9.4 Packaging Information C A B D E F J G I H Figure 9.1 Table 9.6 TSOT23-6 Packaging1 TSOT23-6 Dimensions Dimension Min Max A 2.60mm 3.00mm B 1.50mm 1.70mm C 2.80mm 3.00mm D 0.30mm 0.50mm E 0.95 Basic F 0.84mm 1.00mm G 0.00mm 0.10mm H 0.30mm 0.50mm I 0° 8° J 0.03mm 0.20mm 9.5 Package MSL Moisture Sensitivity Level (MSL) relates to the packaging and handling precautions for some semiconductors. The MSL is an electronic standard for the time period in which a moisture sensitive device can be exposed to ambient room conditions (approximately 30°C/85%RH see J-STD033C for more info) before reflow occur. 1 Drawing not on Scale Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 22 of 31 October 2015 IQ Switch® ProxSense® Series Table 9.7 Package TSOT23-6 Table 9-1: MSL Level (duration) MSL 1 (Unlimited at ≤30 °C/85% RH) Reflow profile peak temperature < 260 °C for < 30 seconds Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 23 of 31 October 2015 IQ Switch® ProxSense® Series 10 Datasheet and Part-number Information 10.1 Ordering Information Orders will be subject to a MOQ (Minimum Order Quantity) of a full reel. Contact the official distributor for sample quantities. A list of the distributors can be found under the “Distributors” section of www.azoteq.com. For large orders, Azoteq can provide pre-configured devices. The Part-number can be generated by using USBProg.exe or the Interactive Part Number generator on the website. IQS227gg zzz zzz zz ppb BULK PACKAGING IC NAME CONFIGURATION PACKAGE TYPE IC NAME IQS227AS = Self Capacitive IC with Dual outputs CONFIGURATION zzz zzz zz = IC Configuration (hexadecimal) PACKAGE TYPE TS = TSOT23-6 BULK PACKAGING R = Reel (3000pcs/reel) MOQ = 1 reel. – MOQ = 3000pcs Orders shipped as full reels Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 24 of 31 October 2015 IQ Switch® ProxSense® Series 10.2 Device Marking – Top There are 2 marking versions in circulation for IQS227AS: 227Axx Batch Code IC NAME Figure 10.1 First Marking Variant. 22-Axx Batch Code IC NAME Figure 10.2 Second Marking Variant. IC NAME 227A = 22-A = IQS227AS Self Capacitive IQS227AS Self Capacitive Batch Code xx = AA to ZZ 10.3 Device Marking - Bottom Some batches IQS227AS will not have any bottom markings. These devices are configured after marking, and may have variations in configuration – please refer to the reel label. Other batches will display the configuration set on the chip on the bottom marking. zzz zzz zz CONFIGURATION Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 25 of 31 October 2015 IQ Switch® ProxSense® Series 10.4 Tape & Reel Specification Figure 10.3 Copyright © Azoteq (Pty) Ltd 2015 All rights reserved TSOT23-6 Tape Specification. IQS227AS Datasheet Revision 1.05 Page 26 of 31 October 2015 IQ Switch® ProxSense® Series 11 Revision History Revision Device ID1 Package Markings Description 0 39 28 227AAA IQS227AS Self capacitive sensor 1 Refers to product number and firmware version Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 27 of 31 October 2015 IQ Switch® ProxSense® Series Appendix A. Memory Map Device Information 00H Bit Value Note Access R 7 6 Product Number (PROD_NR) 5 4 3 2 39 (Decimal) 1 0 6 Software Number (SW_NR) 5 4 3 2 28 (Decimal) 1 0 01H Bit Value Note Access R 7 [00H] PROD_NR The product number for the IQS227AS is 39 (decimal). [01H] SW_NR The software version number of the device ROM can be read in this byte. The latest software version is 28 (decimal). 10H Access R Bit Value Note 7 ~ 6 ~ System Flags (Sys_Flags) 5 4 3 2 Logic Halt LP ATI 1 ND 0 Zoom [10H] SYSFLAGS0 Bit 7: SYSTEM_USE Bit 6: SYSTEM_USE Bit 5: Logic: Logic Output Indication 0 = Active Low 1 = Active High Bit 4: Halt: Indicates Filter Halt status 0 = LTA not being Halted 1 = LTA Halted Bit 3: LP: Low Power Mode 0 = Sample time BP 1 = Sample time LP Bit 2: ATI: Status of automated ATI routine 0 = ATI is not busy 1 = ATI in progress Bit 1: ND: This bit indicates the presence of noise interference. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 28 of 31 October 2015 IQ Switch® ProxSense® Series 0 = IC has not detected the presence of noise 1 = IC has detected the presence of noise Bit 0: ZOOM: Zoom will indicate full-speed charging once an undebounced proximity is detected. In BP mode, this will not change the charging frequency. 0 = IC not zoomed in 1 = IC detected undebounced proximity and IC is charging at full-speed (BP) 31H Access R Status Bit Value Note 7 6 5 4 3 2 1 Touch 0 Prox 5 Counts_Hi (CS_H) 4 3 Counts High Byte 2 1 0 6 5 Counts_Low (CS_L) 4 3 Counts Low Byte 2 1 0 6 LTA_Hi (LTA_H) 5 4 3 2 Long Term Average High Byte 1 0 1 0 [31H] Status Bit 1: Touch: Touch indication bit. 0 = No Touch Detected 1 = Touch Event Detected Bit 0: Prox: Proximity indication bit. 0 = No Proximity Detected 1 = Proximity Event Detected 42H Access R Bit Value Note 7 6 43H Access R Bit Value Note 7 83H Access R Bit Value Note 7 84H Bit Copyright © Azoteq (Pty) Ltd 2015 All rights reserved 7 6 5 LTA_Low (LTA_L) 4 3 IQS227AS Datasheet Revision 1.05 2 Page 29 of 31 October 2015 IQ Switch® ProxSense® Series Access R Value Note Long Term Average Low Byte C4H Access R Bit Value Note 7 6 Fuse Bank 0 (FB_0) 5 4 3 2 See Table 4.1 for more details Bit Value Note 7 6 Fuse Bank 1 (FB_1) 5 4 3 2 See Table 4.2 for more details 1 0 1 0 Fuse Bank 3 (FB_3) 4 3 Not used 1 0 C5H Access R C6H Access R Bit Value Note 7 6 Fuse Bank 2 (FB_2) 5 4 3 2 See Table 4.4 for more details Bit Value Note 7 6 5 C7H Access R C8H Access R/W Bit Value Default 7 6 2 DEFAULT_COMMS_POINTER 5 4 3 2 (Beginning of Device Specific Data) 10H 1 0 1 0 [C8H] Default Comms Pointer The value stored in this register will be loaded into the Comms Pointer at the start of a communication window. For example, if the design only requires the Proximity Status information each cycle, then the Default Comms Pointer can be set to ADDRESS ‘31H’. This would mean that at the start of each communication window, the comms pointer would already be set to the Proximity Status register, simply allowing a READ to retrieve the data, without the need of setting up the address. Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 30 of 31 October 2015 IQ Switch® ProxSense® Series Appendix B. Contact Information USA Asia South Africa Physical 6507 Jester Blvd Address Bldg 5, suite 510G Austin TX 78750 USA Rm2125, Glittery City Shennan Rd Futian District Shenzhen, 518033 China 109 Main Street Paarl 7646 South Africa Postal Address 6507 Jester Blvd Bldg 5, suite 510G Austin TX 78750 USA Rm2125, Glittery City Shennan Rd Futian District Shenzhen, 518033 China PO Box 3534 Paarl 7620 South Africa Tel +1 512 538 1995 +86 755 8303 5294 ext 808 +27 21 863 0033 Fax +1 512 672 8442 +27 21 863 1512 Email [email protected] [email protected] [email protected] Please visit www.azoteq.com for a list of distributors and worldwide representation. The following patents relate to the device or usage of the device: US 6,249,089 B1; US 6,621,225 B2; US 6,650,066 B2; US 6,952,084 B2; US 6,984,900 B1; US 7,084,526 B2; US 7,084,531 B2; US 7,265,494 B2; US 7,291,940 B2; US 7,329,970 B2; US 7,336,037 B2; US 7,443,101 B2; US 7,466,040 B2 ; US 7,498,749 B2; US 7,528,508 B2; US 7,755,219 B2; US 7,772,781 B2; US 7,781,980 B2; US 7,915,765 B2; US 7,994,726 B2; US 8,035,623 B2; US RE43,606 E; US 8,288,952 B2; US 8,395,395 B2; US 8,531,120 B2; US 8,659,306 B2; US 8,823,273 B2; EP 1 120 018 B2; EP 1 206 168 B1; EP 1 308 913 B1; EP 1 530 178 A1; EP 2 351 220 B1; EP 2 559 164 B1; CN 1330853; CN 1783573; AUS 761094; HK 104 1401 ® ® IQ Switch , SwipeSwitch™, ProxSense , LightSense™, AirButton TM and the logo are trademarks of Azoteq. The information in this Datasheet is believed to be accurate at the time of publication. Azoteq uses reasonable effort to maintain the information up-to-date and accurate, but does not warrant the accuracy, completeness or reliability of the information contained herein. All content and information are provided on an “as is” basis only, without any representations or warranties, express or implied, of any kind, including representations about the suitability of these products or information for any purpose. Azoteq disclaims all warranties and conditions with regard to these products and information, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property rights. Azoteq assumes no liability for any damages or injury arising from any use of the information or the product or caused by, without limitation, failure of performance, error, omission, interruption, defect, delay in operation or transmission, even if Azoteq has been advised of the possibility of such damages. The applications mentioned herein are used solely for the purpose of illustration and Azoteq makes no warranty or representation that such applications will be suitable withou t further modification, nor recommends the use of its products for application that may present a risk to human life due to malfunction or otherwise. Azoteq products are not authorized for use as critical components in life support devices or systems. No licenses to patents are granted, implicitly, express or implied, by estoppel or otherwise, under any intellectual property rights. In the event that any of the abovementioned limitations or exclusions does not apply, it is agreed that Azoteq’s total liability for all losses, damages and causes of action (in contract, tort (including without limitation, negligence) or otherwise) will not exceed the amount already paid by the customer for the products. Azoteq reserves the right to alter its products, to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and information, its products, programs and services at any time or to move or discontinue any contents, products, programs or services without prior notification. For the most up-to-date information and binding Terms and Conditions please refer to www.azoteq.com. WWW.AZOTEQ.COM [email protected] Copyright © Azoteq (Pty) Ltd 2015 All rights reserved IQS227AS Datasheet Revision 1.05 Page 31 of 31 October 2015