打印
[STM8]

ST发布基于STM8的Touch Sensing Library,支持按键、滑轮

[复制链接]
4564|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
grant_jx|  楼主 | 2009-2-20 16:29 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
ST刚刚发布基于STM8系列MCU的电容触摸感应固件库,相信基于STM32的库也很快就会提供。
下载地址:
http://www.st.com/mcu/files/mcu/1234113356.exe


================================================================================
                          STM8 TOUCH SENSING LIBRARY
                                 Release Notes
================================================================================


V1.0.0 / 22-JAN-2009
--------------------

  - First official release.
  - Add clearing of POSCHANGED flag in multichannel.c file.


V0.2.0 / 19-DEC-2008
--------------------

  - Second Beta release.
  - MCKey I/Os can now be individually mapped on any port/pin.
  - Add MCKeys constant tables to support Wheel and Slider with Interleaved or
    Normal electrodes layout.
  - MCKey "direction change" parameters put in the Configuration.h file.
    This feature can now be enabled or disabled.
  - Correct bug with DetectionTimeOut on MCKey.
  - Add check of rejection counter in all SCKey/MCKey treatment routines.
  - Improvement of IO acquisition:
      - add rejection counter in the channel structure
      - change calculation method of measurements min/max limits
      - add driven shield mask
      - set "noise" flag if the number of rejected measures is reached 
  - Improvement of "configuration.h" file:
      - NUMBER_OF_SINGLE_CHANNEL_KEYS and NUMBER_OF_SINGLE_CHANNEL_PORTS are removed.
      - add MCKEYx_LAYOUT_TYPE to distinguish between Interleaved and Normal electrodes layout.
      - add GPIOx_ELECTRODES_MASK (replace SCKEYx_BITS and MCKEYx_BITS definitions).
      - add SCKEY_Px and MCKEYx DRIVEN_SHIELD_MASK
  - Improvement of "checkconfig.h" file:
      - NUMBER_OF_SINGLE_CHANNEL_KEYS and NUMBER_OF_SINGLE_CHANNEL_PORTS are
        automatically calculated.


V0.0.9 / 30-OCT-2008
--------------------

  - Add an adjustment after the Delta value calculation.
  - Add new position offset tables for slider.
  - In the io driver, the interruptions are disabled before changing the I/O configuration.


V0.0.8 / 20-OCT-2008
--------------------

  - Add new parameter in the configuration file to define the MCkey type (wheel or slider).
  - Add a filtering on Delta2 value during MCKey position calculation.
  - Change position calculation on slider.
  - Add 100ms timer flag to be used by the application layer.


V0.0.7 / 09-OCT-2008
--------------------

  - STM8_TSL_RC_CheckConfig.h file added.
  - SINGLE_CHANNEL_GROUP_2_USED and SINGLE_CHANNEL_GROUP_3_USED replaced by
    NUMBER_OF_SINGLE_CHANNEL_PORTS.


V0.0.6 / 08-OCT-2008
--------------------
  
  - Change all naming SCKEYn by SCKEY_Pn (with n = 1 to 3).
  - Add TSLState_T enum typedef.
  - Add pragma section TSL_IO_ALCODE for aligning the 3 io driver functions.
  - Change the STM8L timers (TIM3 -> TIM4 for generic timebase and TIM2 -> TIM3 for vih/vil)
    due to the use of the latest STM8L standard fw library V0.0.2
    --> the timers used on STM8L and STM8S are now the same.
  - Function TSL_Tick_500us changed by TSL_Tick_Base.


V0.0.5 / 01-OCT-2008
--------------------

  - Modifications for MISRA compliancy.


V0.0.4 / 15-SEP-2008
--------------------

  - Doxygen documentation format added.
  - Astyle software run on all files.

  
V0.0.3 / 04-SEP-2008
--------------------

  - Conditional compilation added on pragma sections.
  - type.h and macro.h inclusion removed.
  - GPIO_TypeDef used from standard peripherals Library.

  
V0.0.2 / 23-JUL-2008
--------------------
  
  - Bug correction in timer counter reading.

  
V0.0.1 / 23-JUL-2008
--------------------
  
  - First Alpha release.
  
======================== (c) 2008  STMicroelectronics ==========================



外围硬件电路很简单,如下图,支持按键、滑轮。



我最关心的分辩率看ST的手册是
MCKey resolution and direction change parameters 
MCKEY_RESOLUTION_DEFAULT

Defines the default resolution for Multi-channels keys.

This parameter can take a value between 1 (1-bit resolution) to 8 (8-bit resolution).
A Low value will result in a low resolution and will be less subject to noise. A High value will result in a high resolution and will be more subject to noise.
Typical value: 4



ST还应该提供一个layout的说明。
沙发
avr32| | 2009-2-20 17:03 | 只看该作者

re

新东西看起来不错,关注中.顺便问下灵敏度是怎么调节的?

使用特权

评论回复
板凳
hqgboy| | 2009-2-20 18:05 | 只看该作者

啥时候可以买到开发板和芯片,不知道价格如何,完全可以替代

使用特权

评论回复
地板
simon21ic| | 2009-2-21 13:05 | 只看该作者

灵敏度用在固件中调节

看完了代码,写了一片说明:
http://blog.**/SimonQian/201275/message.aspx

建议测试一下,如果各个按键的电极大小差别很大的话,是否会有问题?

使用特权

评论回复
5
grant_jx|  楼主 | 2009-2-21 15:21 | 只看该作者

用任意的STM8 IO口实现

成本只是软件消耗的MCU资源成本。

使用特权

评论回复
6
yangbo_zd| | 2009-2-23 10:43 | 只看该作者

什么时候STM32能用上啊

强烈期待!

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

535

主题

2115

帖子

44

粉丝