SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
This procedure initializes the keyboard controller after a POR or software reset (see Table 30-12).
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Configure the debouncing time of filtering the glitches on pressing or releasing key. | KBD_DEBOUNCINGTIME[5:0] DEBOUNCING_VALUE | 0x– |
Configure the duration of a key press to allow shortcut detection (desired value of the long-key interrupt or repeat mode value). | KBD_KEYLONGTIME[11:0] LONG_KEY_VALUE | 0x– |
Configure the period of the long inactivity on the keyboard (desired value of the time-out interrupt). | KBD_TIMEOUT[15:0] TIMEOUT_VALUE | 0x– |
Define the logical value of the column outputs (KEYPAD configuration) (logical 0 bit = active column-row). | KBD_COLUMNOUTPUTS[8:0] KBC_REG | 0x– |
Perform the functional configuration of the keyboard module and the prescale clock timer value. | KBD_CTRL | 0x00000– |
Clear the interrupt-status register. | KBD_IRQSTATUS | 0x0000000F |
Enable (0b1)/disable (0b0) certain keyboard events for generating an interrupt request. | KBD_IRQENABLE_SET/KBD_IRQENABLE_CLR [2:0] IT_..._EN | 0x– |
Unmask (0b1)/mask (0b0) the expected source of wake-up event that generates a wake-up request. | KBD_IRQWAKEEN[2:0] WUP_..._ENA | 0x– |