This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728: Keypad delay issues

Part Number: AM5728

Hi

I have custom board with AM5728 on it.

I am using keypad controller with no repeat mode,As per TRM i have given pullup to Row and pulldown to Column.

I am getting /dev/input/event0, in evtest i am getting proper events but sometimes it is delaying.

Is there any configuration to reduce delay?

when key pressed the value is 1 without delay but while key released the value 0 is taking time.

i want to reduce delay.

BR,

Vector

  • Hi Vector,

    Each keyboard functional mode is associated with a timer value. Depending on the selected mode, the keyboard controller timer is loaded with the corresponding value as set in the related registers:
    • KBD_DEBOUNCINGTIME
    • KBD_KEYLONGTIME
    • KBD_TIMEOUT

    The value of the prescale clock timer as set in the KBD_CTRL[4:2] PTV bit field. This programmable clock divider allows the reduction of the clock frequency used by the timer.

    For more info, check AM572x TRM, section 28.4.6.2 Keyboard Controller Timer

    I would suggest you to change the value in these registers (KBD_DEBOUNCINGTIME, KBD_KEYLONGTIME, KBD_TIMEOUT, KBD_CTRL) and observe if the delay value will be reduced.

    Regards,
    Pavek