\n
address_offset : 0x0 Bytes (0x0)
size : 0x5C byte (0x0)
mem_usage : registers
protection :
Keyboard scanner control register
address_offset : 0x0 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_EN : '1' : Enable keyboard scanner, Auto clear when inactive enable and inactive case
bits : 0 - 0 (1 bit)
access : read-write
KBSCN_IRQ_MESSAGE_MASK : '1' : Enable IRQ for message
bits : 1 - 2 (2 bit)
access : read-write
KBSCN_IRQ_INACTIVE_MASK : '1' : Enable IRQ for inactive
bits : 2 - 4 (3 bit)
access : read-write
KBSCN_IRQ_FIFO_MASK : '1' Enable IRQ for fifo over and under flow
bits : 3 - 6 (4 bit)
access : read-write
KBSCN_INACTIVE_TIME : Defines the inactive time in scan cycles. Value 0 is not allowed
bits : 4 - 14 (11 bit)
access : read-write
KBSCN_INACTIVE_EN : '1' After inactive time the keyboard scanner stops the key maxtrix scan
bits : 11 - 22 (12 bit)
access : read-write
KBSCN_CLKDIV : Defines keyboard clk. 00 div/1, 01 div/4, 10 div/16, 11 div/64
bits : 12 - 25 (14 bit)
access : read-write
KBSCN_RESET_FIFO : '1' reset fifo, read always '0'
bits : 14 - 28 (15 bit)
access : write-only
Defines the keyboard mode for P02
address_offset : 0x10 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P03
address_offset : 0x12 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P04
address_offset : 0x14 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P05
address_offset : 0x16 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P06
address_offset : 0x18 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P07
address_offset : 0x1A Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P10
address_offset : 0x1C Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P11
address_offset : 0x1E Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Keyboard scanner control 2 register
address_offset : 0x2 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_ROW_ACTIVE_TIME : Define the row active time in keyboard clock cycles
bits : 0 - 15 (16 bit)
access : read-write
Defines the keyboard mode for P12
address_offset : 0x20 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P13
address_offset : 0x22 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P14
address_offset : 0x24 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P15
address_offset : 0x26 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P16
address_offset : 0x28 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P17
address_offset : 0x2A Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P20
address_offset : 0x2C Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P21
address_offset : 0x2E Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P22
address_offset : 0x30 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P23
address_offset : 0x32 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P24
address_offset : 0x34 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P30
address_offset : 0x3C Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P31
address_offset : 0x3E Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the number of rows and columns of the matrix
address_offset : 0x4 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MATRIX_ROW : Defines the number of the rows of the keyboard matrix minus 1. Zero means number of rows 1
bits : 0 - 3 (4 bit)
access : read-write
KBSCN_MATRIX_COLUMN : Defines the number of the columns of the keyboard matrix minus 1. Zero means number of columns 1
bits : 4 - 12 (9 bit)
access : read-write
Defines the keyboard mode for P32
address_offset : 0x40 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P33
address_offset : 0x42 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P34
address_offset : 0x44 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P35
address_offset : 0x46 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P36
address_offset : 0x48 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P37
address_offset : 0x4A Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P40
address_offset : 0x4C Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P41
address_offset : 0x4E Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P42
address_offset : 0x50 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P43
address_offset : 0x52 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P44
address_offset : 0x54 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P45
address_offset : 0x56 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P46
address_offset : 0x58 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P47
address_offset : 0x5A Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the debounce time for key press and release
address_offset : 0x6 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_DEBOUNCE_RELEASE_TIME : Defines the press debounce time in cycles of full matrix scan. One means no debounce, zero is reserved
bits : 0 - 5 (6 bit)
access : read-write
KBSCN_DEBOUNCE_PRESS_TIME : Defines the press debounce time in cycles of full matrix scan. One means no debounce, zero is reserved
bits : 6 - 17 (12 bit)
access : read-write
keyboard scanner Interrupt status register
address_offset : 0x8 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MES_IRQ_STATUS : There is at least one last message in the fifo.
bits : 0 - 0 (1 bit)
access : read-only
KBSCN_INACTIVE_IRQ_STATUS : There is no keyboard activity for a predefined time
bits : 1 - 2 (2 bit)
access : read-only
KBSCN_NUM_MESSAGE : Defines how many messages there are in the fifo.
bits : 2 - 8 (7 bit)
access : read-only
KBSCN_FIFO_OVERFL : '1' Fifo Overflow occurred
bits : 7 - 14 (8 bit)
access : read-only
KBSCN_FIFO_UNDERFL : '1' Fifo Underflow occurred
bits : 8 - 16 (9 bit)
access : read-only
Returns a key message from the message queue
address_offset : 0xA Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_KEYID_ROW : Defines the row id of key
bits : 0 - 3 (4 bit)
access : read-only
KBSCN_KEYID_COLUMN : Defines the column id of key
bits : 4 - 12 (9 bit)
access : read-only
KBSCN_KEY_STATE : '0' : New key state is release '1' : New key state is press
bits : 9 - 18 (10 bit)
access : read-only
KBSCN_LAST_ENTRY : '1' : this message is the last of the group message, else '0'. When '1' bits 9:0 are all '1'
bits : 10 - 20 (11 bit)
access : read-only
Defines the keyboard mode for P00
address_offset : 0xC Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Defines the keyboard mode for P01
address_offset : 0xE Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
KBSCN_MODE : Defines the row/column index that has to be connected
bits : 0 - 4 (5 bit)
access : read-write
KBSCN_ROW : '1' GPIO is row, '0' GPIO is column
bits : 5 - 10 (6 bit)
access : read-write
KBSCN_GPIO_EN : '1' GPIO is enable for row or column
bits : 6 - 12 (7 bit)
access : read-write
Is something missing? Is something wrong? can you help correct it ? Please contact us at info@chipselect.org !
This website is sponsored by Embeetle, an IDE designed from scratch for embedded software developers.