Skip to main content
Visitor II
August 22, 2017
Question

STM8L151K4 Touch Sensing Problem

  • August 22, 2017
  • 1 reply
  • 919 views
Posted on August 22, 2017 at 05:28

I have a problem with touch sensing on STM8L151K4, It is impossibe to increase number of touch key to 12.

I use sample project in STM8L_Touch_Lib and re-config the channel in 'tsl_user.h'. It work if i configure 6 keys but doesn't work if i configure 7,8,9,..keys.

Could anyone help me?

#stm8l-touch
    This topic has been closed for replies.

    1 reply

    ST Employee
    August 22, 2017
    Dinh VoAuthor
    Visitor II
    August 22, 2017
    Posted on August 22, 2017 at 07:22

    Hi Max,

    I've checked.

    If I configure to run with only 1 key, It work for all my touch key on my own board.

    But when I try to group 6 keys into BANK0, and the others to BANK1, It do not work.

    All key State is TSL_STATEMASK_OFF.

    Here my code: 

    https://drive.google.com/drive/folders/0B9dxb7x3wOyINzNqU1FraVRMRlk?usp=sharing

      

    Would you show me what is wrong?