\n

Peripheral_Registers

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0x10 byte (0x0)
mem_usage : registers
protection :

Registers

CTRL_REG

COMPARE_REG

IRQ_STATUS_REG

COUNTER_REG

SELECT_GPIO_REG

WKUP2_SELECT_GPIO_REG

POL_GPIO_REG

WKUP2_POL_GPIO_REG


CTRL_REG

Control register for the wakeup counter
address_offset : 0x0 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CTRL_REG CTRL_REG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WKUP_DEB_VALUE WKUP_SFT_KEYHIT WKUP_ENABLE_IRQ WKUP2_ENABLE_IRQ

WKUP_DEB_VALUE : Keyboard debounce time (N*1 ms with N = 1 to 63). 0x0: no debouncing 0x1 to 0x3F: 1 ms to 63 ms debounce time
bits : 0 - 5 (6 bit)
access : read-write

WKUP_SFT_KEYHIT : 0 = no effect 1 = emulate key hit. The event counter and counter2 will increment by 1 (after debouncing if enabled). First make this bit 0 before any new key hit can be sensed.
bits : 6 - 12 (7 bit)
access : read-write

WKUP_ENABLE_IRQ : 0 = no interrupt will be generated 1 = if the event counter reaches the value set by WKUP_COMPARE_REG an IRQ will be generated
bits : 7 - 14 (8 bit)
access : read-write

WKUP2_ENABLE_IRQ : 0 = no interrupt will be generated 1 = if the event counter2 reaches the value set by WKUP_COMPARE_REG an IRQ will be generated
bits : 8 - 16 (9 bit)
access : read-write


COMPARE_REG

Number of events before wakeup interrupt
address_offset : 0x2 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

COMPARE_REG COMPARE_REG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WKUP_COMPARE

WKUP_COMPARE : Defines the number of events -1 that have to be counted before the wakeup interrupt will be given. value 0 means one event.
bits : 0 - 7 (8 bit)
access : read-write


IRQ_STATUS_REG

Reset wakeup interrupt
address_offset : 0x4 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

IRQ_STATUS_REG IRQ_STATUS_REG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WKUP_IRQ_STATUS WKUP2_IRQ_STATUS WKUP_CNTR_RST WKUP2_CNTR_RST

WKUP_IRQ_STATUS : Gives 1 when there is a wkup pending IRQ. Writing 1 will reset the interrupt.
bits : 0 - 0 (1 bit)
access : read-write

WKUP2_IRQ_STATUS : Gives 1 when there is a wkup2 pending IRQ. Writing 1 will reset the interrupt.
bits : 1 - 2 (2 bit)
access : read-write

WKUP_CNTR_RST : writing 1 will reset the event counter
bits : 2 - 4 (3 bit)
access : write-only

WKUP2_CNTR_RST : writing 1 will reset the event2 counter
bits : 3 - 6 (4 bit)
access : write-only


COUNTER_REG

Actual number of events of the wakeup counter
address_offset : 0x6 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

COUNTER_REG COUNTER_REG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 EVENT_VALUE EVENT2_VALUE

EVENT_VALUE : This value represents the number of events that have been counted so far. It will be reset by resetting the interrupt.
bits : 0 - 7 (8 bit)
access : read-only

EVENT2_VALUE : This value represents the number of events that have been counted so far. It will be reset by resetting the interrupt.
bits : 8 - 23 (16 bit)
access : read-only


SELECT_GPIO_REG

Select which inputs from P0 port can trigger wkup counter
address_offset : 0x8 Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SELECT_GPIO_REG SELECT_GPIO_REG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WKUP_SELECT_GPIO

WKUP_SELECT_GPIO : 0 = input P0x is not enabled for wakeup event counter 1 = input P0x is enabled for wakeup event counter
bits : 0 - 11 (12 bit)
access : read-write


WKUP2_SELECT_GPIO_REG

Select which inputs from P1 port can trigger wkup counter
address_offset : 0xA Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

WKUP2_SELECT_GPIO_REG WKUP2_SELECT_GPIO_REG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WKUP2_SELECT_GPIO

WKUP2_SELECT_GPIO : 0 = input P0x is not enabled for wakeup event counter 1 = input P0x is enabled for wakeup event counter
bits : 0 - 11 (12 bit)
access : read-write


POL_GPIO_REG

Select the sensitivity polarity for each P0 input
address_offset : 0xC Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

POL_GPIO_REG POL_GPIO_REG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WKUP_POL_GPIO

WKUP_POL_GPIO : 0 = the enabled input P0x increments the event counter if that input goes high 1 = the enabled input P0x increments the event counter if that input goes low
bits : 0 - 11 (12 bit)
access : read-write


WKUP2_POL_GPIO_REG

Select the sensitivity polarity for each P1 input
address_offset : 0xE Bytes (0x0)
size : 16 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

WKUP2_POL_GPIO_REG WKUP2_POL_GPIO_REG read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 WKUP2_POL_GPIO

WKUP2_POL_GPIO : 0 = the enabled input P0x increments the event2 counter if that input goes high 1 = the enabled input P0x increments the event2 counter if that input goes low
bits : 0 - 11 (12 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 EmbeetleEmbeetle, an IDE designed from scratch for embedded software developers.