Skip to main content
mrupprath
Associate II
March 17, 2013
Question

Kardware Key / Button debouncing with one-puls mode of general purpose timers

  • March 17, 2013
  • 1 reply
  • 508 views
Posted on March 17, 2013 at 14:32

Hello;

i have checked and tried the one -pulse example of the standard periheral library.

In the example The timer uses one channel as input (ch1) and one chanel (ch2) asl output for the pulse.

As a result a can use the one shot signal at ch2 as debounced signal / or the coressponding interupt trigger.

It works fine but it seems that i need 1 Timer to debounce 1 Inbut button.

One Timer has 4 channels my question is if it is possible to debounce more than one input button with a single timer ?

For example : is it possible to trigger two (four) independent one pulses by using ch1 and ch3 as inputs and ch2 and ch4 as outputs.

Or to use all channels as inputs and use the outputcompare register events as triggers ''input 1,2,3,4 are debounced''.

Thanks in advance.

 

    This topic has been closed for replies.

    1 reply

    emalund
    Associate III
    March 18, 2013
    Posted on March 18, 2013 at 19:15

     if it is possible to debounce more than one input button with a single timer ?

    as many as you want

    answered in another thread

    [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Debouncing%20interrupts&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3a//my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/AllItems.aspx&currentviews=142]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fcortex%5fmx%5fstm32%2fDebouncing%20interrupts&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&TopicsView=https%3A%2F%2Fmy%2Est%2Ecom%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex%5Fmx%5Fstm32%2FAllItems%2Easpx&currentviews=142