Capacitive touch switch uses CPLD Virginia

Capacitive switches are becoming popular

Local Companies

Allied Signal Technical Services Corp
(757) 465-1398
4011 Seaboard Ct
Portsmouth, VA
Metropolitan Technical Services
(703) 968-7855
14240 Sullyfield Cir Ste L
Chantilly, VA
Oxford Airport Technical Services
(703) 412-0110
Arlington, VA
Tad Technical Services-See Adecco-Tad Technical Services
(804) 282-2160
1606 Santa Rosa Rd
Richmond, VA
Cubic Worldwide Technical Services
(703) 640-7070
1999 Hill Ave
Quantico, VA
Pendragon Technical Services
(703) 553-2658
Arlington, VA
Perot Systems
(703) 480-7000
13880 Dulles Corner Ln
Herndon, VA
Technical Services Group
(757) 833-8880
13195 Warwick Blvd
Newport News, VA
T-Systems North America
(757) 258-1941
4551 John Tyler Hwy
Williamsburg, VA
Raytheon Technical Services Company
(703) 562-0369
2000 Duke St
Alexandria, VA

Capacitive touch switch uses CPLD

provided by: EDN

Capacitive touch switches work by measuring the change in capacitance of a PCB (printed-circuit-board) pattern depending on the placement of a user?s finger over a sensing pad. Capacitive switches are becoming popular because they are less expensive than mechanical switches. Using the features of an Altera (www.altera.com) MAX IIZ CPLD (complex-programmable-logic device), you can implement a touch-switch decoder with no external components. The touch sensor employs an 8?mm-diameter sensing pad on the PCB using the solder mask as a dielectric. The circuit decodes a single switch, but you could use the approach for multiple switches, and it has programmable sensing thresholds that allow for different PCB layouts and dielectrics.

Figure 1 shows a simple circuit with no external components other than the capacitive-switch layout on the PCB. A basic touch-switch PCB layout is on the left. It comprises only an 8?mm copper circle surrounded by copper that connects to ground. The dashed line shows that the center sensor connects to the CPLD using a via and a backside copper trace. A solder mask acting as a dielectric covers the center sensor and ground. The PCB touch sensor becomes a variable capacitor, CTOUCH.

The variable capacitor is part of a relaxation oscillator. The CPLD has a built-in weak pullup resistor on each I/O pin. CTOUCH and the weak pullup resistor create an RC circuit. If the PINOSC (pin-oscillator) signal is low, the I/O pin will be low, making the D input to the PINOSC LPM (library-of-parameterized-modules) register low. LPM blocks come from the Quartus II LPM.

The register and other logic in the circuit use a free-running, 4.4?MHz internal oscillator, ALTUFM oscillator, as a clock. On the rising edge of the clock, PINOSC goes low, making the buffer-driving pin go to a high-impedance state. The weak pullup resistor slowly makes the pin voltage rise based on an RC time constant. Not touching the switch causes it to have the lowest capacitance and fastest rise time. Touching the switch causes it to have the highest capacitance and the slowest rise time. The pin-I/O buffer uses the Schmitt-trigger option of the CPLD to reduce the noise sensitivity of the slow-rising pin signal. Once the pin node reaches the high-voltage threshold, the D input of the PINOSC registers a zero. On the next clock edge, the PINOSC signal goes low, driving the pin node low for one full clock cycle. This PINOSC circuit oscillates at two fundamental frequencies, depending on the state of the touch capacitor. Putting the register into the oscillator loop reduces noise and makes the oscillator stable and synchronous with the decoding logic. The PINOSC period is always a multiple of 1/4.4 MHz or the frequency of the internal oscillator.

The switch decoder counts the period of 16 PINOSC cycles and compares it with a known time period. If 16 or more cycles happen in less than the sample period, it means that no one is touching the switch. If fewer than 16 cycles happen in the sample period, it means that someone is touching the switch, and the PINOSC oscillation becomes slower. The lower LPM counter sets the sample period.

For example, the sample signal was active once every 80 clock cycles in a prototype (Figure 2). The upper LPM counter measures the period of 16 PINOSC cycles. After 16 cycles, the fast signal goes high and stays high until the sample signal resets it. The fast signal is a one in the prototype when 16 cycles occur in fewer than 80 cycles, making the fast signal a one when the sample signal is a one. When the sample signal is a one, the fast value clocks into the switch-LPM register. The switch-signal value updates every sample cycle with the current capacitive switch state. When you touch the switch, PINOSC is slow, and the fast signal remains a zero when the sample signal is a one, making the switch output zero. In the prototype design, the PINOSC period was three clock cycles when someone touched it and nine cycles when no one touched it. The switch threshold was five cycles. Therefore, the lower LPM-counter modulus was 5×16=80. You can use any value from four to eight, but four is too sensitive, and eight does not work for small fingers; hence, five is the best value. The upper LPM-counter modulus affects noise sensitivity. The larger the count, the more the circuit averages the period of oscillation. A low modulus makes the circuit more sensitive to random system noise. The five-cycle sensing point also allows margin for the ±25% variation among parts of the internal oscillator frequency.



author: Rafael Camarota, Altera, San Jose, CA

EDN. Copyright © 2008 Reed Business Information, a division of Reed Elsevier Inc. All rights reserved.

