
Using USB Connectivity to Integrate Touch Screens in Computing Applications
Introduction
The recent launch of Apple’s iPad spawned a new product category: the tablet. Touch screen support has become the default human interface as tablets focus on ease of use and keyboardless design. Meanwhile, Microsoft has added touch screen support at the foundation of its Windows® 7 architecture. Credit Suisse estimates more than 33 million units of large touch screen products will be sold in 2011, mainly due to these two driving forces: the growing popularity of tablets and Windows 7 support for touch screen technology.
Most touch screen systems will connect with the host CPU or application processor through a universal serial bus (USB) interface. However, none of today’s major touch screen controllers support USB natively. As a result, touch screen system integrators must “bridge” a USB microcontroller (MCU) between the host and the touch controller(s). Once an MCU is selected, developers must write the firmware code to establish the communication between the host and the MCU to support the touch screen application. Adopting a USB MCU that includes preprogrammed touch screen support can greatly simplify this firmware development task and shorten time to market.
Fortunately, touch screen system integrators have yet another alternative to developing USB expertise or acquiring third‐party USB software: integrate a ready‐made USB bridge silicon/software solution that requires no USB expertise on the part of the developer.
Human Interface Device (HID) Overview
According to the USB Implementers Forum, the USB communications architecture is designed to enable computing devices such as desktop PCs and laptops to interconnect with many other peripheral devices. A USB uses a two‐wire serial communications link running at one of three different speeds: 1.5 megabits per second (low‐speed), 12 Mbps (full‐speed) and 480 Mbps (high‐speed). USB devices are categorized into various device classes such as display, communication, audio, mass storage and human interface.
The Human Interface Device (HID) Class defines common behaviors and functions for touch screen interfaces. The HID class includes peripherals such as keyboards, mice, trackballs,joysticks, touch pads and touch screens that enable end users to control and interact with the computing system. HID also includes provisions for output directed to the end user.
The control pipe typically handles enumeration and device configuration while the interrupt pipe is used for data transfer. Descriptors define a USB device to the host regarding the type of device, the device manufacturer, USB1.x or 2.0 or 3.0 support, device configuration, endpoints quantities and types, etc.
A HID report is used to transmit HID control data to and from an HID Class device. A report descriptor defines the report format. Input and output reports specify control data and feature reports specifying configuration data. When more than one report of the same type is required for a particular device, each report receives a unique report ID. Input and output reports specify
HID control data. Input controls include data relevant to an application such as the coordinates of a finger. Output controls are a sink for application data such as lighting up a display or activating a touch sensor. A feature report specifies configuration information for a particular device. A user‐mode application can obtain feature information by using this report designation.
The HID enumeration requires the device to send an HID descriptor, which contains information about all of the data and its formats. Report descriptors sent to the host determine the report format. All reports are preceded by a report ID, which describes how the host and the device identify the particular report and how data is parsed between multiple reports. Each bit in the report is specified by report size and report count identifiers. For example, a report size of one and a report count of two identify two bits. This example could be the definition of a set of finger touches. To send a complete byte, the report size would be set to eight bits. Formatting the data into reports helps to organize the data in terms of data widths so that the host and end devices know how to parse the data.
USB Touch Screen Bridge Solution
The CP2501 device is a touch screen USB bridge that can be used to connect the touch screen controller with the host CPU. The CP2501 incorporates a high‐performance MCU with a 48 MIPS 8051‐compatible core, 53 kB of user‐programmable flash memory and 3.5 kB of RAM. Unlike other USB MCU devices in the market, the CP2501 features pre‐programmed USB touch interface firmware, which greatly simplifies USB touch screen product development. The Windows 7 touch interface compliant CP2501 device works seamlessly with the Windows digitizer class driver for touch screens and is supported by Silicon Labs’ GUI‐based configuration wizard. This deployment tool enables developers to easily and quickly connect their touch controller to a USB system without having to develop customized USB firmware, thus reducing time to market as well as the level of expertise required for USB interface development.
The CP2501 device features a USB 2.0‐compliant, full‐speed USB controller with an integrated full‐speed transceiver and on‐chip matching and pull‐up resistors. The integrated USB controller manages all data transfers on the USB bus, as well as command requests generated by the USB host controller. The user firmware uses the interface provided by the system firmware to initialize and communicate using the USB protocol. The CP2501 device also includes a USB bootloader to easily update user firmware. User code is required to enable the interface API to initialize the USB interface and send touch data to the host PC.
The CP2501 device supports three different serial interfaces for communicating with various touch screen controllers.The interface choice can be selected through the CP250x configuration wizard.The CP2501 device’s UART interface consists of the UART_TX (transmit) and UART_RX (receive) data signals and is programmable to support a wide range of data formats and baud rates. The SPI protocol provides access to a flexible, full‐duplex synchronous serial bus. SPI operates as a master device in 4‐wire mode. The optional slave‐select signal can be left floating when connecting to a 3‐wire SPI device. Additional GPIO pins can be used to select multiple slave devices in master mode. The CP2501 device’s SPI interface consists of the SPI_SCLK (clock), SPI_MOSI (master out), SPI_MISO (master in) and SPI_NSS (slave select) signals and is programmable to support a wide range of clock speeds and configurations.
The CP2501 features a two‐wire, bi‐directional serial system management bus (SMBus) that complies with the System Management Bus Specification, version 1.1, and is compatible with the I2C serial bus. Reads and writes to the interface are byte oriented, with the SMBus interface autonomously controlling the serial data transfer. Clock‐low duration can be extended to accommodate devices with different speed capabilities on the same bus. The SMBus interface consists of the SMBus_SCL (serial clock) and SMBus_SDA (serial data out) signals and is programmable to support a wide range of clock speeds.
The configuration wizard output represents a complete project that allows the developer to add the code needed to communicate with the touch screen. All initializations for the chosen serial interface as well as the USB descriptor generation and initialization are complete. The developer simply makes calls to the system firmware API to bridge data. Having all of the low level USB functionality complete and working drastically reduces the time and effort of USB development. Without any additional modifications, the project generated by the configuration wizard will enumerate properly on a Windows machine. The device appears in the device manager as an HID‐device. In Windows Vista and Windows 7, the computer properties will show that a single‐touch or multi‐touch device is connected.
Summary
The CP2501 controller provides touch screen system integrators with a simple and easy‐to‐use USB bridge solution. This highly integrated, HID Class‐compliant solution reduces development time and cost and eases the frustration of implementing a USB interface from scratch. The addition of the developer‐accessible MCU core, on‐chip memory and other resources enables the touch screen developer to offload performance‐enhancing or operating system compliance algorithms from the touch controllers and/or the host system itself. Ultimately, the CP2501 controller helps liberate touch screen system integrators from mundane but necessary communication software development, enabling them to focus their time and resources on what they do best: developing intuitive, user‐friendly touch screen interfaces.
Silicon Labs – Automotive microcontroller and 8051 microcontroller
About the Author
How to Detect Unknown Device in Windows Device Manager by Britec
|
|
Seagate Expansion 500 GB USB 2.0 Portable External Hard Drive ST905004EXA101-RK $73.99 Seagate USB 2.0 External Hard Drive ST905004EXA101R 611… |
|
|
Seagate Expansion 250 GB USB 2.0 Portable External Hard Drive ST902504EXA101-RK $40.00 Seagate USB 2.0 External Hard Drive ST902504EXA101R 611… |
|
|
Logitech G19 Programmable Gaming Keyboard with Color Display $149.97 Logitech G19 Gaming Keyboard 920-000969 Keyboards & Keypads… |
|
|
Acronis Disk Director Suite 10.0 $39.99 Avoid putting off the task of repartitioning your hard disk drive because of the time consuming task of reinstalling operating systems applications and the recovery of data. Now with Disk Director Suite you can easily separate system data from personal documents and increases PC performance and data safety! Easily recover any inadvertently deleted partitions or edit hard disk drives!Format: WIN 98… |
|
|
Transfer Kit for Xbox 360 (Transfer Saves from Memory Unit/Card to PC) $8.00 The Datel Xbox 360 Transfer Kit DUS0150-I Connects the xbox 360 memory unit to any pc. It Allows user to transfer game saves, downloads & user data to pc for extra memory storage… |
|
|
CH Products Flightstick Pro USB 4-Button Joystick 8-Way Hatswitch $67.96 Joystick – Cable – USB – PC, Mac… |
|
|
Essential Microsoft Operations Manager $27.58 Essential Microsoft Operations Manager |
|
|
Envoy Data ENV-USB-LF Universal External PC Card Drive for USB Connection $317.97 Universal External PC Card Drive for USB connection. Supports Linear Flash, SRAM, ATA Flash, ATA Hard Disk, and with adapter CompactFlash, SmartMedia, Multimedia, and SD Cards. Plug and Play compatible under Microsoft Windows 98SE, ME, 2000, XP. PC Card Manager software features byte oriented data access, PC Card information, battery check for SRAM, and HEX editor., medical devices, and portable test and measurement systems. |
|
|
Microsoft USB GMF00005 $24.84 Microsoft USB GMF00005 |
|
|
Microsoft USB GMF00010 $32.29 Microsoft USB GMF00010 |
|
|
Microsoft USB 36D00001 $30.54 Microsoft USB 36D00001 |
|
|
Microsoft Optical – USB B2J00001 $19.3 Microsoft Optical – USB B2J00001 |
|
|
Microsoft USB 7ND00001 $46.07 Microsoft USB 7ND00001 |
|
|
Microsoft JUG00001 Microsoft LifeChat LX3000 USB Headset $43.2 Microsoft LifeChat ZX3000 is a comfortable stereo headset featuring highquality digital sound that cannot be matched by analog. Hold clear private Internet voice calls enjoy music and movies and become fully immersed in your games. Inline volume controls Easily adjust volume to find the perfect sound level. Requirements: Intel Pentium III 700 MHz (Intel Pentium 4 2.4 GHz rec.) Windows XP Professional; Windows XP Home; Windows XP Media Center Edition; Windows XP Tablet PC Edition. 128 MB (256 MB recommended) 200MB free hard drive space 4x CDROM drive or faster USB 1.1 port (USB 2.0 recommended). USB 2.0 required for 1.3 MP video capture resolution; systems without USB 2.0 may achieve 800 600 pixel resolution. Microsoft keyboard and mouse or compatible pointing device. Optimized for Windows Live Messenger Seamlessly integrates with Windows Live Messenger for easy setup and use. Noisecanceling microphone The noisecanceling microphone automatically picks up your voice with remarkable clarity. Leatherette ear pads Listen and play for hours in total comfort. Flexible sixfoot cable The long flexible cable gives you more room to move. |
|
|
MMF Industries Mobile Media Manager USB Drive Organizer, Planner Size, 8.31 x .125 x 4.38 Inches, Black. Sold Individually $72.34 Manufacturer: MMF Industries. Sold Individually. Customers also search for: Discount MMF Industries Mobile Media Manager USB Drive Organizer, Planner Size, 8.31 x .125 x 4.38 Inches, Black, Buy MMF Industries Mobile Media Manager USB Drive Organizer, Plan |
|
|
MMF Industries Mobile Media Manager USB Drive Organizer, Binder Size 10.63 x .125 x 6.75 Inches, Black. Sold Individually $103.07 Manufacturer: MMF Industries. Sold Individually. Customers also search for: Discount MMF Industries Mobile Media Manager USB Drive Organizer, Binder Size 10.63 x .125 x 6.75 Inches, Black, Buy MMF Industries Mobile Media Manager USB Drive Organizer, Binde |
|
|
Microsoft Operations Manager 2005 Unleashed [With CDROM] $55.89 Microsoft Operations Manager 2005 Unleashed [With CDROM] |
|
|
Mastering Microsoft System Center Operations Manager $36.41 Mastering Microsoft System Center Operations Manager |
|
|
WiebeTech USB WriteBlocker USB drive write blocker. Sold Individually $212.88 Manufacturer: CRU. Sold Individually. Product Type: USB drive write blocker Package Content: USB extender (Type A), strap Dimensions (WxDxH): 4.1 in x 1 in x 0.6 in Weight: 16 oz System Requirements: Microsoft Windows 7, Microsoft Windows Vista / XP, App |
|
|
Contort Four-port USB Hub & Cord Manager $31.49 Your USB thumb drive is just one accidental bump away from sending your valuable files into oblivion. Don?t fear; the Quirky Contort is here. Contort is a four-port USB hub and cord manager, with a flexible neck to protect all your USB devices from accidental damage.Features: • Sturdy plastic hub with 4 USB ports • TPE rubber neck with 360-degree mobility • Built-in cord management • Easily transportableSize: 1 3/8″ wide x 5 5/8″ long x 15/16″ tall |
|
|
Microsoft Laser – USB – Blue ZJA00024 $49.31 Microsoft Laser – USB – Blue ZJA00024 |
|
|
Microsoft Laser – USB – Purple ZJA00023 $49.31 Microsoft Laser – USB – Purple ZJA00023 |
|
|
Microsoft USB – Scroll Wheel GMF00030 $32.29 Microsoft USB – Scroll Wheel GMF00030 |
|
|
Microsoft USB – 54 Mbps PHD00010 $82.09 Microsoft USB – 54 Mbps PHD00010 |
|
|
Microsoft USB – Auto Focus T3H00001 $38.44 Microsoft USB – Auto Focus T3H00001 |
|
|
Microsoft Blue – CMOS – USB N3D00001 $156.07 Microsoft Blue – CMOS – USB N3D00001 |
|
|
Imation 2GB USB 2.0 Clip Flash Drive $10.99 1 18405 2 GB 2GB USB 2.0 Clip Flash Drive 5 Year Limited 2GB USB 2.0 Clip Flash Drive Three write-on labels Clip Flash Drive is safely encased in a tough rubberized shell for safe transport. Extremely compact flash drive can be quickly removed from its case to share or transfer files while fitting into the tightest USB slots. Clips securely to your bag, briefcase, backpack or belt loop. Clip Flash Drive features a detachable and water-resistant case. Rubberized exterior protects drive from damage. Includes three write-on labels and Imation Drive Manager password protection software. Compact flash drive fits easily in your USB port. Clip Flash Drive requires no software installation and no additional power supply or cables. Clip Flash Drive Imation Imation Corp USB 2.0 www.imation.com |
|
|
Sony Micro Vault – USB flash drive – 4 GB – Hi-Speed USB N Seires $9.99 Main Specifications Product Description Sony Micro Vault USB flash drive – 4 GB Product Type USB flash drive Storage Capacity 4 GB Interface Type Hi-Speed USB OS Required Microsoft Windows 2000 Professional, Apple MacOS 9.x, Microsoft Windows XP Home Edition, Microsoft Windows XP Professional, Apple MacOS 9.2.x, Apple MacOS 9.1.x, Microsoft Windows 7 Professional, Microsoft Windows 7 Home Premium, Microsoft Windows 7 Ultimate, Microsoft Windows 7 Starter, Microsoft Windows 7 Enterprise… |
|
|
Sony Micro Vault – USB flash drive – 32 GB – Hi-Speed USB N Seires $57 Main Specifications Product Description Sony Micro Vault USB flash drive – 32 GB Product Type USB flash drive Storage Capacity 32 GB Interface Type Hi-Speed USB OS Required Microsoft Windows 2000 Professional, Apple MacOS 9.x, Microsoft Windows XP Home Edition, Microsoft Windows XP Professional, Apple MacOS 9.2.x, Apple MacOS 9.1.x, Microsoft Windows 7 Professional, Microsoft Windows 7 Home Premium, Microsoft Windows 7 Ultimate, Microsoft Windows 7 Starter, Microsoft Windows 7 Enterpri… |
|
|
Sony Micro Vault – USB flash drive – 8 GB – Hi-Speed USB N Seires $19.99 Main Specifications Product Description Sony Micro Vault USB flash drive – 8 GB Product Type USB flash drive Storage Capacity 8 GB Interface Type Hi-Speed USB OS Required Microsoft Windows 2000 Professional, Apple MacOS 9.x, Microsoft Windows XP Home Edition, Microsoft Windows XP Professional, Apple MacOS 9.2.x, Apple MacOS 9.1.x, Microsoft Windows 7 Professional, Microsoft Windows 7 Home Premium, Microsoft Windows 7 Ultimate, Microsoft Windows 7 Starter, Microsoft Windows 7 Enterprise… |
hopfeed_template=”";
hopfeed_align=”LEFT”;
hopfeed_type=”IFRAME”;
hopfeed_affiliate_tid=”";
hopfeed_affiliate=”dmark1153″;
hopfeed_fill_slots=”true”;
hopfeed_height=280;
hopfeed_width=336;
hopfeed_cellpadding=5;
hopfeed_rows=20;
hopfeed_cols=1;
hopfeed_font=”Verdana, Arial, Helvetica, Sans Serif”;
hopfeed_font_size=”9pt”;
hopfeed_font_color=”#000000″;
hopfeed_border_color=”#FFFFFF”;
hopfeed_link_font_color=”#3300FF”;
hopfeed_link_font_hover_color=”#3300FF”;
hopfeed_background_color=”#FFFFFF”;
hopfeed_keywords=”microsoft OR usb OR drive OR manager”;
hopfeed_path=”http://dmark1153.hopfeed.com”;
hopfeed_link_target=”_blank”;