Design Automation


Open-source touch sensing library

1 April 2009 Design Automation

To help engineers implement touch-sensitive controls with minimum additional effort, cost and size, STMicroelectronics has made available an open-source capacitive touch sensing software library for its 8-bit STM8 MCU platform.

The software library transforms any 8-bit STM8 MCU into a capacitive touch-key controller. Designers can combine touch sensing functions through multiple configurations, such as touch keys, wheels or sliders, while preserving the traditional STM8 MCU features for the application firmware, including communication, LED control, beeper and LCD control. The software is provided as royalty-free C source code and offers engineers the flexibility to configure, adapt or accommodate the library according to application needs.

Human touch is detected by monitoring the charge and the discharge timing cycle of an RC network formed by a single resistor and the touch electrode capacitance. Depending on which STM8 variant is used, as many as 24 individual touch pads can be supported. The touch sensing library only uses a small amount of the chip’s memory and processing capability, allowing designers to combine other application tasks in a single device. To optimise power consumption, the software also takes advantage of the STM8’s low-power modes.

The touch sensing library embeds advanced tools to help define keys, slider controls or rotary sensors, and to optimise touch sensitivity by adjusting parameters such as the touch detection threshold and the resolution of sliders or rotary controls. There are also innovative programmable features to optimise measurement accuracy and make the final application immune to noise.

An embedded automatic calibration software layer saves final adjustment during manufacturing and enables faster time to market. To maximise long-term reliability the library contains an environmental change system (ECS), which compensates for natural fluctuations in operating voltage and capacitance, as well as environmental effects such as temperature and humidity.

As well as source code for the touch-sensing software library, full supporting documentation includes the API description, a user manual for the software library, application notes and board layout recommendations, as well as code examples.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

Ryzen-based computer on module
Altron Arrow AI & ML
SolidRun announced the launch of its new Ryzen V3000 CX7 Com module, configurable with the eight-core/16-thread Ryzen Embedded V3C48 processor.

Read more...
Robust and customisable SBC
Altron Arrow DSP, Micros & Memory
Pairing the powerful i.MX8M Plus System on Module (SoM) from SolidRun, which features the i.MX 8M Plus SoC from NXP, this high-performance SBC is set to transform industrial environments.

Read more...
New family supports future cryptography
Altron Arrow DSP, Micros & Memory
NXP has introduced its new i.MX 94 family, which contains an i.MX MPU with an integrated time-sensitive networking (TSN) switch, enabling configurable, secure communications with rich protocol support in industrial and automotive environments.

Read more...
NXP’s all-purpose microcontroller series
Altron Arrow DSP, Micros & Memory
NXP has released its MCX A14x and A15x series of all-purpose microcontrollers which are part of the larger MCX portfolio that shares a common Arm Cortex-M33 core platform.

Read more...
Non-terrestrial network module
Altron Arrow Telecoms, Datacoms, Wireless, IoT
Fibocom unveiled its MA510-GL (NTN), a non-terrestrial networks module which is compliant with 3GPP Release 17 standard.

Read more...
Cellular IoT connectivity via satellite
Altron Arrow Telecoms, Datacoms, Wireless, IoT
The Telit Cinterion cellular LPWA module will enable satellite data communication using the NB-IoT protocol, without any special hardware changes required for the integration of the cellular module in the customer application.

Read more...
Low noise 3-axis MEMS accelerometers
Altron Arrow DSP, Micros & Memory
The ADXL357 and ADXL357B from Analog Devices are digital outputs, low noise density, low 0 g offset drift, low power, three-axis accelerometers with selectable measurement ranges.

Read more...
Infineon launches Edge Ai software solution
Altron Arrow Analogue, Mixed Signal, LSI
Infineon has introduced DEEPCRAFT, a new software solution category brand for Edge AI and machine learning, after the company recognised the huge potential of Edge AI for the market.

Read more...
Cree: Illuminating the future of LED technology
Altron Arrow Editor's Choice Opto-Electronics
As a pioneer in this field, Cree LED has been instrumental in shaping the LED landscape, driving innovation and performance in this sector.

Read more...
Ultra-wideband LNA
Altron Arrow Telecoms, Datacoms, Wireless, IoT
The ADL8120 from Analog Devices is an ultra-wideband low-noise amplifier that operates from 30 kHz to 20 GHz, with typical gain and noise figure of 14 dB and 1,9 dB.

Read more...