6457 views|14 replies

71

Posts

0

Resources
The OP

Problems with ST touch library [Copy link]

STM8S103K uses ST touch library. The problem is that when the product load is small, the key works normally. When the load increases, the key sensitivity gradually decreases. Sometimes some keys will be marked as ERROR.

The main reason is that when the load increases, the key sensitivity also "gradually" decreases.

Have you encountered similar problems? How did you solve it?
Thank you!
This post is from stm32/stm8

Latest reply

In addition, since this library will disable interrupts when measuring charge and discharge time, it is not suitable for applications that require high interrupt response, such as simulating SIP interfaces. The RC library will turn off interrupts when measuring charge and discharge time. There is no way to solve this problem. Only by turning off interrupts can the charge and discharge time be accurately measured. To solve this problem, you can consider using the STM8L touch library, which is said to be able to overcome this problem.  Details Published on 2010-4-16 10:04

80

Posts

0

Resources
2
What does "load" mean?

How much does the load increase? Is there a specific value?
This post is from stm32/stm8

68

Posts

0

Resources
3
                                 Will the increased load affect the sensitivity of the buttons? No, the increased load should only increase the current.
This post is from stm32/stm8

86

Posts

0

Resources
4


The product has 2 loads, one is a DC12V/5W light, the other is a DC12V/3W fan
This post is from stm32/stm8

57

Posts

0

Resources
5
                                 I also think that the increase in load should only increase the current
This post is from stm32/stm8

94

Posts

0

Resources
6
                                 Is it introducing interference?
This post is from stm32/stm8

83

Posts

0

Resources
7
                                 The load is not very large
This post is from stm32/stm8

68

Posts

0

Resources
8
2# The perfume city

product has 2 loads, one is a DC12V/5W light, the other is a DC12V/3W fan
Will the increase in load have any impact on the power supply? For example, voltage drop, voltage jitter, or fan rotation causing interference on VDD or VSS? These factors will affect the operation of the touch library.
This post is from stm32/stm8

59

Posts

0

Resources
9
                                 The anti-interference effect of the ST touch library is really not very good. I rewrote it myself and the effect is not bad. I continue to improve it. It is not as widely applicable as the ST touch library, that is, customized
This post is from stm32/stm8

73

Posts

0

Resources
10
There has been some progress on this issue:

1. After the load is turned on, the MCU power supply has a glitch of about 50mv, and the use of variable frequency power supply has a glitch of more than 100mv. Whenever there is a power fluctuation, the touch sensitivity will have problems.

2. We used PB4 as a key pin and PB5 as a shielding pin. These two pins are special and are not suitable for key-related applications.

After using it, the PB4 button is often set to ERROR, and the shielding effect of the PB port is not ideal. Since the key often enters the ERROR state, the initial is re-made. Although it can be used, the effect is not ideal, and it is even worse under power interference.

Now the I/O port has been modified, and it feels much better. I will share with you if there is progress.
This post is from stm32/stm8

66

Posts

0

Resources
11
                                 It is said that ST's RC mode touch library has relatively high power requirements, which is consistent with what LS said.
This post is from stm32/stm8

55

Posts

0

Resources
12
                                 The person above said that the software's anti-interference function is not good enough?
This post is from stm32/stm8

77

Posts

0

Resources
13
                                 No satisfactory answer to close the thread? ...
This post is from stm32/stm8

64

Posts

0

Resources
14
It is said that ST's RC mode touch library has relatively high power requirements, which is consistent with what LS said.
In addition, since this library will disable interrupts when measuring charge and discharge time, it is not suitable for applications that require high interrupt response, such as simulating SIP interfaces.
This post is from stm32/stm8

68

Posts

0

Resources
15
In addition, since this library will disable interrupts when measuring charge and discharge time, it is not suitable for applications that require high interrupt response, such as simulating SIP interfaces.
The RC library will turn off interrupts when measuring charge and discharge time. There is no way to solve this problem. Only by turning off interrupts can the charge and discharge time be accurately measured. To solve this problem, you can consider using the STM8L touch library, which is said to be able to overcome this problem.
This post is from stm32/stm8

Guess Your Favourite
Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list