This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB-FX2 : How to raise event when the state in PA2 pin change?

Hi all,

I connect the pin PA2 (pin42 of Cypress CY7C68013 56-pin SSOP) to a push button. When I push the button, there will be a 3.3 voltage applied to pin PA2.

I can enable pin PA2 for input and read its state. However, I thinks it is not good solution because user normally presses and releases the push button in very short time. Therefore, when the firmware reads the state of IOA2, user already released the button -> the push button event will be not recorded.

Is there any method to raise interrupt when PA2 pin is set?

Delrina Chang,

Parents
  • User cannot press a key so shortly that normal micro cannot detect it - the human reaction times are in the order of 100mS. The shortest pulse you can expect would be at least 50mS and it heavily depends on the key type. So, if you sample the key 100 times a second, you would never miss a key press...

    - Dejan

Reply
  • User cannot press a key so shortly that normal micro cannot detect it - the human reaction times are in the order of 100mS. The shortest pulse you can expect would be at least 50mS and it heavily depends on the key type. So, if you sample the key 100 times a second, you would never miss a key press...

    - Dejan

Children