RS_Keyboard controller
RM0082
812/844
Doc ID 018672 Rev 1
35.3.2 Register
map
The GPIO/Keyboard block can be fully configured by programming its registers which can
be accessed at the base address 0xA000_0000.
shows the address map of them.
35.3.3 Registers
description
35.3.3.1 MDCTRLREG
register
.
COLUMN6
GPIO 15
input kbd(column)6
COLUMN7
GPIO 16
input kbd(column)7
COLUMN8
GPIO 17
input kbd(column)8
Table 728.
External signals (continued)
Port pin
GPIO
Keyboard
Table 729.
Register map
Name
Offset
Type
Size in
bit
Description
MDCTRLREG
0x00
RW
16
Mode Control Register
GPIODIRREG
0x04
WO
18
Direction Register for GPIO outputs
GPIODATAREG
0x08
RW
18
Data Register for GPIO input/outputs
STATUSREG
0x0C
RW
2
Status Register
KBREG
0x10
RO
8
Keyboard Value Register
Table 730.
MDCTRLREG register bit assignments
Bit
Name
Reset
value
Type
Description
[31:16]
Not used
[15:09]
PCLKFREQ
7’h00
RW
Prescaler programmable value. The value is the
APB frequency (in MHz) minus 1.
[08]
KBSCANFLG 1’h0
RW
When set to '1' enable keyboard scanning.
[07:04]
Reserved
-
-
Reserved. Read undefined. Should be written 0.
[03:02]
SCANRATE
2’h0
RW
Keyboard scan rate:
– 2’b00 - 10 ms
– 2’b01 - 20 ms
– 2’b10 - 40 ms
– 2’b11 - 80 ms
[01:00]
MODECTRL
2’h0
RW
Mode selection:
– 2’b00 - inactive (reset value)
– 2’b01 - GPIO mode
– 2’b10 - Keyboard mode
– 2’b11 - Not used