Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller General Description Features (Continued) The AP386X is a low-cost high-resolution single chip solution for APA (All point addressable) capacitive touch screen. It is an 8-bit single cycle 8051 microcontroller with ICP Interface. The chip includes 12-bit successive approximation analog-to-digital converters with an I2C interface and multiplexer-switcher circuits for flexible measurement of analog signal from APA panel. An accurate switched-capacitor integrator is built-in and it can auto calibrate the pixel parameters for a wide range of capacitance on the touch screen (1pF to 32pF). This touch screen controller (TSC) with CMOS integration circuit provides an ideal choice for APA touch panel. The AP386X is specified over the temperature range of -40°C to 85°C. • • • • The AP386X is available in QFN-5×5-40 (for AP3860) and QFN-6×6-48 (for AP3861) packages. • • • • • • • • • Single Cycle 8051 CPU Core, Maximum Operating Clock up to 28MHz from IOSC (Zero Wait State) 4 to 28MHz Internal Oscillator (IOSC) 32k-byte Flash ROM 6k-byte Internal SRAM Two 16-bit Timers T0/T1 Configurable I2C Slave Controller and SPI Slave Controller Shared with the Same Ports With Asynchronous I2C Slave Address Detection Logic Design 4 General Purpose GPIO Pins One External Interrupt Pin ISP/IAP via I²C Port Operation Temperature Range: -40°C to 85°C Package Type Alternatives: QFN-5×5-40 and QFN-6×6-48 RoHS Compliance Operating Mode: Mode Power-down Idle Features Mutual Capacitive Touch Sensing Single Power Supply: 2.8V to 3.6V Operation Voltage; LDO inside to Support 1.6V to 2.0V Operation Voltage Up to 17/23 Drive Lines and 10/12 Sense Lines Charge Pump Support up to 6V, Doubling SNR Internal Two-wire Serial Control Bus I2C Single-end Integrator with Programmable Gain Control Multiplexed Analog Digitization with 12-bit Resolution Scan SAR ADCs and Its Dedicated 2X to 8X Accumulator XSRAM Buffers AP386X Standard Description No scan with power-down mode While only 8051 CPU core is idle, all peripherals remain active Higher scan rate when fingers are on panel, IOSC can up to 4MHz to 28MHz Applications • • • QFN-5×5-40 Mobile Phones Personal Digital Assistants Smart Hand-held or Gaming Devices QFN-6×6-48 Figure 1. Package Types of AP386X Aug. 2013 Rev. 1. 0 BCD Semiconductor Manufacturing Limited 1 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Pin Configuration FN Package (QFN-5×5-40) D16 S9 S8 S7 S6 S5 S4 S3 S2 S1 Pin 1 Mark 40 39 38 37 36 35 34 33 32 31 D15 1 30 VDD3V D14 2 29 S0 D13 3 28 INT/GPIO1 D12 4 27 WAKE/GPIO0 D11 5 26 RSTN D10 6 25 MISO/GPIO2 D9 7 24 MOSI/SDA D8 8 23 SCK/GPIO3 D7 9 22 SS/SCL D6 10 21 TESTEN 16 17 D3 D2 D1 D0 VDDHV 18 19 20 VDD18 15 VSS 14 VDD3V 13 D4 11 12 D5 41 Figure 2. Pin Configuration of AP3860 (Top View) Aug. 2013 Rev. 1. 0 BCD Semiconductor Manufacturing Limited 2 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Pin Configuration (Continued) D8 D7 D6 D5 D4 D3 D2 VDD3V S5 VDDHV S6 D0 S7 D1 S8 S1 S9 S2 S10 S3 S11 S4 D22 D9 FN Package (QFN-6×6-48) Figure 3. Pin Configuration of AP3861 (Top View) Aug. 2013 Rev. 1. 0 BCD Semiconductor Manufacturing Limited 3 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Pin Description Pin Number Pin Name Pin Type 6 to 22 D16 to D0 I/O, A - 48, 1 to 5 D22 to D17 I/O, A 17 23 VDDHV O 18, 30 24, 35 VDD3V P 19 25 VSS P 20 26 VDD18 O 21 27 TESTEN I 22 28 SS/SCL I/O 23 29 SCK/ GPIO3 I/O 24 30 MOSI/ SDA I/O 25 31 MISO/ GPIO2 I/O QFN-5×5-40 AP3860 QFN-6×6-48 AP3861 40, 1 to 16 Aug. 2013 Pin Function Driving Lines 16 to 0 These pins can also be configured as I/O bi-directional ports for test Driving Lines 22 to 17 These pins can also be configured as I/O bi-directional ports for test High Voltage. 6V Charge pump high Voltage. This output pin can be configured as VDD3V or 6V accordingly Supply Voltage. 2.8V to 3.6V A good decoupling capacitor between VDD3V and VSS pins is critical for good performance Ground Voltage. 0V Internal Regulator Output. 1.6V to 2.0V Typical decoupling capacitors of 0.1F and 10F should be connected between VDD18 and VSS Test Mode Enable High Active This pin has an internal weakly pull low resistor connected. If it is connected high, the chip enters into Test Mode condition SS/SCL This pin can be configured as the SCL signal of the I2C master or I2C slave controller. When I2C is enabled, the pin is configured as an open-collector. While in SPI mode, this pin is configured as the slave chip select pin Port 1.3 GPIO 8051 P1.3 GPIO. This pin can also be configured as the serial clock from SPI master while SPI interface is activated SDA This pin can be configured as the SDA signal of the I2C master or I2C slave controller. In this operation mode, this pin should also be configured as open-collector. While SPI interface is selected, the pin serves as the data port from SPI master to SPI slave Port 1.2 GPIO 8051 P1.2 GPIO. This pin can also be configured as the output data pin from slave to master for SPI interface Rev. 1. 0 BCD Semiconductor Manufacturing Limited 4 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Pin Description (Continued) Pin Number QFN-5×5-40 AP3860 QFN-6×6-48 AP3861 Pin Name Pin Type Pin Function Reset Low Active Typically connect a resistor to VDD3V and a capacitor to VSS. Low asserted and threshold at 26 32 RSTN I 0.5*VDD. When forced low, the chip enters into reset condition. This pin should not be connected to any level above VDD Port 1.0 GPIO WAKE/ I/O 27 33 8051 P1.0 GPIO. This pin can also be configured as GPIO0 the wakeup pin from the host Port 1.1 GPIO INT/ 8051 P1.1 GPIO. Open Drain output. This pin can I/O 28 34 GPIO1 also be configured as the interrupt pin to notify the host Sensing Lines 0 to 9 29, 31 to 39 36 to 45 S0 to S9 I/O, A These pins can also be configured as I/O bi-directional ports for test Sensing Lines 10 to 11 46, 47 S10, S11 I/O, A These pins can also be configured as I/O bi-directional ports for test 41 49 EP Exposed Pad “I/O” means input/output; “I” means input; “O” means Output; “P” means power; “A” means analog. SCL and SDA Pin Description Pull-up Enable The pull-up enable for SCL and SDA is activated for AP386X, meaning that AP386X always has pull-up SCL and SDA to VDD3V. During reset, SCL and SDA are as input pin. Moreover, if the pin connecting to the system is floating, the internal pull-up will tie the pin to VDD3V (10k). After AP386X is reset, SCL and SDA are input until its corresponding register is configured. Mode Selection SCL and SDA can be used in I2C and SPI mode. AP386X can enable I2C mode (SCL and SDA configured as open drain pin) by register setting. Wakeup SCL and SDA can be used for wakeup input signals in different mode. While I2C mode is enabled, a START protocol (SDA is low and SCL is high) on SCL and SDA is a wakeup signal to AP386X. While SPI mode is enabled, an active low on the pin of SCL (serving as a slave select in SPI) is a wakeup signal to AP386X. Moreover, a wakeup signal can be asserted by host from GPIO0. INT/GPIO1 GPIO1 can be configured as open-drain or push-pull mode. Furthermore, GPIO1 pin has internal pull-up to VDD3V (60k) or VDD18 (10k) based on different register definition. Aug. 2013 Rev. 1. 0 BCD Semiconductor Manufacturing Limited 5 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Functional Block Diagram SWITCH MATRIX Figure 4. Functional Block Diagram of AP386X Aug. 2013 Rev. 1. 0 BCD Semiconductor Manufacturing Limited 6 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Ordering Information AP386 G1: Green Circuit Type Blank: Tray TR: Tape & Reel 0: AP3860 1: AP3861 Package Temperature Range QFN-5x5-40 QFN-6x6-48 -40 to 85°C Package FN: QFN-5×5-40 /QFN-6×6-48 Part Number Marking ID Packing Type AP3860FNTR-G1 3860FN Tape & Reel AP3861FN-G1 3861FN Tray AP3861FNTR-G1 3861FN Tape & Reel BCD Semiconductor's Pb-free products, as designated with "G1" in the part number, are RoHS compliant and green. AP386X Support 3” to 8” Touch Panel, Listed Below: PN TX/RX Multi-touch Package Panel size AP3860 17/10 10 points 100Hz QFN-5x5-40 3” to 7” AP3861 23/12 10 points 100Hz QFN-6x6-48 4” to 8” Aug. 2013 Rev. 1. 0 BCD Semiconductor Manufacturing Limited 7 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Absolute Maximum Ratings (Note 1) Parameter Symbol Value Unit VDD 0 to 4 V Analog Input Voltage (Other pins) -0.3 to VDD+0.3 V Logic Input Voltage -0.3 to VDD+0.3 V JA TBD °C/W TJ 100 °C Operating Temperature TOP -40 to 85 °C Storage Temperature TSTG -65 to 150 °C ESD HBM 8000 V Supply Voltage (Pin VDD3V) Thermal Resistance Junction to Ambient) (Simulation, Maximum Junction Temperature ESD (Human Body Model) Note 1: Stresses greater than those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated under “Recommended Operating Conditions” is not implied. Exposure to “Absolute Maximum Ratings” for extended periods may affect device reliability. Recommended Operating Conditions Parameter Symbol Min Max Unit Supply Voltage (Pin VDD3V) VDD 2.8 3.6 V Operating Ambient Temperature TA -40 85 ºC Aug. 2013 Rev. 1. 0 BCD Semiconductor Manufacturing Limited 8 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Electrical Characteristics TA=25°C, VDD=2.8V to 3.6V, I2C bus frequency=400kHz, 12-bit mode, unless otherwise noted. Parameter Symbol Quiescent Current VDD18 Output Voltage VDD18 Charge Pump Voltage Internal Operating Frequency VDDHV Conditions Standard mode fOSC=4 to 28MHz Power-down mode Idle mode Min Typ 5 Max Unit mA 1 1.6 1.8 2.0 A A V 5.8 6 6.3 V 28 MHz Max Unit 12 Bits Bits LSB LSB ±6 ±4 LSB LSB VDD V 60 Charge pump enable fOSC 4 DA/AC Characteristics for AFE Parameter Symbol ADC DC Accuracy Resolution No Missing Codes Integral Linearity Error INL Differential Linearity Error DNL Offset Error Gain Error Analog Input Full-scale Input Span ADC Sampling Dynamics Throughput Rate Switched-capacitor Integrator Output Voltage Range Integrator Capacitor CINT Aug. 2013 Conditions Standard modes Standard modes Min 11 Typ 12 ±3 ±1.5 0 500 0.3 VDD-0.3 40 Rev. 1. 0 ksps V pF BCD Semiconductor Manufacturing Limited 9 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Electrical Characteristics (Continued) DA/AC Characteristics for 8051 CPU Core, Digital GPIO Pins, Digital Peripherals Parameter RSTN Input Threshold Voltage Symbol Conditions Min Typ Max VRSTN_H Low to high level 1.56 1.71 VRSTN_L High to low level 1.16 1.30 Unit V Input High Voltage VIH 0.7*VDD VDD V Input Low Voltage VIL -0.3 0.5 V Output High Voltage VOH VDD-0.6 Output Low Voltage VOL High Level Output Current IOH @VOH(Min) 1 mA Low Level Output Current IOL @VOL(Max) 1 mA Internal Pull-up Resistance RPU SCL, SDA, INT 10 Internal Resistance RPD Pull-down Output Rise Time tRISE Output Fall Time tFALL GPIO Output Frequency SCK Frequency Operating SCL Clock Frequency Aug. 2013 V 0.4 Other Pins 34 74 29 86 CLOAD=20pF and 10% to 90% CLOAD=20pF and 10% to 90% CLOAD =20pF 0 fSCK fSCLI2C 0 Rev. 1. 0 V k k 5 ns 5 ns 5 MHz 2 MHz 400 kHz BCD Semiconductor Manufacturing Limited 10 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Typical Application AP3860 Figure 5. Typical Application Schematic of AP3860 (For QFN-5×5-40 Package) AP3861 Figure 6. Typical Application Schematic of AP3861 (For QFN-6×6-48 Package) Aug. 2013 Rev. 1. 0 BCD Semiconductor Manufacturing Limited 11 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Mechanical Dimensions QFN-5×5-40 Aug. 2013 Rev. 1. 0 Unit: mm(inch) BCD Semiconductor Manufacturing Limited 12 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Mechanical Dimensions (Continued) QFN-6×6-48 Unit: mm(inch) 0.300(0. 012) 0.500(0.020) 5.900(0. 232) 6.100(0. 240) J N25 N37 5.900(0.232) 6.100(0.240) K Pin 1 Mark N13 N48 N1 PIN # 1 IDENTIFICATION 0.400(0. 016) BSC See DETAIL A DETAIL A A 0.000(0. 000) 0.050(0. 002) 0.200(0.008) REF 0.150(0. 006) 0.250(0. 010) 3 2 46 46 46 47 47 47 48 48 1 3 2 1 48 3 2 1 Pin 1 Options J=K Symbol A min(mm) max(mm) min(inch) max(inch) min(mm) max(mm) min(inch) max(inch) Option1 Option2 Aug. 2013 4.400 4.150 4.600 4.450 0.173 0.163 0.181 0.175 Rev. 1. 0 0.700 . 0.800 0.800 0.028 0.031 0.900 0.031 0.035 BCD Semiconductor Manufacturing Limited 13 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Mounting Pad Layout QFN-5×5-40 Dimensions Option1 Option2 Option3 Aug. 2013 X=Y (mm)/(inch) 5.400/0.213 5.400/0.213 5.400/0.213 X1=Y2 (mm)/(inch) 0.250/0.010 0.250/0.010 0.250/0.010 Y1=X2 (mm)/(inch) 0.650/0.026 0.650/0.026 0.650/0.026 Rev. 1. 0 X3=Y3 (mm)/(inch) 3.500/0.138 3.600/0.142 3.800/0.150 E (mm)/(inch) 0.400/0.016 0.400/0.016 0.400/0.016 BCD Semiconductor Manufacturing Limited 14 Preliminary Datasheet Superior Multi-touch Capacitive Touch Screen Controller AP386X Mounting Pad Layout (Continued) QFN-6×6-48 Dimensions X=Y (mm)/(inch) X1=Y2 (mm)/(inch) Y1=X2 (mm)/(inch) X3=Y3 (mm)/(inch) E (mm)/(inch) Value 6.300/0.248 0.250/0.010 0.600/0.024 4.600/0.181 0.400/0.016 Aug. 2013 Rev. 1. 0 BCD Semiconductor Manufacturing Limited 15 BCD Semiconductor Manufacturing Limited http://www.bcdsemi.com IMPORTANT NOTICE BCD Semiconductor Manufacturing Limited reserves the right to make changes without further notice to any products or specifications herein. BCD Semiconductor Manufacturing Limited does not assume any responsibility for use of any its products for any IMPORTANT NOTICE IMPORTANT NOTICE particular purpose, nor does BCD Semiconductor Manufacturing Limited assume any liability arising out of the application or use of any its products or circuits. BCD Semiconductor Manufacturing Limited does not convey any license under its patent rights or BCD Semiconductor BCD Semiconductor Manufacturing Manufacturing Limited Limited reserves reserves the the right right to to make make changes changes without without further further notice notice to to any any products products or or specifispecifiother rights nor the rights of others. cations herein. cations herein. BCD BCD Semiconductor Semiconductor Manufacturing Manufacturing Limited Limited does does not not assume assume any any responsibility responsibility for for use use of of any any its its products products for for any any particular particular purpose, purpose, nor nor does does BCD BCD Semiconductor Semiconductor Manufacturing Manufacturing Limited Limited assume assume any any liability liability arising arising out out of of the the application application or or use use MAIN SITE ofHeadquarters any its any its products products or or circuits. circuits. BCD BCD Semiconductor Semiconductor Manufacturing Manufacturing Limited does not does not convey convey any any license license under under its its patent patent rights rights or or -of - Wafer Limited Fab BCD (Shanghai) Shanghai SIM-BCD Semiconductor Manufacturing Co., Ltd. other other rights Micro-electronics rights nor the nor the rights rightsLimited of others. of others. No. 1600, Zi Xing Road, Shanghai ZiZhu Science-based Industrial Park, 200241, P. R.C. Tel: +86-021-2416-2266, Fax: +86-021-2416-2277 MAIN SITE SITE MAIN REGIONAL SALES Manufacturing OFFICE - Headquarters BCD Semiconductor Limited 800 Yishan Road, Shanghai 200233, China Tel: +021-6485-1491, Fax: +86-021-5450-0008 - Wafer FabSemiconductor Manufacturing Limited BCD BCD Semiconductor Manufacturing Limited Shanghai SIM-BCD Semiconductor Manufacturing Co., Ltd. Shenzhen Office Taiwan Office (Taipei) - Wafer Fab - IC Design Group No. 1600, Zi Xing Road, Shanghai ZiZhu Science-basedCo., Industrial Park, 200241, China Yi Shan Road, Shanghai 200233, China Shanghai SIM-BCD Semiconductor Manufacturing Ltd., Shenzhen Office BCD800 Semiconductor (Taiwan) Company Limited Shanghai SIM-BCD Semiconductor Manufacturing Limited Advanced Analog Circuits (Shanghai) Corporation Tel: Fax: +86-21-24162277 Tel: +86-21-6485 1491, 0008Dist., Unit A 1203,Skyworth Bldg., Gaoxin 3F, No.17, Lane 171, Sec. 2, Jiu-Zong Rd.,Shanghai Nei-Hu Taipei(114), Taiwan, R.O.C 800,+86-21-24162266, YiRoom Shan Road, Shanghai 200233, ChinaAve.1.S., Nanshan District 8F, Zone B, 900, YiFax: Shan+86-21-5450 Road, 200233, China Shenzhen 518057,1491, ChinaFax: +86-21-5450 0008 Tel: +886-2-2656 2808 Tel: +86-21-6485 Tel: +86-21-6495 9539, Fax: +86-21-6485 9673 REGIONAL SALES OFFICE Tel: +86-0755-8660-4900, Fax: +86-0755-8660-4958 Fax: +886-2-2656-2806/26562950 Shenzhen OfficeSALES OFFICE Taiwan Office USA Office REGIONAL Shanghai SIM-BCD Semiconductor Manufacturing Co., Ltd., Shenzhen Office Semiconductor BCD Office Semiconductor Corp. Taiwan Office (Hsinchu) USABCD Office Korea Office USA Shenzhen Office Taiwan Office (Taiwan) Company Limited Unit ASemiconductor Room 1203, Skyworth Gaoxin Ave.1.S., Nanshan Shenzhen, 4F,Semiconductor 298-1, Guang Road,(Taiwan) Nei-Hu District, Taipei, 30920Semiconductor Huntwood Ave.Corporation Hayward, BCD (Taiwan)Bldg., Company Limited BCD Corp. BCD Semiconductor Limited Korea office. Shanghai SIM-BCD Semiconductor Manufacturing Co., Ltd.District, Shenzhen Office BCDRui Semiconductor Company Limited BCD China Taiwan CADigital-Empire 94544, USA Ave. 8F, No.176,Analog Sec. 2, Gong-Dao 5th Road, Corporation East District Shenzhen Office 48460 Kato CARoad, 94538, USA District, Room 101-1112, II, 486 Sin-dong, Advanced Circuits (Shanghai) 4F,Road, 298-1,Fremont, Rui Guang Nei-Hu Taipei, 30920 Huntwood Hayward, Tel: +86-755-8826 7951 +886-2-2656 2808 Tel :94544, +1-510-324-2988 HsinChu 300, Taiwan, R.O.C 3rd Fuzhong Road, Futian District, Shenzhen 518026, China Tel:Tel: +1-510-668-1950 Yeongtong-Gu, Suwon-city, Gyeonggi-do, Korea Room E, City 5F, Noble Center, No.1006, Taiwan CA U.S.A Fax: +86-755-8826 7865 Fax: +886-2-2656 2806 Fax: +1-510-324-2788 Tel: +886-3-5160181, Fax: +886-3-5160181 Fax: +1-510-668-1990 Tel: +82-31-695-8430 Tel: +86-755-8826 7951 Tel: +886-2-2656 2808 Tel : +1-510-324-2988 Fax: +86-755-8826 7865 Fax: +886-2-2656 2806 Fax: +1-510-324-2788