True Multi-Touch Capacitive Touch Panel Controller
True Multi-Touch Capacitive Touch Panel Controller
True Multi-Touch Capacitive Touch Panel Controller
True Multi-Touch
Capacitive Touch Panel Controller
INTRODUCTION
The FT5x06 Series ICs are single-chip capacitive touch panel controller ICs with a built-in 8 bit Micro-controller unit (MCU).They
adopt the mutual capacitance approach, which supports true multi-touch capability. In conjunction with a mutual capacitive touch
panel, the FT5x06 have user-friendly input functions, which can be applied on many portable devices, such as cellular phones, MIDs,
netbook and notebook personal computers.
The FT5x06 series ICs include FT5206/FT5306/FT5406, the difference of their specifications will be listed individually in this
datasheet.
FEATURES
z Capable of Driving Single Channel (transmit/receive) Re-
z Mutual Capacitive Sensing Techniques
sistance: Up to15K Ω
z True Multi-touch with up to 10 Points of Absolution X and
z Capable of Supporting Single Channel (transmit/receive)
Y Coordinates
Capacitance: 60 pF
z Immune to RF Interferences
z Optimal Sensing Mutual Capacitor: 1pF~4pF
z Auto-calibration: Insensitive to Capacitance and Environ-
z 12-Bit ADC Accuracy
mental Variations
z Built-in MCU with 28KB Program Memory, 6KB Data
z Supports up to 28 Transmit Lines and 16 Receive Lines
Memory and 256B Internal Data Space
z Supports up to 8.9” Touch Screen
z 11 Internal Interrupt Sources and 2 External Interrupt
z Full Programmable Scan Sequences with Individual Ad- Sources
justable Receive Lines and Transmit Lines to Support
z 3 Operating Modes
Various Applications
¾ Active
z High Report Rate: More than 100Hz
¾ Monitor
z Touch Resolution of 100 Dots per Inch (dpi) or above -- ¾ Hibernate
depending on the Panel Size z Operating Temperature Range: -40°C to +85°C
z Optional Interfaces :I2C/SPI
z 2.8V to 3.6V Operating Voltage
z Supports 1.8V/AVDD IOVCC
管制文件
2011.03.07
文管中心
\\
TABLE OF CONTENTS
INTRODUCTION..........................................................................................................................................................I
FEATURES ....................................................................................................................................................................I
1 OVERVIEW .............................................................................................................................................................. 1
1.1 TYPICAL APPLICATIONS ....................................................................................................................................... 1
2 FUNCTIONAL DESCRIPTION ................................................................................................................................. 1
2.1 ARCHITECTURAL OVERVIEW................................................................................................................................. 1
2.2 MCU ................................................................................................................................................................ 2
2.3 OPERATION MODES ............................................................................................................................................ 2
2.4 HOST INTERFACE ................................................................................................................................................ 3
2.5 SERIAL INTERFACE ............................................................................................................................................. 3
2.5.1 I2C ........................................................................................................................................................... 3
2.5.2 SPI........................................................................................................................................................... 4
3 ELECTRICAL SPECIFICATIONS .................................................................................................................................... 8
3.1 ABSOLUTE MAXIMUM RATINGS .................................................................................................................................. 8
3.2 DC CHARACTERISTICS ............................................................................................................................................. 9
3.3 AC CHARACTERISTICS ............................................................................................................................................. 9
3.4 I/O PORTS CIRCUITS ............................................................................................................................................ 10
3.5 POWER ON/RESET/WAKE SEQUENCE .................................................................................................................... 11
4 PIN CONFIGURATIONS ............................................................................................................................................. 12
1 OVERVIEW
1.1 Typical Applications
FT5x06 accommodate a wide range of applications with a set of buttons up to a 2D touch sensing device, their typical applications
are listed below.
z Mobile phones, smart phones
z MIDs
z Netbook
z Navigation systems, GPS
z Game consoles
z Car applications
z POS (Point of Sales) devices
z Portable MP3 and MP4 media players
z Digital cameras
FT5x06 Series ICs support 2.8”~8.9” Touch Panel, users may find out their target IC from the specs. listed in the following table,
Panel Package
Model Name Touch Panel Size
TX RX Type Pin Size
FT5206GE1 15 10 QFN5*5 40 0.75-P0.4 2.8"~3.8"
FT5306DE4 20 12 QFN6*6 48 0.75-P0.4 4.3"~7"
FT5406EE8 28 16 QFN8*8 68 0.75-P0.4 7"~8.9"
2 FUNCTIONAL DESCRIPTION
2.1 Architectural Overview
2.2 MCU
This section describes some critical features and operations supported by the 8051 compatible MCU.
Figure 2-2 shows the overall structure of the MCU block. In addition to the 8051 compatible MCU core, we have added the following
circuits,
z MDU: A 16x8 Multiplier and A 32/32 Divider
z Program Memory: 28KB Flash
z Data Memory: 6KB SRAM
z Real Time Clock (RTC): A 32KHz RC Oscillator
z Timer: A number of timers are available to generate different clocks
z Master Clock: 24/ 48MHz from a 48MHz RC Oscillator
z Clock Manager: To control various clocks under different operation conditions of the system
z Monitor Mode
When in this mode, FT5x06 scans the panel at a reduced speed. The default scan rate is 25 frames per second and the host processor
can increase or decrease this rate. When in this mode, most algorithms are stopped. A simpler algorithm is being executed to de-
termine if there is a touch or not. When a touch is detected, FT5x06 shall enter the Active mode immediately to acquire the touch
information quickly. During this mode, the serial port is closed and no data shall be transferred with the host processor.
z Hibernate Mode
In this mode, the chip is set in a power down mode. It shall only respond to the “WAKE” or “RESET” signal from the host processor.
The chip therefore consumes very little current, which help prolong the standby time for the portable devices.
TP Module
Serial
Interface
TX
TP FT5x06 Host
RX
/INT
/WAKE
The serial interfaces of FT5x06 is I2C or SPI. The details of this interface are described in detail in Section 2.5. The interrupt signal
(/INT) is used for FT5x06 to inform the host that data are ready for the host to receive. The /WAKE signal is used for the host to wake
up FT5x06 from the Hibernate mode. After exiting the Hibernate mode, FT5x06 shall enter the Active mode.
2.5.1 I2C
The I2C is always configured in the Slave mode. The data transfer format is shown in Figure 2-4.
Table 2-1 lists the meanings of the mnemonics used in the above figures.
Mnemonics Description
S I2C Start or I2C Restart
Slave address
A[6:0] A[6:4]: 3’b011
A[3:0]: data bits are identical to those of I2CCON[7:4] register.
W 1’b0: Write
R 1’b1: Read
A(N) ACK(NACK)
STOP: the indication of the end of a packet (if this bit is missing, S will indicate the end
P
of the current packet and the beginning of the next packet)
2.5.2 SPI
SPI is a 4 wire serial interface. The following is a list of the 4 wires:
z SCK: serial data clock
z MOSI: data line from master to slave
z MISO: data line from slave to master
z SLVESEL: active low select signal
SPI transfers data at 8bit packets. The phase relationship between the data and the clock can be defined by the two registers: phase
and polck. Some data transfer examples can be found in Figure 2-7 to Figure 2-10.
PHASE=1 POLE=0
SCK
MISO/MOS
bit7 bit6 bit5 bit4 bit3 bit2 bit1 bit0
I
MSB
SLVSEL
Figure 2-9 SPI Data Transfer Format (Phase=1, POLCK=0)
PHASE=0
Tmckh Tmckl
SCK(POLCK=0
)
SCK(POLCK=1
)
Tmh Tmo
MOSI
MISO
Tsd Tmsr
SLVSEL c
Tmsf
c
Figure 2-11 SPI master Timing PHASE =0
PHASE=1
Tmck
Tmckl
h
SCK(POLCK=0
)
SCK(POLCK=1
)
Tmh Tmo
MOSI
MISO
Tmsr
SLVSEL c
Tmsfc
PHASE=1
Tsck
Tsckl
h
SCK(POLCK=0
)
SCK(POLCK=1
) T
Th
s
MOSI
MISO
To
Tsr
SLVSEL c
Tsfc
3 ELECTRICAL SPECIFICATIONS
3.1 Absolute Maximum Ratings
Table 3-1 Absolute Maximum Ratings
3.2 DC Characteristics
VDDA
Power Supply voltage V 2.7 2.8~3.6 3.7
VDD3
3.3 AC Characteristics
Table 3-3 AC Characteristics of Oscillators
3.4 I/OPortsCircuits
Figure 3-1 Digital Input & Output Port Circuits Figure 3-2 Digital In/Out Port Circuit
Figure 3-3 Reset Input Port Circuits Figure 3-4 Wake Input Port Circuits
Figure 3-5 INT output Port Circuits Figure 3-6 SCL/SDA Port Circuits
The GPIO such as Wake, INT and I2C should be pulled down to be low before powering on. The signal of waking up should be set
to be high after powering on. INT signal will be sent to the host after initializing all parameters and then start to report points to the
host.
Tr i s
P o we r
Tpon
Power
Wakeup
I NT
I 2C/ SPI
Tr s i
Tr s t
Power
RESET
I NT
I 2C/ SPI
Twai
Twak
Power
Wa k eup
I NT
I 2C/ SPI
4 PIN CONFIGURATIONS
Pin List of FT5x06
Pin No.
Name Type Description
FT5206GE1 FT5306DE4 FT5406EE8
VSSA 40 1 1 PWR Analog ground
NC 1 2 2 Not connected
NC 48 3 Not connected
TX28 4 O Transmit output pin
TX27 5 O Transmit output pin
TX26 6 O Transmit output pin
TX25 7 O Transmit output pin
TX24 8 O Transmit output pin
TX23 9 O Transmit output pin
TX22 10 O Transmit output pin
TX21 11 O Transmit output pin
TX20 3 12 O Transmit output pin
TX19 4 13 O Transmit output pin
TX18 5 14 O Transmit output pin
TX17 6 15 O Transmit output pin
TX16 7 16 O Transmit output pin
TX15 2 8 17 O Transmit output pin
TX14 3 9 18 O Transmit output pin
RX12
RX11
RX10
RX16
RX13
RX2
RX1
RX9
RX8
RX7
RX6
RX5
RX4
RX3
63
62
61
60
57
56
55
54
68
67
66
65
64
59
58
53
52
VSSA 1 51 NC
NC 2 50 NC
NC 3 49 NC
TX28 4 48 NC
TX27 5 47 INT
TX26 6 46 WAKE
TX25 7 45 /RST
TX24 8 44 MISO
TX23 9 43 MOSI/SDA
TX22 10 42 SCK
TX21 11 41 SSEL/SCL
TX20 12 40 GPIO3
TX19 13 39 GPIO2
TX18 14 38 GPIO1
TX17 15 37 GPIO0
TX16 16 36 TEST_EN
TX15 17 35 VDDD
20
21
22
23
26
27
28
29
33
34
18
19
24
25
30
31
32
TX13
TX14
TX12
TX11
TX10
VDD5
VDD3
TX9
TX8
TX7
TX6
TX5
TX4
TX3
TX2
TX1
VSS
5 PACKAGE INFORMATION
5.1 Package Information of QFN-5x5-40L Package
Millimeter
Item Symbol
Min Typ Max
Total Thickness A 0.7 0.75 0.8
Stand Off A1 0 0.035 0.05
Mold Thickness A2 ---- 0.55 0.57
L/F Thickness A3 0.203 REF
Lead Width b 0.15 0.20 0.25
D 5 BSC
Body Size
E 5 BSC
Lead Pitch e 0.4 BSC
J 3.5 3.6 3.7
EP Size
K 3.5 3.6 3.7
Lead Length L 0.35 0.4 0.45
Package Edge Tolerance aaa 0.1
Mold Flatness bbb 0.1
Co Planarity ccc 0.08
Lead Offset ddd 0.1
Exposed Pad Offset eee 0.1
Millimeter
Item Symbol
Min Typ Max
Total Thickness A 0.7 0.75 0.8
Stand Off A1 0 0.035 0.05
Mold Thickness A2 ---- 0.55 0.57
L/F Thickness A3 0.203 REF
Lead Width b 0.15 0.20 0.25
D 6 BSC
Body Size
E 6 BSC
Lead Pitch e 0.4 BSC
J 4.1 4.2 4.3
EP Size
K 4.1 4.2 4.3
Lead Length L 0.35 0.4 0.45
Package Edge Tolerance aaa 0.1
Mold Flatness bbb 0.1
Co Planarity ccc 0.08
Lead Offset ddd 0.1
Exposed Pad Offset eee 0.1
Millimeter
Item Name Symbol
Min Typ Max
Total Thickness A 0.7 0.75 0.8
Stand Off A1 0 0.035 0.05
Mold Thickness A2 ---- 0.55 0.57
L/F Thickness A3 0.203 REF
Lead Width b 0.15 0.20 0.25
D 8 BSC
Body Size
E 8 BSC
Lead Pitch e 0.4 BSC
J 6.1 6.2 6.3
EP Size
K 6.1 6.2 6.3
Lead Length L 0.35 0.4 0.45
Package Edge Tolerance aaa 0.1
Mold Flatness bbb 0.1
Coplanarity ccc 0.08
Lead Offset ddd 0.1
Exposed Pad Offset eee 0.1
QFN
Package Type 40Pin(5 * 5 )/48Pin( 6 * 6 )/68Pin ( 8 * 8 )
0.75 - P0.4
Product Name FT5206GE1/ FT5306DE4/FT5406EE8
Note:
1). The last two letters in the product name indicate the package type and lead pitch and thickness.
T: Track Code
F: ”F” for Lead Free process. F T 5x06xxx
TFYWWSV
Y: Year Code
WW: Week Code
FT5206GE1 QFN-40L 15 10
FT5306DE4 QFN-48L 20 12
FT5406EE8 QFN-68L 28 16
REVISION HISTORY
DC-1012001 0.3 Modify block figure, timing and I/O figure 2010-12-20
END OF DATASHEET
THIS DOCUMENT CONTAINS INFORMATION PROPRIETARY TO FOCALTECH SYSTEMS CO.,LTD., AND MAY NOT BE
REPRODUCED, DISCLOSED OR USED IN WHOLE OR PART WITHOUT THE EXPRESS WRITTEN PERMISSION OF
FOCALTECH SYSTEMS CO.,LTD.
This document contains information proprietary to FocalTech Systems, Ltd., and may not be reproduced,
disclosed or used in whole or part without the express written permission of FocalTech Systems, Ltd.
www.focaltech-systems.com
Confidential
CTPM Application Note
Revision History
Date Version List of changes Author + Signature
18 Jan, 2010 0.1 Initial draft Xiaoxu Du
17 Mar,2010 0.2 Add raw data protocol Xiaoxu Du
22 Mar,2010 0.3 Add system information protocol Xiaoxu Du
26 Mar,2010 0.4 Add calibration related parameters Xiaoxu Du
08 May,2010 0.5 Add information to operating mode Xinming Wang
07 Jul, 2010 0.6 Change Protocol and add information Yunfeng Yuan
18 Aug, 2010 0.7 Modified to release version Xiaoxu Du
22 Dec, 2010 0.8 Modify explanation for register 0xA4 Xiaoxu Du
ii
FocalTech Systems, Ltd. Confidential
CTPM Application Note
Table of Contents
1 I2C Interface .................................................................................................................................... 2
1.1 CTPM interface to Host .................................................................................................................. 2
1.2 I2C Read/Write Interface description .............................................................................................. 2
1.3 Interrupt signal from CTPM to Host ............................................................................................... 3
1.4 Wakeup signal from Host to CTPM ................................................................................................ 4
2 CTP Register Mapping.................................................................................................................... 4
2.1 Operating Mode .............................................................................................................................. 4
2.1.1 DEVICE_MODE ................................................................................................................... 7
2.1.2 GEST_ID ............................................................................................................................... 7
2.1.3 TD_STATUS .......................................................................................................................... 8
2.1.4 TOUCHn_XH (n:1-5) ............................................................................................................ 8
2.1.5 TOUCHn_XL (n:1-5)............................................................................................................. 8
2.1.6 TOUCHn_YH (n:1-5) ............................................................................................................ 9
2.1.7 TOUCHn_YL (n:1-5) ............................................................................................................. 9
2.1.8 ID_G_THGROUP ................................................................................................................. 9
2.1.9 ID_G_THPEAK ..................................................................................................................... 9
2.1.10 ID_G_ THCAL....................................................................................................................... 9
2.1.11 ID_G_ THWATER ................................................................................................................. 9
2.1.12 ID_G_ THTEMP ................................................................................................................... 9
2.1.13 ID_G_ THDIFF ................................................................................................................... 10
2.1.14 ID_G_ CTRL ....................................................................................................................... 10
2.1.15 ID_G_ TIMEENTERMONITOR .......................................................................................... 10
2.1.16 ID_G_ PERIODACTIVE ..................................................................................................... 10
2.1.17 ID_G_ PERIODMONITOR ................................................................................................. 10
2.1.18 ID_G_ AUTO_CLB_MODE ................................................................................................ 10
2.1.19 ID_G_ LIB_VERSION_H .................................................................................................... 11
2.1.20 ID_G_ LIB_VERSION_L ..................................................................................................... 11
2.1.21 ID_G_ CIPHER ................................................................................................................... 11
2.1.22 ID_G_ MODE ..................................................................................................................... 11
2.1.23 ID_G_ PMODE ................................................................................................................... 11
2.1.24 ID_G_ FIRMWARE_ID ....................................................................................................... 11
2.1.25 ID_G_ STATE...................................................................................................................... 11
2.1.26 ID_G_ FT5201ID ................................................................................................................ 12
2.1.27 ID_G_ ERR.......................................................................................................................... 12
2.1.28 ID_G_ CLB.......................................................................................................................... 12
2.2 Test Mode ..................................................................................................................................... 12
2.2.1 DEVICE_MODE ................................................................................................................. 14
2.2.2 ROW_ADDR ........................................................................................................................ 14
2.2.3 ROWDATAN_H ................................................................................................................... 14
2.2.4 ROWDATAN_L.................................................................................................................... 15
2.3 System information Mode ............................................................................................................. 16
2.3.1 DEVICE_MODE ................................................................................................................. 17
2.3.2 BIST_COMM ....................................................................................................................... 17
iii
FocalTech Systems, Ltd. Confidential
CTPM Application Note
iv
FocalTech Systems, Ltd. Confidential
CTPM Application Note
Terminology
CTP – Capacitive touch panel
CTPM – Capacitive touch panel module
1
FocalTech Systems, Ltd. Confidential
CTPM Application Note
1 I2C Interface
1.1 CTPM interface to Host
Figure 1-1 shows how CTPM communicates with the Host,there are three kind of communication between
CTPM and Host,we will introduce each communication in this section.
Transfer the data via I2C
Send interrupt when there is a valid touch
Host send Wakeup signal to CTPM
Serial
Interface
TX
CTP
CTP MCU Host
Controller /INT
RX
/WAKE
WRITE
STOP
ACK
ACK
ACK
ACK
2
FocalTech Systems, Ltd. Confidential
CTPM Application Note
WRITE
STOP
ACK
ACK
Read X bytes from I2C Slave
Slave Addr Data [N] Data [X+N-1]
A A A A A A A R D D D D D D D D D D D D D D D D
S A A … A P
6 5 4 3 2 1 0 W 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
START
STOP
ACK
ACK
ACK
Read
/INT
Serial
Data
Data Packet Data Packet Data Packet
Blank …… Blank
0 1 N
/INT
Serial
Data
Data Packet Data Packet Data Packet
Blank …… Blank
0 1 N
Host use general I2C protocol to read the touch data or the information from CTPM . CTPM will send host a
interrupt signal when there is a valid touch. Then host can use the serial data interface to get the touch data. If
there is no valid touch detected, the /INT will not be pulled up, the host do not need to read the touch data.
NOTE: “valid touch” may have different definition in various systems. For example, in some systems, the valid
touch is defined as there is one more valid touch point. But in some other systems, the valid touch is defined as
one more valid touch with valid gestures. In usual, /INT will be pulled up when there is a valid touch point, and
to be low when a touch finishes.
As for interrupt trigger mode, /INT signal will be low if there is a touch detected. But for per update of valid
touch data, CTPM will produce a valid pulse for /INT signal, host can read the touch data periodically according
to the frequency of this pulse. In this mode, the pulse frequency is the touch data update frequency.
3
FocalTech Systems, Ltd. Confidential
CTPM Application Note
4
FocalTech Systems, Ltd. Confidential
CTPM Application Note
Flag X Position[11:8]
Op,0Ah TOUCH2_XL 2nd touch X Position[7:0] R
nd nd
Op,0Bh TOUCH2_YH 2 Touch ID[3:0] 2 Touch R
Y Position[11:8]
Op,0Ch TOUCH2_YL 2nd Touch Y Position[7:0] R
Op,0Dh R
Op,0Eh R
Op,0Fh TOUCH3_XH 3rdEvent 3rd Touch R
Flag X Position[11:8]
Op,10h TOUCH3_XL 3rd Touch X Position[7:0] R
Op,11h TOUCH3_YH 3rd Touch ID[3:0] 3rd Touch R
Y Position[11:8]
Op,12h TOUCH3_YL 3rd Touch Y Position[7:0] R
Op,13h R
Op,14h R
th th
Op,15h TOUCH4_XH 4 Event 4 Touch R
Flag X Position[11:8]
Op,16h TOUCH4_XL 4th Touch X Position[7:0] R
Op,17h TOUCH4_YH 4th Touch ID[3:0] 4th Touch R
Y Position[11:8]
Op,18h TOUCH4_YL 4th Touch Y Position[7:0] R
Op,19h R
Op,1Ah R
th th
Op,1Bh TOUCH5_XH 5 Event 5 Touch R
Flag X Position[11:8]
Op,1Ch TOUCH5_XL 5thTouch X Position[7:0] R
th th
Op,1Dh TOUCH5_YH 5 Touch ID[3:0] 5 Touch R
Y Position[11:8]
Op,1Eh TOUCH5_YL 5th Touch Y Position[7:0] R
Op,1Fh R
Op,20h R
Op,21h Reserved
… …
Op,7Fh Reserved
Op,80h ID_G_THGROUP valid touching detect threshold. R/W
Op,81h ID_G_THPEAK valid touching peak detect threshold. R/W
5
FocalTech Systems, Ltd. Confidential
CTPM Application Note
Op,82h ID_G_THCAL the threshold when calculating the focus of touching. R/W
Op,83h ID_G_THWATER the threshold when there is surface water. R/W
Op,84h ID_G_THTEMP the threshold of temperature compensation. R/W
Op,85h R/W
Op,86h ID_G_CTRL Power R/W
control
mode[1:0]
Op,87h ID_G_TIME_ENTER The timer of entering monitor status R/W
_MONITOR
Op,88h ID_G_PERIODACTIVE Period Active[3:0] R/W
Op,89h ID_G_PERIOD The timer of entering idle while in monitor status R/W
MONITOR
Op,8Ah R/W
Op,8Bh R/W
Op,8Ch R/W
Op,8Dh R/W
Op,8Eh R/W
Op,8Fh R/W
Op,90h R/W
Op,91h R/W
Op,92h R/W
Op,93h R/W
Op,94h R/W
Op,95h R/W
Op,96h R/W
Op,97h R/W
Op,98h R/W
Op,99h R/W
Op,9Ah R/W
Op,9Bh R/W
Op,9Ch R/W
Op,9Dh R/W
Op,9Eh R/W
Op,9Fh R/W
Op,A0h ID_G_AUTO_CLB auto calibration mode R/W
_MODE
6
FocalTech Systems, Ltd. Confidential
CTPM Application Note
2.1.1 DEVICE_MODE
This register is the device mode register, configure it to determine the current mode of the chip.
Address Bit Address Register Name Description
Op,00h 6:4 Device Mode 000b Normal operating Mode
[2:0] 001b System Information Mode (Reserved)
100b Test Mode – read raw data (Reserved)
2.1.2 GEST_ID
This register describes the gesture of a valid touch.
Address Bit Address Register Name Description
Op,01h 7:0 Gesture ID Gesture ID
[7:0] 0x10 Move UP
7
FocalTech Systems, Ltd. Confidential
CTPM Application Note
2.1.3 TD_STATUS
This register is the Touch Data status register.
Address Bit Address Register Name Description
Op,02h 3:0 Number of touch How many points detected.
points[3:0] 1-5 is valid.
7:4
8
FocalTech Systems, Ltd. Confidential
CTPM Application Note
2.1.8 ID_G_THGROUP
This register describes valid touching detect threshold.
Address Bit Address Register Name Description
Op,80h 7:0 ID_G_THGROUP The actual value will be 4 times of the register’s
value. Default:280/4
2.1.9 ID_G_THPEAK
This register describes valid touching peak detect threshold.
Address Bit Address Register Name Description
Op,81h 7:0 ID_G_ THPEAK Default:60
10
FocalTech Systems, Ltd. Confidential
CTPM Application Note
11
FocalTech Systems, Ltd. Confidential
CTPM Application Note
12
FocalTech Systems, Ltd. Confidential
CTPM Application Note
13
FocalTech Systems, Ltd. Confidential
CTPM Application Note
2.2.1 DEVICE_MODE
This register is the device mode register, configure it to determine the current mode of the chip.
Address Bit Address Register Name Description
Te,00h 7 Data Read Toggle This bit is toggled by the Host only when a data
transfer between the Host and TrueTouch
device
requires register based handshaking.
6:4 Device Mode[2:0] 000b Normal operating Mode
001b System Information Mode (Reserved)
100b Test Mode – read raw data (Reserved)
2.2.2 ROW_ADDR
This register is the Touch Data status register.
Address Bit Address Register Name Description
Te,01h 7:0 Row address The address of the row to be read
Please delay for more than 100us, then read the
raw data
2.2.3 ROWDATAN_H
This register is the Touch Data status register.
Address Bit Address Register Name Description
Te,(10+2n)h 7:0 High byte of raw data N High byte of raw data N
14
FocalTech Systems, Ltd. Confidential
CTPM Application Note
2.2.4 ROWDATAN_L
This register is the Touch Data status register.
Address Bit Address Register Name Description
Te,(10+2n+1)h 7:0 Low byte of raw data N Low byte of raw data N
If N exceeds the column number will return
0xff
15
FocalTech Systems, Ltd. Confidential
CTPM Application Note
16
FocalTech Systems, Ltd. Confidential
CTPM Application Note
Sy,19h Unused
Sy,1Ah Unused
Sy,1Bh CID_0 Custom ID #0[0:7] R
Sy,1Ch CID_1 Custom ID #1[0:7] R
Sy,1Dh CID_2 Custom ID #2[0:7] R
Sy,1Eh CID_3 Custom ID #3[0:7] R
Sy,1Fh CID_4 Custom ID #4[0:7] R
… …
Sy,FEh LOG_MSG_CNT The log MSG count R
Sy,FFh LOG_CUR_CHA Current character of log message, will point to the next character when R
one character is read.
2.3.1 DEVICE_MODE
This register is the device mode register, configure it to determine the current mode of the chip.
Address Bit Address Register Name Description
Sy,00h 6:4 Device Mode[2:0] 000b Normal operating Mode
001b System Information Mode (Reserved)
100b Test Mode – read raw data (Reserved)
2.3.2 BIST_COMM
This register is the BIST command register. The BIST (built in self test) function to perform is set here.
Address Bit Address Register Name Description
Sy,01h 7:0 BIST Command[7:0] BIST command to perform.
2.3.3 BIST_STAT
This register reports the status of BIST (built in self test) functions either in progress or the last function
completed.
Address Bit Address Register Name Description
Sy,02h 7:0 BIST Command[7:0] Status of the last BIST function started.
2.3.4 BL_VERH
This register contains the MSB of the bootloader version specified by the application.
Address Bit Address Register Name Description
Sy,0Fh 7:0 Bootloader version[15:8] R:xx
17
FocalTech Systems, Ltd. Confidential
CTPM Application Note
2.3.5 BL_VERL
This register contains the LSB of the bootloader version specified by the application.
Address Bit Address Register Name Description
Sy,10h 7:0 Bootloader version[7:0] R:xx.
2.3.6 FTS_IC_VERH
This is the FTS IC version register. This register contains the MSB of the FTS IC version. The value is BCD
value, for example
FT5201 – FTS_IC_VERH(0x52), FTS_IC_VERL(0x01)
FT5202 – FTS_IC_VERH(0x52), FTS_IC_VERL(0x02)
FT5206 – FTS_IC_VERH(0x52), FTS_IC_VERL(0x06)
FT5306 – FTS_IC_VERH(0x53), FTS_IC_VERL(0x06)
FT5406 – FTS_IC_VERH(0x54), FTS_IC_VERL(0x06)
Address Bit Address Register Name Description
Sy,11h 7:0 Focal Tech IC version Focal Tech IC Version MSB
[15:8]
2.3.7 FTS_IC_VERL
This is the FTS IC version register. This register contains the MSB of the FTS IC version. The value is BCD
value, for example
FT5201 – FTS_IC_VERH(0x52), FTS_IC_VERL(0x01)
FT5202 – FTS_IC_VERH(0x52), FTS_IC_VERL(0x02)
FT5206 – FTS_IC_VERH(0x52), FTS_IC_VERL(0x06)
FT5306 – FTS_IC_VERH(0x53), FTS_IC_VERL(0x06)
FT5406 – FTS_IC_VERH(0x54), FTS_IC_VERL(0x06)
Address Bit Address Register Name Description
Sy,12h 7:0 Focal Tech IC version [7:0] Focal Tech IC Version LSB
2.3.8 APP_IDH
This is the application ID register. This register contains the MSB of the application ID. This value is set to
designate the individual project.
2.3.9 APP_IDL
This is the application ID register. This register contains the MSB of the application ID. This value is set to
designate the individual project.
18
FocalTech Systems, Ltd. Confidential
CTPM Application Note
2.3.10 APP_VERH
This is the application version register. This register contains the MSB of the application version. This value
should be incremented on each internal or external release of the project.
2.3.11 APP_VERL
This is the application version register. This register contains the LSB of the application version. This value
should be incremented on each internal or external release of the project.
2.3.12 CID_n(n:0-4)
These are Custom ID registers. These regitsters contain user defined Custom ID identifiers for the FT TPM.
19
FocalTech Systems, Ltd. Confidential
CTPM Application Note
20
FocalTech Systems, Ltd. Confidential
CTPM Application Note
21
FocalTech Systems, Ltd. Confidential
CTPM Application Note
22
FocalTech Systems, Ltd. Confidential
CTPM Application Note
/////////////////////////////////////////////////////////////////
// I2C read bytes from device.
//
// Arguments: ucSlaveAdr - slave address
// ucSubAdr - sub address
// pBuf - pointer of buffer
// ucBufLen - length of buffer
/////////////////////////////////////////////////////////////////
void i2cBurstReadBytes(BYTE ucSlaveAdr, BYTE ucSubAdr, BYTE *pBuf, BYTE ucBufLen)
{
BYTE ucDummy; // loop dummy
ucDummy = I2C_ACCESS_DUMMY_TIME;
while(ucDummy--)
23
FocalTech Systems, Ltd. Confidential
CTPM Application Note
{
if (i2c_AccessStart(ucSlaveAdr, I2C_WRITE) == FALSE)
continue;
if (i2c_SendByte(ucSubAdr) == I2C_NON_ACKNOWLEDGE) // check non-acknowledge
continue;
if (i2c_AccessStart(ucSlaveAdr, I2C_READ) == FALSE)
continue;
while(ucBufLen--) // loop to burst read
{
*pBuf = i2c_ReceiveByte(ucBufLen); // receive byte
pBuf++; // next byte pointer
} // while
break;
} // while
i2c_Stop();
}
/////////////////////////////////////////////////////////////////
// I2C read current bytes from device.
//
// Arguments: ucSlaveAdr - slave address
// pBuf - pointer of buffer
// ucBufLen - length of buffer
/////////////////////////////////////////////////////////////////
void i2cBurstCurrentBytes(BYTE ucSlaveAdr, BYTE *pBuf, BYTE ucBufLen)
{
BYTE ucDummy; // loop dummy
ucDummy = I2C_ACCESS_DUMMY_TIME;
while(ucDummy--)
{
if (i2c_AccessStart(ucSlaveAdr, I2C_READ) == FALSE)
continue;
while(ucBufLen--) // loop to burst read
{
*pBuf = i2c_ReceiveByte(ucBufLen); // receive byte
pBuf++; // next byte pointer
} // while
break;
} // while
i2c_Stop();
}
24
FocalTech Systems, Ltd. Confidential