SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
This procedure initializes the keyboard controller after a POR or software reset (see Table 28-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– |