Featured National Company

Extreme Audio& Performance

860-533-9000
277.Broad st.
Manchester, CT

Related Articles
- Occupancy Sensors 101 Virginia
The principle of operation and benefits of occupancy sensors are well understood. By turning off the lights when a space is unoccupied, energy savings can result by eliminating waste. Occupancy sensors can also enhance security and reduce light pollution.
- Component Video Switch Virginia
- PhyFlex Cable Networks Virginia
- Foredom's New High-Torque, High-Speed Micromotor Virginia
- Home Lab Study On The DTE/DCE Cable Virginia
- Samsung SCH-i760 Cell Phone Virginia
- Cordless optical computer mouse Virginia
- How to Use the iPhone Virginia
- Radio-Controlled Home Lighting Virginia
- Fiber Optics on a Plane Virginia
Regional Articles
- Capacitive touch switch uses CPLD Alexandria VA
- Capacitive touch switch uses CPLD Annandale VA
- Capacitive touch switch uses CPLD Arlington VA
- Capacitive touch switch uses CPLD Ashburn VA
- Capacitive touch switch uses CPLD Bassett VA
- Capacitive touch switch uses CPLD Blacksburg VA
- Capacitive touch switch uses CPLD Bristol VA
- Capacitive touch switch uses CPLD Burke VA
- Capacitive touch switch uses CPLD Centreville VA
- Capacitive touch switch uses CPLD Chantilly VA
- Capacitive touch switch uses CPLD Charlottesville VA
- Capacitive touch switch uses CPLD Chesapeake VA
- Capacitive touch switch uses CPLD Chester VA
- Capacitive touch switch uses CPLD Chesterfield VA
- Capacitive touch switch uses CPLD Christiansburg VA
- Capacitive touch switch uses CPLD Colonial Heights VA
- Capacitive touch switch uses CPLD Culpeper VA
- Capacitive touch switch uses CPLD Danville VA
- Capacitive touch switch uses CPLD Dumfries VA
- Capacitive touch switch uses CPLD Fairfax Station VA
- Capacitive touch switch uses CPLD Fairfax VA
- Capacitive touch switch uses CPLD Falls Church VA
- Capacitive touch switch uses CPLD Farmville VA
- Capacitive touch switch uses CPLD Fredericksburg VA
- Capacitive touch switch uses CPLD Front Royal VA
- Capacitive touch switch uses CPLD Galax VA
- Capacitive touch switch uses CPLD Glen Allen VA
- Capacitive touch switch uses CPLD Hampton VA
- Capacitive touch switch uses CPLD Harrisonburg VA
- Capacitive touch switch uses CPLD Herndon VA
- Capacitive touch switch uses CPLD Hopewell VA
- Capacitive touch switch uses CPLD King George VA
- Capacitive touch switch uses CPLD Leesburg VA
- Capacitive touch switch uses CPLD Lorton VA
- Capacitive touch switch uses CPLD Lynchburg VA
- Capacitive touch switch uses CPLD Manassas VA
- Capacitive touch switch uses CPLD Martinsville VA
- Capacitive touch switch uses CPLD Mc Lean VA
- Capacitive touch switch uses CPLD Mechanicsville VA
- Capacitive touch switch uses CPLD Midlothian VA
- Capacitive touch switch uses CPLD Newport News VA
- Capacitive touch switch uses CPLD Norfolk VA
- Capacitive touch switch uses CPLD Petersburg VA
- Capacitive touch switch uses CPLD Portsmouth VA
- Capacitive touch switch uses CPLD Powhatan VA
- Capacitive touch switch uses CPLD Radford VA
- Capacitive touch switch uses CPLD Reston VA
- Capacitive touch switch uses CPLD Richmond VA
- Capacitive touch switch uses CPLD Roanoke VA
- Capacitive touch switch uses CPLD Salem VA
- Capacitive touch switch uses CPLD Spotsylvania VA
- Capacitive touch switch uses CPLD Springfield VA
- Capacitive touch switch uses CPLD Stafford VA
- Capacitive touch switch uses CPLD Staunton VA
- Capacitive touch switch uses CPLD Sterling VA
- Capacitive touch switch uses CPLD Suffolk VA
- Capacitive touch switch uses CPLD Vienna VA
- Capacitive touch switch uses CPLD Vinton VA
- Capacitive touch switch uses CPLD Virginia Beach VA
- Capacitive touch switch uses CPLD Warrenton VA
- Capacitive touch switch uses CPLD Waynesboro VA
- Capacitive touch switch uses CPLD Williamsburg VA
- Capacitive touch switch uses CPLD Winchester VA
- Capacitive touch switch uses CPLD Woodbridge VA
- Capacitive touch switch uses CPLD Yorktown VA
Rate Article
     
Articles Insider

Rss   Delicious   Digg   Add To My Yahoo   Add To My Google   Bookmark   Search Plugin

Topics:
Advertising Engineering Home Services Retail & Consumer Services
Business Services Entertainment Industrial Goods & Services Software
Career Family Insurance Technology
Cars Financial Services Internet Telecommunications
Computer Hardware Food & Beverage Legal Transportation & Logistics
Construction Health Pets Travel
Education Home Electronics Real Estate Wedding