TSM12 12-Channel Self Calibration Capacitive Touch Sensor SPECIFICATION V1.3 November 2006 ADSemiconductor Confidential Revision History Rev. 1.0 1.1 1.2 1.3 Description of change Initial Release Revision Flow chart , Appending 'Wait 100ms' Revision Unused CS pin -> Connect with GND Appending MLF package Appending MLF package Dimension Appending MLF package marking spec Date Originator 06.11.15 09.06.04 10.02.10 BM KIM SB CHEONG KD PARK 10.02.10 KDPARK ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 1 Specification 1.1 General Feature 12-Channel capacitive sensor with auto sensitivity calibration Selectable output operation (single mode / multi-mode) Independently adjustable in 8 step sensitivity Sync function for multi chip application Touch intensity can be detectable within 3 steps (Low, Middle and High) Adjustable internal frequency with external resister Adjustable response time and interrupt level by the control registers I2C serial interface Embedded high frequency noise elimination circuit IDLE mode to save the consumption Embedded power key function on channel 1 for mobile phone application RoHS compliant 32QFN, 32MLF packages 1.2 Application Mobile application (mobile phone / PDA / PMP etc) Membrane switch replacement Sealed control panels, keypads Door key-lock matrix application Touch screen replacement application 1.3 Package (32QFN, 32MLF) TSM12-32QFN TSM12-32MLF Drawings not to scale ADSemiconductor Confidential 1/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 2 Pin Description (32QFN, 32MLF) PIN No. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 Name RBIAS SRBIAS CS5 CS6 CS7 CS8 CS9 N.C. CS10 VDD CS11 CS12 VSS NC IRBIAS RST OUT1 SCL 19 SDA 20 21 22 23 24 25 26 INT I2C_EN ID_SEL P_CDEG0 P_CDEG1 P_CDEG2 VSS 27 28 29 30 31 32 Note 1 : I/O Analog Input Analog Input Analog Input Analog Input Analog Input Analog Input Analog Input Analog Input Digital Input Analog Input Analog Input Ground Analog Input Digital Input Digital Output Digital Input Digital Input/Output Digital Output Digital Input Digital Input Digital Input Digital Input Digital Input Digital Input Description Internal bias adjust input IDLE Mode Internal bias adjust input CH5 capacitive sensor input CH6 capacitive sensor input CH7 capacitive sensor input CH8 capacitive sensor input CH9 capacitive sensor input No Connection CH10 capacitive sensor input CH11 capacitive sensor input CH12 capacitive sensor input Supply ground No Connection Internal I2C clk frequency adjust input System reset (High reset) CH1 output (Open drain) I2C clock input Protection VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND VDD VDD/GND VDD/GND VDD/GND VDD/GND I2C data (Open drain) VDD/GND Interrupt output (Open drain) I2C enable(Low enable) I2C address selection Ch1 sensitivity selection bit0 Ch1 sensitivity selection bit1 Ch1 sensitivity selection bit2 Output mode selection Digital SYNC/OPT (Single Output / Multi Output Note 1) Input/Output Sync pulse input /output VDD Power Power (2.5V~5.0V) CS1 Analog Input CH1 capacitive sensor input CS2 Analog Input CH2 capacitive sensor input CS3 Analog Input CH3 capacitive sensor input CS4 Analog Input CH4 capacitive sensor input Refer to 6.3 SYNC/OPT implementation VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND VDD/GND GND VDD/GND VDD/GND VDD/GND VDD/GND ADSemiconductor Confidential 2/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 3 Absolute Maximum Rating Battery supply voltage 5.0V Maximum voltage on any pin VDD+0.3 Maximum current on any PAD 100mA Power Dissipation 800mW Storage Temperature -50 ~ 150℃ Operating Temperature -20 ~ 75℃ Junction Temperature 150℃ Note Unless any other command is noted, all above are operated in normal temperature. 4 ESD & Latch-up Characteristics 4.1 ESD Characteristics Mode H.B.M M.M Polarity Pos / Neg Pos / Neg Max Reference 2000V VDD 2000V VSS 2000V P to P 200V VDD 200V VSS 200V P to P 500V C.D.M Pos / Neg DIRECT 800V 4.2 Latch-up Characteristics Mode Polarity Max Positive 200mA Negative -200mA Positive 8.0V I Test V supply over 5.0V Test Step 25mA 1.0V ADSemiconductor Confidential 3/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 5 Electrical Characteristics ▪ VDD=3.3V, Rb=510k, Sync Mode (Rsync = 2MΩ) (Unless otherwise noted), TA = 25℃ Characteristics Symbol Test Condition Min Typ Max Units Operating supply voltage VDD 3.3 80 200 7 15 1.5 2.3 - 5.0 130 315 1 V VDD= 3.3V RB=510k VDD= 5.0V RB=510k VDD= 3.3V RB=510k VDD= 5.0V RB=510k VDD= 3.3V RB=510k VDD= 5.0V RB=510k IDD_I2C Disable 2.5 - - 4.0 ㎃ CS - 10 100 ㎊ RS - 200 1000 Ω 0.2 - - ㎊ - 12 - - 30M - - 100 80 - VDD = 3.3V 200 510 820 VDD = 5.0V 330 620 1200 IDD Current consumption Note1 IDD_I2C Output maximum sink current Sense input capacitance range IOUT R_SB=0 R_SB=0 R_SB=3M R_SB=3M RI2C =20k RI2C =30k TA = 25℃ ㎂ mA ㎂ Note2 Sense input resistance range Minimum detective capacitance difference Output impedance (open drain) Self calibration time after system reset Recommended bias resistance range Note3 ΔC Zo TCAL RB Cs = 10pF, CDEG = 200pF (I2C default sensitivity select) ΔC > 0.2pF, Cs = 10pF, (I2C default sensitivity select) ΔC < 0.2pF, Cs = 10pF, (I2C default sensitivity select) VDD = 3.3V RB = 510k VDD = 5.0V RB = 510k Ω ms kΩ Maximum bias CB_MAX 820 1000 pF capacitance Recommended sync RSYNC 1 2 20 MΩ resistance range Note 1 : In case of SCL frequency is 500kHz. Note 2 : The sensitivity can be increased with lower CS value. The recommended value of CS is 10pF when using 3T PC(Poly Carbonate) cover and 10 ㎜ x 7 ㎜ touch pattern. Note 3 : The lower RB is recommended in noisy condition. ADSemiconductor Confidential 4/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 6 Implementation of TSM12 6.1 RBIAS & SRBIAS implementation VDD CB RBIAS << RB SRBIAS << RSB The RBIAS is connecting to the resistor to decide the oscillator and internal bias current. The sensing frequency, internal clock frequency and current consumption are therefore able to be adjusted with RB. A voltage ripple on RBIAS can make critical internal error, so CB is connected to the VDD (not GND) is recommended. (The typical value of CB is 820pF and the maximum Value is 1nF.) The RSB should be connected as above figure when the TSM12 operates in IDLE Mode to save the current consumption. In this case, the consumption depends on the sum of the serial resistors and the response time might be longer. IDD [uA] 450 2.5 V 400 3.3 V 350 5.0 V 300 250 200 150 100 50 0 100 300 500 700 900 1100 RB [kΩ] Normal operation current consumption curve (Pin21 I2C_EN is High) The current consumption curve of TSM12 is represented in accordance with RB value as above. The lower RB requires more current consumption but it is recommended in noisy application. For example, refrigerator, air conditioner and so on. ADSemiconductor Confidential 5/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 6.2 CS implementation CS12 << RS12 Touch PAD12 CS12 RS1 CS1 << Touch PAD1 CS1 The TSM12 has basically eight steps sensitivity, which is available to control with internal register by I2C interface. The parallel capacitor CS1 is added to CS1 and CS12 to CS12 to adjust sensitivity. The sensitivity will be increased when smaller value of CS is used. (Refer to the below Sensitivity Example Figure) It could be useful in case detail sensitivity mediation is required. The internal touch decision process of each channel is separated from each other. The twelve channel touch key board application can therefore be designed by using only one TSM12 without coupling problem. The RS is serial connection resistor to avoid mal-function from external surge and ESD. (It might be optional.) From 200Ω to 1kΩ is recommended for RS. The size and shape of PAD might have influence on the sensitivity. The sensitivity will be optimal when the size of PAD is approximately an half of the first knuckle (it’s about 10 ㎜x 7 ㎜). The connection line of CS1 ~ CS12 to touch PAD is recommended to be routed as short as possible to prevent from abnormal touch detect caused by connection line. The unused CS pin must be connected with the ground to prevent the unpredictable mal-function that occurred in the floating CS pin. ADSemiconductor Confidential 6/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) Sensitivity example figure with default sensitivity selection 6.3 SYNC/OPT implementation 6.3.1 Output Mode Option This pin will be assigned for the output mode option selection. It will decide that TSM12 is working on single or multi touch detection mode. It should be implemented as below for these. VDD SYNC/OPT << (Single Output Mode Implementation) SYNC/OPT << (Multi Output Mode Implementation) ADSemiconductor Confidential 7/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 6.3.2 Multi Chip Application Over two TSM12 can work on the one application at the same time thanks to SYNC function with this pin. The SYNC pulse prevents over two sensing signal from interfering with each other. RSYNC is pull-down resistor of SYNC/OPT pin. Too big value of RSYNC makes the SYNC pulse falling delay, and too small value of RSYNC makes rising delay. Typical value of RSYNC is 2MΩ.The Sync pin should be implemented as below. The TSM12 can also be used with the other TSxx series by employing this SYNC function. The TSM12 could only operate on multi output mode in this configuration. SYNC/OPT << st 1 TSM12 RSYNC SYNC(/OPT)<< nd 2 TSM12 or TS** 6.4 P_CDEG2 , P_CDEG1, P_CDEG0 implementation The P_CDEG0, 1 and 2 are only for the CS1 to control the sensitivity. The sensitivity of channel 1 will be controlled by the register (refer to the “sensitivity control register” chapter) same as the other channel if the P_CDEG(2:0) value is 011. But it should be fixed as following table if the P_CDEG(2:0) value is not 011. The sensitivity table of channel 1 P_CDEG(2:0) Sensitivity of Channel 1 (@Cs = 0pF) 011 Respect the register value (refer to the I2C register description) 000 14~16T 001 12~14T 010 10~12T 100 7~9T 101 6~8T 110 5~7T 111 3~5T Note 1: The unit T represents the thickness (mm) of a panel in case of poly-carbonate. Note 2: The above table data is compatible with a pad size that is approximately an half of the first knuckle. (it’s about 10 ㎜x 7 ㎜) The channel 1 provides the output with two ways whether the I2C or the out1 (pin17) directly. ADSemiconductor Confidential 8/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 6.5 RESET implementation TSM12 has internal data latches, so initial state of these latches must be reset by external reset pulse before normal operation starts. The reset pulse can be controlled by host MCU directly or other reset device. If not, the circuit should be composed as below figure. The reset pulse must have high pulse duration about a few msec to cover power VDD rising time. The recommended value of RRST and CRST are 330KΩ and 100nF. VDD CRST RESET << RRST Recommended reset circuits 1 The better performance is warranted with below reset circuit. The Q1 is turned on and makes reset pulse when power is on and VDD is raised to operating voltage. After a few msec (duration time is determined by R7, R8, C5), Q1 is turned off and TSM12 can be operated with normal sensitivity. VDD R7 200K Q1 2N3906 R8 200K RESET C5 220nF R9 470K Recommended reset circuits 2 ADSemiconductor Confidential 9/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 7 I2C Interface 7.1 IRBIAS Implementation IRBIAS << RIB The RIB is only charged in making the I2C internal clock and should be implemented as above figure. The smaller RIB will increase the I2C internal clock frequency and current consumption. (Refer to the following consumption curve) I2C IDD Measure (RB = 510kΩ) I2C IDD [uA] 3500 VDD = 3.3V VDD = 5.0V 3000 2500 2000 1500 1000 500 0 10 20 30 40 RIB [kΩ] 50 60 70 80 I2C Block operation current consumption curve ADSemiconductor Confidential 10/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) I2C Clk Freq. [MHz] I2C Clk Freq. (RB = 510kΩ) 12.00 VDD = 3.3V 10.00 VDD = 5.0V 8.00 6.00 4.00 2.00 0.00 10 20 30 40 50 60 70 80 RIB [kΩ] I2C clock frequency curve 7.2 Start & Stop Condition Start Condition (S) Stop Condition (P) Repeated Start (Sr) The EN (Pin21) should be low before START condition and be high after STOP condition. EN ADSemiconductor Confidential 11/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 7.3 Data validity The SDA should be stable when the SCL is high and the SDA can be changed when the SCL is low. 7.4 Byte Format The byte structure is composed with 8Bit data and an acknowledge signal. 7.5 Acknowledge It is a check bit whether the receiver gets the data from the transmitter without error or not. The receiver will write ‘0’ when it received the data successfully and ‘1’ if not. ADSemiconductor Confidential 12/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 7.6 First Byte 7.6.1 Slave Address It is the first byte from the start condition. It is used to access the slave device. TSM12 Chip Address : 7bit ID_SEL GND VDD Address 0xD0 0xF0 ─ 7.6.2 R/W The direction of data is decided by the bit and it follows the address data. MSB Address LSB R/W 7 bit 1bit ADSemiconductor Confidential 13/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 7.7 Transferring Data 7.7.1 Write Operation The byte sequence is as follows: ■ the first byte gives the device address plus the direction bit (R/W = 0). ■ the second byte contains the internal address of the first register to be accessed. ■ the next byte is written in the internal register. Following bytes are written in successive internal registers. ■ the transfer lasts until stop conditions are encountered. ■ the TSM12 acknowledges every byte transfer. 7.7.2 Read Operation The address of the first register to read is programmed in a write operation without data, and terminated by the stop condition. Then, another start is followed by the device address and R/W= 1. All following bytes are now data to be read at successive positions starting from the initial address. 7.7.3 Read/Write Operation ADSemiconductor Confidential 14/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 7.8 I2C write and read operations in normal mode 2 The following figure represents the I C normal mode write and read registers. ☞ Write register 0x00 to 0x01 with data AA and BB Start Device Address 0xD0 ACK Register Address 0x00 ACK Data AA ACK Data BB ACK Stop Read register 0x00 and 0x01 Start Device Address 0xD0 ACK Register Address 0x00 ACK Start Device Address 0xD1 ACK Data Read AA ACK From Master to Slave Stop Data Read BB ACK Stop From Slave to Master ADSemiconductor Confidential 15/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 8 TSM12 Register List Note: The unused bits (defined as reserved) in I²C registers must be kept to zero. Note: The bit0 and bit1 of CTRL2 register must be written by 0b11 after power on during an initialize phase. (Refer to the chapter 9. initialize flow) Note: HS (High Sensitivity) / MS (Middle Sensitivity) / LS (Low Sensitivity) Note: Low Output (light touch) / Middle Output (middle touch) / High Output (hard touch) 8.1 I2C Register Map Name Sensitivity1 Sensitivity2 Sensitivity3 Sensitivity4 Sensitivity5 Sensitivity6 CTRL1 CTRL2 Ref_rst1 Ref_rst2 Ch_hold1 Ch_hold2 Cal_hold1 Cal_hold2 Output1 Output2 Output3 Addr. Reset Value (Hex) (Bin) 02h 03h 04h 05h 06h 07h 08h 09h 0Ah 0Bh 0Ch 0Dh 0Eh 0Fh 10h 11h 12h 1011 1011 1011 1011 1011 1011 0010 0000 1111 0000 1111 0000 0000 0000 0000 0000 0000 1011 1011 1011 1011 1011 1011 0010 01XX 1110 1111 1110 1111 0000 0000 0000 0000 0000 Register Function and Description Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Ch2HL Ch2M Ch1HL Ch4HL Ch4M Ch3HL Ch6HL Ch6M Ch5HL Ch8HL Ch8M Ch7HL Ch10HL Ch10M Ch9HL Ch12HL Ch12M Ch11HL MS FTC ILC 0 0 0 0 SRST IDLE Ch8 Ch7 Ch6 Ch5 Ch4 Ch3 0 0 0 0 Ch12 Ch11 Ch8 Ch7 Ch6 Ch5 Ch4 Ch3 0 0 0 0 Ch12 Ch11 Ch8 Ch7 Ch6 Ch5 Ch4 Ch3 0 0 0 0 Ch12 Ch11 OUT4 OUT3 OUT2 OUT8 OUT 7 OUT6 OUT12 OUT11 OUT10 Bit1 Bit0 Ch1M Ch3M Ch5M Ch7M Ch9M Ch11M RTC 1 1 Ch2 Ch1 Ch10 Ch9 Ch2 Ch1 Ch10 Ch9 Ch2 Ch1 Ch10 Ch9 OUT1 OUT5 OUT9 ADSemiconductor Confidential 16/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 8.2 Sensitivity Control Register Sensitivity1 Channel 1 & 2 Sensitivity Control Address (hex): 02h Type: R/W Bit7 Bit6 Ch2HL Bit5 Bit4 Ch2M[2:0] Bit3 Bit2 Ch1HL Bit1 Bit0 Ch1M[2:0] Description The sensitivity of channel 1 and 2 are adjustable by Sensitivity_1 register. ChxM[2:0] allows various middle sensitivity and also the high and low sensitivities are decided with ChxHL. Bit name Reset Function ChxM[2:0] 011 ChxHL 1 Sensitivity2 Channel 3 & 4 Sensitivity Control Address (hex): 03h Type: R/W Bit7 Bit6 Ch4HL Middle sensitivity T (= thickness of PC) @Cs = 0pF 000: 14~16T 100: 7~9T 001: 12~14T 101: 6~8T 010: 10~12T 110: 5~7T 011: 08~10T 111: 3~5T High and Low sensitivity selection for channel x 0: HS = MS - (MS * 0.2) LS = MS + (MS * 0.2) 1: HS = MS - (MS * 0.3) LS = MS + (MS * 0.3) Bit5 Bit4 Ch4M[2:0] Bit3 Ch3HL Bit2 Bit1 Bit0 Ch3M[2:0] Description The sensitivity of channel 3 and 4 are adjustable by Sensitivity_2 register. ChxM[2:0] allows various middle sensitivity and also the high and low sensitivities are decided with ChxHL. Bit name Reset Function ChxM[2:0] 011 ChxHL 1 Middle sensitivity T (= thickness of PC) @Cs = 0pF 000: 14~16T 100: 7~9T 001: 12~14T 101: 6~8T 010: 10~12T 110: 5~7T 011: 08~10T 111: 3~5T High and Low sensitivity selection for channel x 0: HS = MS - (MS * 0.2) LS = MS + (MS * 0.2) 1: HS = MS - (MS * 0.3) LS = MS + (MS * 0.3) ADSemiconductor Confidential 17/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) Sensitivity3 Channel 5 & 6 Sensitivity Control Address (hex): 04h Type: R/W Bit7 Bit6 Ch6HL Bit5 Bit4 Ch6M[2:0] Bit3 Bit2 Ch5HL Bit1 Bit0 Ch5M[2:0] Description The sensitivity of channel 5 and 6 are adjustable by Sensitivity_3 register. ChxM[2:0] allows various middle sensitivity and also the high and low sensitivities are decided with ChxHL. Bit name Reset Function ChxM[2:0] 011 ChxHL 1 Sensitivity4 Channel 7 & 8 Sensitivity Control Address (hex): 05h Type: R/W Bit7 Bit6 Ch8HL Middle sensitivity T (= thickness of PC) @Cs = 0pF 000: 14~16T 100: 7~9T 001: 12~14T 101: 6~8T 010: 10~12T 110: 5~7T 011: 08~10T 111: 3~5T High and Low sensitivity selection for channel x 0: HS = MS - (MS * 0.2) LS = MS + (MS * 0.2) 1: HS = MS - (MS * 0.3) LS = MS + (MS * 0.3) Bit5 Bit4 Ch8M[2:0] Bit3 Ch7HL Bit2 Bit1 Bit0 Ch7M[2:0] Description The sensitivity of channel 7 and 8 are adjustable by Sensitivity_4 register. ChxM[2:0] allows various middle sensitivity and also the high and low sensitivities are decided with ChxHL. Bit name Reset Function ChxM[2:0] 011 ChxHL 1 Middle sensitivity T (= thickness of PC) @Cs = 0pF 000: 14~16T 100: 7~9T 001: 12~14T 101: 6~8T 010: 10~12T 110: 5~7T 011: 08~10T 111: 3~5T High and Low sensitivity selection for channel x 0: HS = MS - (MS * 0.2) LS = MS + (MS * 0.2) 1: HS = MS - (MS * 0.3) LS = MS + (MS * 0.3) ADSemiconductor Confidential 18/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) Sensitivity5 Channel 9 & 10 Sensitivity Control Address (hex): 06h Type: R/W Bit7 Bit6 Ch10HL Bit5 Bit4 Ch10M[2:0] Bit3 Bit2 Ch9HL Bit1 Bit0 Ch9M[2:0] Description The sensitivity of channel 9 and 10 are adjustable by Sensitivity_5 register.ChxM[2:0] allows various middle sensitivity and also the high and low sensitivities are decided with ChxHL. Bit name Reset Function ChxM[2:0] 011 ChxHL 1 Sensitivity6 Channel 11 & 12 Sensitivity Control Address (hex): 07h Type: R/W Bit7 Bit6 Ch12HL Middle sensitivity T (= thickness of PC) @Cs = 0pF 000: 14~16T 100: 7~9T 001: 12~14T 101: 6~8T 010: 10~12T 110: 5~7T 011: 08~10T 111: 3~5T High and Low sensitivity selection for channel x 0: HS = MS - (MS * 0.2) LS = MS + (MS * 0.2) 1: HS = MS - (MS * 0.3) LS = MS + (MS * 0.3) Bit5 Bit4 Ch12M[2:0] Bit3 Bit2 Ch11HL Bit1 Bit0 Ch11M[2:0] Description The sensitivity of channel 11 and 12 are adjustable by Sensitivity_6 register. ChxM[2:0] allows various middle sensitivity and also the high and low sensitivities are decided with ChxHL. Bit name Reset Function ChxM[2:0] 011 ChxHL 1 Middle sensitivity T (= thickness of PC) @Cs = 0pF 000: 14~16T 100: 7~9T 001: 12~14T 101: 6~8T 010: 10~12T 110: 5~7T 011: 08~10T 111: 3~5T High and Low sensitivity selection for channel x 0: HS = MS - (MS * 0.2) LS = MS + (MS * 0.2) 1: HS = MS - (MS * 0.3) LS = MS + (MS * 0.3) ADSemiconductor Confidential 19/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 8.3 General Control Register1 CTRL1 TSM12 General Control Register1 Address (hex): 08h Type: R/W Bit7 Bit6 MS Bit5 FTC[1:0] Bit4 Bit3 ILC[1:0] Bit2 Bit1 Bit0 RTC[2:0] Description The calibration speed just after power on reset is very high during the time which is defined by FTC[1:0] to have a good adoption against unstable external environment. Bit name Reset Function MS 0 FTC[1:0] 01 ILC[1:0] 00 RTC[2:0] 011 Mode Selection 0: auto alternate (fast/slow) mode 1: fast mode First Touch Control Below time stands on VDD = 3V / Rb = 300KΩ 00: 5 sec 01: 10 sec 10: 15 sec 11: 20 sec Interrupt Level Control 00: Interrupt is on middle or high output. 01: Interrupt is on low or middle or high output. 10: Interrupt is on middle or high output. 11: Interrupt is on high output. Response Time Control Response period = RTC[2:0] + 2 ADSemiconductor Confidential 20/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 8.4 General Control Register2 CTRL2 TSM12 General Control Register2 Address (hex): 09h Type: R/W Bit7 Bit6 0 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 0 0 SRST SLEEP 1 1 0 Description All the digital blocks except analog and I2C block are reset when SRST is set. The SLEEP function allows getting very low current consumption when it is set. But the response time will be longer than normal operation. The bit0 and bit1 must be written with 0b’11 by host MCU. Bit name Reset Function SRST 0 SLEEP 1 Bit[1:0] XX Software Reset 0: Disable Software Reset 1: Enable Software Reset Sleep Mode Enable 0: Disable Sleep Mode 1: Enable Sleep Mode These bits must be written by 0b’11 during a system initialize phase. (refer to the chapter 9 “initialize flow example”) ADSemiconductor Confidential 21/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 8.5 Channel Reference Reset Control Register Ref_rst1 Channel1~8 Reference Reset Control Address (hex): 0Ah Type: R/W Bit7 Bit6 Ch8 Ch7 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Ch6 Ch5 Ch4 Ch3 Ch2 Ch1 Description The reference value of each channel will be renewing when Chx is set. Bit name Reset Function Chx 1 Ch1 0 0: 1: 0: 1: Ref_rst2 Channel9~12 Reference Reset Control Address (hex): 0Bh Type: R/W Bit7 Bit6 0 Disable reference reset Enable reference reset Disable reference reset Enable reference reset 0 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 0 0 Ch12 Ch11 Ch10 Ch9 Description The reference value of each channel will be renewing when Chx is set. Bit name Reset Function Chx 1 0: Disable reference reset 1: Enable reference reset ADSemiconductor Confidential 22/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 8.6 Channel 1~8 Sensing Control Register Ch_hold1 Channel 1 ~ 8 Hold Enable Register Address (hex): 0Ch Type: R/W Bit7 Bit6 Ch8 Ch7 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Ch6 Ch5 Ch4 Ch3 Ch2 Ch1 Description The operation of each channel is independently available to control. A channel doesn’t be worked and the calibration is paused when it is set. Bit name Reset Function Chx 1 Ch1 0 0: 1: 0: 1: Enable operation (sensing + calibration) Hold operation (No sensing + Stop calibration) Enable operation (sensing + calibration) Hold operation (No sensing + Stop calibration) 8.7 Channel 9~12 Sensing Control Register Ch_hold2 Channel 9 ~ 12 Hold Enable Register Address (hex): 0Dh Type: R/W Bit7 Bit6 0 0 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 0 0 Ch12 Ch11 Ch10 Ch9 Description The operation of each channel is independently available to control. A channel doesn’t be worked and the calibration is paused when it is set. Bit name Reset Function CEx 1 0: Enable operation (sensing + calibration) 1: Hold operation (No sensing + Stop calibration) ADSemiconductor Confidential 23/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 8.8 Channel 1~8 Calibration Control Register Cal_hold1 Channel 1 ~ 8 Calibration Enable Register Address (hex): 0Eh Type: R/W Bit7 Bit6 Ch8 Ch7 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 Ch6 Ch5 Ch4 Ch3 Ch2 Ch1 Description The calibration of each channel is independently available to control. Each channel is working even if a bit is set. Bit name Reset Function Chx 0: Enable reference calibration (sensing + calibration) 1: Disable reference calibration (sensing + No calibration) 0 8.9 Channel 9~12 Calibration Control Register Cal_hold2 Channel 9 ~ 12 Calibration Enable Register Address (hex): 0Fh Type: R/W Bit7 Bit6 0 0 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 0 0 Ch12 Ch11 Ch10 Ch9 Description The calibration of each channel is independently available to control. Each channel is working even if a bit is set. Bit name Reset Function Chx 0 0: Enable reference calibration (sensing + calibration) 1: Disable reference calibration (sensing + No calibration) ADSemiconductor Confidential 24/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 8.10 Output Register Output1 Channel 1 ~ 4 Output Register Address (hex): 10h Type: R Bit7 Bit6 Bit5 OUT4[1:0] Bit4 Bit3 OUT3[1:0] Bit2 OUT2[1:0] Bit1 Bit0 OUT1[1:0] Description The each channel output of TSM12 is compressed with 2 bits. It has 3 level output information that is low, middle and high. Bit name Reset Function OUT4[1:0] OUT3[1:0] OUT2[1:0] OUT1[1:0] 00 00 00 00 Output of channel 00: No output 01: low output 10: middle output 11: high output Output of channel 00: No output 01: low output 10: middle output 11: high output Output of channel 00: No output 01: low output 10: middle output 11: high output Output of channel 00: No output 01: low output 10: middle output 11: high output 4 3 2 1 ADSemiconductor Confidential 25/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) Output2 Address (hex): 11h Type: R Bit7 Bit6 Channel 5 ~ 8 Output Register Bit5 OUT8[1:0] Bit4 Bit3 OUT7[1:0] Bit2 OUT6[1:0] Bit1 Bit0 OUT5[1:0] Description The each channel output of TSM12 is compressed with 2 bits. It has 3 level output information that is low, middle and high. Bit name Reset Function OUT8[1:0] OUT7[1:0] OUT6[1:0] OUT5[1:0] 00 00 00 00 Output of channel 00: No output 01: low output 10: middle output 11: high output Output of channel 00: No output 01: low output 10: middle output 11: high output Output of channel 00: No output 01: low output 10: middle output 11: high output Output of channel 00: No output 01: low output 10: middle output 11: high output 8 7 6 5 ADSemiconductor Confidential 26/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) Output3 Address (hex): 12h Type: R Bit7 Bit6 Channel 9~ 12 Output Register Bit5 OUT12[1:0] Bit4 Bit3 OUT11[1:0] Bit2 OUT10[1:0] Bit1 Bit0 OUT9[1:0] Description The each channel output of TSM12 is compressed with 2 bits. It has 3 level output information that is low, middle and high. Bit name Reset Function OUT12[1:0] OUT11[1:0] OUT10[1:0] OUT9[1:0] 00 00 00 00 Output of channel 00: No output 01: low output 10: middle output 11: high output Output of channel 00: No output 01: low output 10: middle output 11: high output Output of channel 00: No output 01: low output 10: middle output 11: high output Output of channel 00: No output 01: low output 10: middle output 11: high output 12 11 10 9 ADSemiconductor Confidential 27/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 9 Recommended TSM12 Initialize Flow (Example) START Power ON Wait 100mS H/W Reset Ch1 On Micom On Ctrl2 Setting : 0x0F Ctrl2 Setting : 0x07 Sensitivity Setting? Yes Sensitivity Setting Ch1 ~ CH12 No Ctrl1 Setting ? Yes Ctrl1 Setting No Channel_Hold Off Ch1 ~ CH12 Reset Off CH1 ~ CH12 END ADSemiconductor Confidential 28/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 10 Recommended Circuit Diagram 10.1 Application Example in clean power environment 0 Pad Pad Pad 1 1 1 1 Pad T4 T3 T2 T1 Pad Pad Pad Pad RSY NC 2M VDD 0 VDD 7 8 25 P_CDEG2 27 26 VSS SYNC/OPT 28 VDD 29 CS1 30 CS2 INT CS8 SDA CS9 SCL N.C. OUT1 9 VDD 31 CS7 CS10 N.C. RO5 10K 24 23 22 0 21 EN 20 I2C_EN INT 19 INT SDA 18 SDA SCL VDD 17 RO1 10K OUT1 RST N.C. C_VDD 1u RST R_IB 20k 1 1 1 VDD SCL OUT1 RST 1 RO4 10K 16 6 I2C_EN IRBIAS 1 CS6 N.C. 5 ID_SEL ADS TSM12 15 Pad 1 CS5 14 Pad 4 P_CDEG0 VSS Pad 1 SRBIAS 13 Pad 3 CS12 Pad 1 12 T5 Pad T6 Pad T7 Pad T8 Pad T9 Pad RO3 10K VDD P_CDEG1 CS11 2 0 RO2 10K RBias 11 1 VDD R_SB 2M CS3 C_B 820p 10 R_B 510K CS4 32 VDD T10 Pad Pad Pad Pad 0 T11 T12 Pad Pad 0 0 TSM12 Application Example Circuit (Clean power environment) In PCB layout, R_B should not be placed on touch pattern. If not, C_B has to be connected. The R_B pattern should be routed as short as possible. The CS patterns also should be routed as short as possible and the width of line might be about 0.25mm. The capacitor that is between VDD and GND is an obligation. It should be located as close as possible from TSM12. The CS pattern routing should be formed by bottom metal (opposite metal of touch PAD). The empty space of PCB must be filled with GND pattern to strengthen GND pattern and to prevent external noise from interfere with sensing frequency. The TSM12 is reset if RST Pin is high. (See 6.5 Reset implementation chapter) The TSM12 is working with single output mode if the SYNC/OPT pin is high and it will be in multi output mode when it’s low. The resistor which is connected with GND should be connected with SYNC pin when the application is required over two TSM12 devices (Multi output mode). . ADSemiconductor Confidential 29/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 10.2 Application Example in noisy environment Pad Pad 1 Pad 1 1 1 Pad T4 T3 T2 T1 Pad Pad Pad Pad RS4 RS3 RS2 RS1 200 200 200 200 0 CS1 10p CS2 10p CS3 10p RSY NC 2M 0 CS4 10p VDD VDD 200 6 1 RS9 200 7 CS9 CS8 CS7 CS6 CS5 10p 10p 10p 10p 10p N.C. 8 26 27 25 P_CDEG2 VSS SYNC/OPT 28 VDD 29 CS1 30 CS2 INT CS8 SDA CS9 SCL N.C. OUT1 0 VDD RO5 10K 24 23 22 0 21 EN 20 I2C_EN INT 19 INT SDA 18 SDA SCL VDD 17 SCL OUT1 RO1 10K RST RS8 RO4 10K OUT1 16 1 CS7 IRBIAS 5 N.C. 200 15 RS7 I2C_EN N.C. 14 1 ID_SEL ADS TSM12 CS6 VSS 4 13 200 CS12 RS6 P_CDEG0 CS5 12 1 SRBIAS RST RST R_IB 20k C_VDD 1u VDD 0 0 CS12 10p 0 CS11 10p CS10 10p RS10 200 RS11 200 RS12 200 T10 Pad 1 Pad 1 0 Pad Pad 3 CS10 Pad 200 9 Pad RS5 1 Pad 1 Pad Pad RO3 10K VDD P_CDEG1 CS11 2 0 T5 Pad T6 Pad T7 Pad T8 Pad T9 Pad RO2 10K RBias 11 1 VDD R_SB 2M CS3 C_B 820p 10 R_B 510K CS4 0 31 32 VDD T11 T12 Pad Pad TSM12 Application Example Circuit (Noisy environment) The VDD periodic voltage ripple over 50mV and the ripple frequency is lower than 10 kHz can cause wrong sensitivity calibration. To prevent above problem, power (VDD, GND) line of touch circuit should be separated from other circuit. Especially LED driver power line or digital switching circuit power line certainly should be treated to be separated from touch circuit. The smaller R_B is recommended in noisy environments. ADSemiconductor Confidential 30/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 10.3 Example – Power Line Split Strategy PCB Layout A. Not split power Line (Bad power line design) The noise that is generated by AC load or relay can be loaded at 5V power line. A big inductance might be appeared in case of the connection line between main board and display board is too long, moreover the voltage ripple could be generated by LED (LCD) display driver at VDD (5V). B. Split power Line (One 5V regulator used) – Recommended C. Split power Line (Separated 5V regulator used) – Strongly recommended ADSemiconductor Confidential 31/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 11 MECHANICAL DRAWING 11.1 TSM12 - 32QFN package ADSemiconductor Confidential 32/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) ADSemiconductor Confidential 33/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 11.2 TSM12 - 32MLF package NOTE: Dimensions are in millimeters ADSemiconductor Confidential 34/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) 12 MARKING DESCRIPTION 12.1 TSM12 – 32QFN package Device Code : TS M12 Channel Number Application Touch Switch Group Weekly Code : YY ZZ Manufacturing Year Manufacturing Week 12.2 TSM12 – 32MLF package Device Code : T S M 1 2M Channel Number / MLF PKG Application Touch Switch Group Weekly Code : YY WW Manufacturing Week Manufacturing Year ADSemiconductor Confidential 35/36 ADSemiconductor® TSM12 (12-CH Auto Sensitivity Calibration Capacitive Touch Sensor) NOTES: LIFE SUPPORT POLICY AD SEMICONDUCTOR’S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS WRITTEN APPROVAL OF THE PRESIDENT AND GENERAL COUNSEL OF AD SEMICONDUCTOR CORPORATION The ADS logo is a registered trademark of ADSemiconductor ⓒ 2006 ADSemiconductor – All Rights Reserved www.adsemicon.com www.adsemicon.co.kr ADSemiconductor Confidential 36/36