KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 - HFT012 Table of Contents - 1. General Description ___________________________________________________________________2 2. Features _____________________________________________________________________________2 3. Block Diagram _______________________________________________________________________3 4. Pin Description _______________________________________________________________________3 5. Configuration of ADC _________________________________________________________________4 6. Absolute Maximum Rating ____________________________________________________________10 7. Recommended Operating Conditions____________________________________________________10 8. AC/DC Characteristics________________________________________________________________10 9. Application Circuit ___________________________________________________________________11 10. Updated History ___________________________________________________________________12 June 16, 2003 1 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 HFT012 1. General Description The HFT012 integrates a 12-bit SAR type Analog-to-Digital converter, a synchronous serial interface and low on-resistance switches on a chip. The X/Y driver is automatically configured for X/Y position, X-plate resistance and touch pressure measurements for a 4-wire resistive type touch screen. With the built-in X/Y drivers and the low power design techniques the chip is suitable for battery-operated system and other portable equipment application. The HFT012 features direct battery measurement, temperature measurement and touch-pressure measurement. When not in use, the internal reference can be shut down to conserve power. An external reference can also be applied and can be varied from 1 V to VDD, while the analog input range is from 0 V to VREF. The device includes a shutdown mode that reduces the current consumption to less than 1 µA. 2. Features 9 9 9 9 9 9 9 9 9 9 9 9 Wide Supply Range: 2.7V to 5.5V 4-Wire Touch Screen Interface 125 kSPS Sampling Rate 8/12Bit Resolution Selection Serial Input Control Serial Data Output Single Ended/Differential Reference 1 Auxiliary Input Fully Power Down Control Position Measurement for X/Y X-Plate Sheet Resistance Measurement Touch Pressure Measurement June 16, 2003 2 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. HFT012 KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 3. Block Diagram AU2 PENIRQL VCC X+ Y+ r e x e l p i t l u M XY- 12-Bit SAR ADC Serial Interface and Control DCLK CSL DIN DOUT BUSY Multiplexer X+,X-,Y+,Y- AU1 VREF 4. Pin Description SSOP Package Pin Name X+ Y+ XYAU1 I/O I I I I I AU2 I VREF PENIRQL I I June 16, 2003 VDD 1 16 DCLK X+ 2 15 CSL/RST Y+ 3 14 DIN X- 4 13 BUSY Y- 5 12 DOUT GND 6 11 PENIRQL AU1 7 10 VDD AU2 8 9 VREF Description X Plate Drive 1 Y Plate Drive 1 X Plate Drive 2 Y Plate Drive 2 Auxiliary Input 1 X plate sheet resistance measurement (requires an external 500 ohms pull up resistor) Voltage Reference Input: 1V to VDD Pen Interrupt (requires 10k~100k ohms pull up resistor externally 3 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 Pin Name DOUT BUSY DIN CSL/RST DCLK VDD GND I/O O O I I I P P HFT012 Description Serial Data output. High impedance when CSL is high Busy Output. High impedance when CSL is high. Serial Data Input Chip Select Input (Active Low)/ Reset pin (Active high) Serial Interface Clock Input Power Supply: 2.4V to 5.5V 5. Configuration of ADC Serial Interface The CSL signal initiates the data transfer and conversion process. The falling edge of CSL takes the BUSY output and the serial bus out of three-state. The first eight DCLK cycles are used to write to the Control Register via the DIN pin. The Control Register is updated in stages as each bit is clocked in and once the converter has enough information about the following conversion to set the input multiplexer and switches appropriately, The converter enters the acquisition mode and if required, the internal switches are turned on. During the acquisition mode the reference input data is updated. After the three DCLK cycles of acquisition, the control word is complete (the power management bits are now updated) and the converter enters the conversion mode. At this point the track and hold goes into hold mode and the input signal is sampled and the BUSY output goes high (BUSY will return low on the next falling edge of DCLK). The internal switches may also turn off at this point if in single-ended mode or temperature measurement mode. The next 12 DCLK cycles are used to perform the conversion and to clock out the conversion result. If the conversion is ratiometric (SER/#DFR LOW), the internal switches are on during the conversion. A thirteenth DCLK cycle is needed to allow the DSP/MCU to clock the LSB in. Three more DCLK cycles will clock out the three trailing zeroes and complete the 24 DCLK transfer. The 24 DCLK cycles may be provided from a DSP or via three bursts of eight clock cycles from a microcontroller. Control Byte Description The following diagram shows the typical operation of the HFT012 digital interface. This diagram assumes that the source of the digital signals is a microcontroller or digital signal processor with a basic serial interface. Each communication between the processor and the converter consists of eight clock cycles. One complete conversion can be accomplished with three serial communications, for a total of 24 clock cycles on the DCLK input. The first eight clock cycles are used to provide the control byte via the DIN pin. When the converter has enough information about the following conversion to set the input multiplexer, switches, and reference inputs appropriately, the converter enters the acquisition (sample) mode and, if needed, the internal switches are turned on. After three more clock cycles, the control byte is June 16, 2003 4 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. HFT012 KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 complete and the converter enters the conversion mode. At this point, the input sample-and-hold goes into the hold mode and the internal switches may turn off. The next 12th clock cycles accomplish the actual A/D conversion. If the conversion is ratiometric (SER/#DFR Low), the internal switches are on during the conversion. A 13th clock cycle is needed for the last bit of the conversion result. Three more clock cycles are needed to complete the last byte (DOUT will be LOW). These will be ignored by the converter. /CSL 1 DCLK S DIN 8 A2 A1 A0 8/12 S/D 1 8 1 8 PD1 PD0 START IDLE CONVERSION AQUIRE IDLE (Z) (Z) BUSY (Z) 11 DOUT X/Y Switches (SER/#DEF HIGH) OFF X/Y Switches (SER/#DEF LOW) OFF 10 9 8 ON 7 6 5 4 3 2 1 0 (Z) ZERO FILLED OFF ON OFF Diagram: Conversion Timing, 24 DCLKS per Conversion Cycle, 8-bit Bus Interface. No DCLK delay required with dedicated series port. See the above diagram for the placement and order of the control bits within the control byte. The following table gives detailed information about these bits. The first bit, the ‘S’ bit, must always be “HIGH” and indicates the start of the control byte. The HFT012 will ignore inputs on the DIN pin until the start bit is detected. The next three bits (A2-A0) select the active input channel or channels of the input multiplexer. The MODE bit determines the number of bits for each conversion, either 12 bits (LOW) or 8 bits (HIGH). The SER/#DFR bit controls the reference mode: either single ended (HIGH) or differential (LOW). (The differential mode is also referred to as the ratiometric conversion mode). In single ended mode, the converter’s reference voltage is always the difference between the VREF and GND pins. In differential mode, the reference voltage is the difference between the currently enabled switches. The last two bits (PD1-PD0) select the power-down mode. If both inputs are HIGH, the device is always powered up. If both inputs are LOW, the device enters a power-down mode between conversions. When a new conversion is initiated, the device will resume normal operation instantly—no delay is needed to allow the device to power up and the very first conversion will be valid. There are two power-down modes: one where PENIRQ is disabled and one where it is enabled. Bits Name 7 S June 16, 2003 Description Start Bit Control bit starts with first high bit on DIN. A new control byte can start every 16 cycles for 12-bit conversion mode or 12 cycles for 8-bit conversion mode. 5 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 Bits Name 6:4 A[2:0] 3 8/12 2 S/D 1:0 PD[1:0] HFT012 Description Measurement Mode Selection Bits [111]: Reserved [110]: X Plate Resistance [101]: X Position [100]: Touch Pressure -> Z2 [011]: Touch Pressure -> Z1 [010]: AU1 Input [001]: Y Position [000]: Reserved 8/12 Bits Output Format Selection Bit [1]: Select 8-bit conversion mode [0]: Select 12-bit conversion mode Single/Differential Mode Selection Bit [1]: Select single ended reference [0]: Select differential reference Power Down Control Bits [11]: No power down between conversions [10]: Reserved [01]: Power down between conversions. PENIRQ Disable when power down. [00]: Power down between conversions. PENIRQ enable when power down. 16 Clocks per Cycle The control bits for the next conversion can be overlapped with the current conversion to allow for a conversion every 16 DCLK cycles, as shown in following diagram. This timing diagram also allows for the possibility of communication with other serial peripherals between each byte (eight DCLK) transfer between the processor and the converter. However the conversion must complete within a short enough time frames to avoid capacitive droop effects which may distort the conversion result. It should also be noted that the HFT012 will be fully powered while other serial communications may be taking place between byte transfers. June 16, 2003 6 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. HFT012 KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 Idle CSL Acquire 1'st Conversion 2'nd Conversion Serial Bus Enable DCLK DIN S A2 A1 A0 8/12 S/D PD1 PD0 S A2 A1 A0 8/12 S/D PD1 PD0 4 3 2 1 BUSY Z DOUT Z 11 10 9 8 7 6 5 0 11 S.O.C * Sample In * S2 XY on * Single Ended S2 Differential mode XY on * PD don't care ADC on * *--- Internal Signal 16-Clocks Per Conversion 8-Bit Conversion The HFT012 can be set up to operate in an 8-bit mode rather than 12 bits, by setting the MODE bit in the control register to 1. This mode allows a faster throughput rate to be achieved assuming 8-bit resolution is sufficient. When using the 8-bit mode, a conversion is complete four clock cycles earlier than in the 12-bit mode. This could be used with serial interfaces that provide 12 clock transfers, or two conversions could be completed with three eight-clock transfers. The throughput rate will increase by 25% as a result of the shorter conversion cycle, but the conversion itself can occur at a faster clock rate because the internal settling time of the HFT012 is not as critical, as settling to eight bits is all that is required. The clock rate can be as much as 50% faster. The faster clock rate and fewer clock cycles combine to provide double the conversion rate. Reference Input The voltage difference between Vref+ and Vref - (shown in following) sets the analog input range. The HFT012 will operate with a reference in the range of 1V to +VCC. There are several critical items concerning the reference input and its wide voltage range. As the reference voltage is reduced, the analog voltage weight of each digital output code is also reduced. This is often referred to as the LSB (least significant bit) size and is equal to the reference voltage divided by 4096. Any offset or gain error inherent in the ADC will appear to increase, in terms of LSB size, as the reference voltage is reduced. For example, if the offset of a given converter is 2LSBs with a 2.5V reference, it will typically be 5LSBs with a 1V reference. With a lower reference voltage, more care must be taken to provide a clean layout including adequate bypassing, a clean (low noise, low ripple) power supply, a low noise reference, and a June 16, 2003 7 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 HFT012 low-noise input signal. The voltage into the VREF input is not buffered and directly drives the Capacitor Digital-to-Analog Converter (CDAC) portion of the HFT012. Typically, the input current is ?µA with VREF = 2.7V and fSAMPLE = 125kHz. This value will vary by a few microamps depending on the result of the conversion. The reference current diminishes directly with both conversion rate and reference voltage. As the current from the reference is drawn on each bit decision, clocking the converter more quickly during a given conversion period will not reduce overall current drain from the reference. There is also a critical item regarding the reference when making measurements where the switch drivers are on. This particular application shows the device being used to digitize a resistive touch screen. A measurement of the current Y position of the pointing device is made by connecting the X+ input to the ADC, turning on the Y+ and Y– drivers, and digitizing the voltage on X+. For this measurement, the resistance in the X+ lead does not affect the conversion (it does affect the settling time, but the resistance is usually small enough that this is not a concern). However, since the resistance between Y+ and Y– is fairly low, the on-resistance of the Y drivers does make a small difference. Under the situation outlined so far, it would not be possible to achieve a 0V input or a full-scale input regardless of where the pointing device is on the touch screen because some voltage is lost across the internal switches. In addition, the internal switch resistance is unlikely to track the resistance of the touch screen, providing an additional source of error. By setting the SER/DFR bit LOW, the Vref+ and Vref- inputs are connected directly to Y+ and Y–. This makes the A/D conversion ratiometric (difference mode). The result of the conversion is always a percentage of the external resistance, regardless of how it changes in relation to the on-resistance of the internal switches. As a final note about the differential reference mode, it must be used with +VDD as the source of the Vref+ voltage and cannot be used with VREF. It is possible to use a high precision reference on VREF and single-ended reference mode for measurements which do not need to be ratiometric. Or, in some cases, it could be possible to power the converter directly from a precision reference. Most references can provide enough power for the HFT012, but they might not be able to supply enough current for the external load (such as a resistive touch screen). June 16, 2003 8 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. HFT012 KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 VDD Y+ VDD SW+ SW+ Y+ VREF X+ X+ Vref+ IN+ ADC Core INVref- Y- Vref+ IN+ ADC Core INVref- Y- SW- SWGND GND Single-Ended Reference Mode (SER/#DFR = 1) Differential Reference Mode (SER/#DFR = 0) Measurement Modes The input configurations for X/Y drivers and ADC are listed as follow: A[2:0] NAME ADC input X Driver Y Driver 111 Reserved 110 X Plate Resistance X+ ON OFF 101 Y+ ON OFF 100 Touch Pressure Z2 Y- X- ON Y+ ON 011 Touch Pressure Z1 X+ X- ON Y+ ON X Position 010 AU1 AU1 OFF OFF 001 Y Position X+ OFF ON 000 Reserved Vref+ Vref(Single Ended) (Single Ended) VDD X+ (VREF) Y+ (VREF) Y+ (VREF) VREF Y+ (VREF) GND X(GND) X(GND) X(GND) GND Y(GND) Pen Interrupt The PENIRQL pin is implemented to detect a touch. By connecting a 10k~100k ohms pulled up resistor to VDD. The PENIRQL pin output will remain high normally, if PENIRQL has been enabled; when the touch screen connected to the HFT012 is touched via a pen or finger, the PENIRQL pin output will go low, initiating an interrupt to a microprocessor which may then instruct a control word to be written to the HFT012 to initiate a conversion. This output can also be enabled between conversions during power-down (PD[1:0]=”00”) allowing power-up to be initiated only when the screen is touched. The result of the first touch screen coordinate conversion after power-up will be valid assuming any external reference is settled to the 12- or 8-bit level as required. June 16, 2003 9 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. HFT012 KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 6. Absolute Maximum Rating Item Symbol Rating Condition Supply Voltage VDD -0.5V ~ 6.0V Input Voltage VIN -0.5V ~ VDD+0.5V Output Voltage VO -0.5V ~ VDD+0.5V Operating Temperature TOP 0°C ~ 70°C Storage Temperature TST -50°C ~ 100°C 7. Recommended Operating Conditions Item Supply Voltage Symbol Rating Condition VDD 2.4V ~ 5.5V VIH 0.9 VDD ~ VDD Input Voltage 0.0V ~ 0.1VDD VIL Operating Temperature TOP 0°C ~ 70°C Storage Temperature TST -50°C ~ 100°C 8. AC/DC Characteristics Testing Condition: TEMP=25℃, VDD =3V±10% Parameters Operation Voltage Operation Current Standby current Throughput Rate Input Voltage Ranges Reference Input Range Resolutions No Missing Codes INL DNL Offset Errors Gain Errors X+/Y+ Resistance X-/Y- Resistance Logical High Output Voltage Logical Low Output Voltage PENIRQL Low Output Voltage Operation Temperature June 16, 2003 Symbol Min. VDD IOP ISTB 2.4 Typ. 125 0 1.0 12 TBD TBD TBD TBD TBD TBD TBD TBD TBD TBD 0 10 Unit Condition 5.5 220 VOH VOL VOL Max. V µA 1 µA kSPS VREF V VDD V Bits Bits LSB LSB LSB LSB Ω Ω V V V ℃ 70 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. HFT012 KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 9. Application Circuit + VDD 0.1uF - 10uF U2 1 2 3 4 5 TOUCH SCREEN 6 AU1 7 AU2 8 VDD DCLK X+ CSL Y+ DIN X- BUSY Y- DOUT GND PENIRQL AU1 VDD AU2 VREF 16 DCLK 15 #CS 14 DIN 13 BUSY 12 DOUT 11 10 #PENIRQ VDD 9 R5 10K ~ 100K HFT012 0.1uF June 16, 2003 11 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use. KING BILLION ELECTRONICS CO., LTD 駿 億 電 子 股 份 有 限 公 司 HFT012 10. Updated History Version V0.9 Date 6/16/03 Preliminary version June 16, 2003 Update History 12 V0.9 This specification is subject to change without notice. Please contact sales person for the latest version before use.