\n

CSCAN

Peripheral Memory Blocks

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

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

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

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

Registers

CSCAN_CTRL (CTRL)

CSCAN_RESULT0 (RESULT0)

CSCAN_RESULT1 (RESULT1)

CSCAN_RESULT2 (RESULT2)

CSCAN_RESULT3 (RESULT3)

CSCAN_THRESHOLD0 (THRESHOLD0)

CSCAN_THRESHOLD1 (THRESHOLD1)

CSCAN_THRESHOLD2 (THRESHOLD2)

CSCAN_THRESHOLD3 (THRESHOLD3)

CSCAN_RESULT4 (RESULT4)

CSCAN_RESULT5 (RESULT5)

CSCAN_CYCCNT (CYCCNT)

CSCAN_THRESHOLD4 (THRESHOLD4)

CSCAN_THRESHOLD5 (THRESHOLD5)

CSCAN_THRESHOLD6 (THRESHOLD6)

CSCAN_SEL (SEL)

CSCAN_COUNT (COUNT)

CSCAN_INT (INT)


CSCAN_CTRL (CTRL)

CSCAN Control Register
address_offset : 0x0 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_CTRL CSCAN_CTRL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 DEBOUNCE CURRENT INTEN SLOWCLK MODE0 MODE1 DURCNT CMPEN TOINTEN EN PD

DEBOUNCE : CSCAN Debounce Time It is in units of HIRC clock period and gives debounce of 4, 8, 16, 32, 40, 48, 56, 64, 80, 96, 112, 128, 168, 232, 256 periods for settings 1,..,15. Setting 0 is no debounce time.
bits : 0 - 3 (4 bit)
access : read-write

CURRENT : CSCAN Oscillator Current Controls the analog bais current of the capacitive relaxation oscillator. 0:300nA 1:450nA 2:600nA 3:1200nA
bits : 16 - 17 (2 bit)
access : read-write

INTEN : CSCAN Enable Interrupt
bits : 20 - 20 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt disabled

#1 : 1

Interrupt enabled

End of enumeration elements list.

SLOWCLK : CSCAN Slow Clock **Notes: In low speed mode, for CYCLE_CNT <5, the minimum frequency of oscillation of a CAPSENSE GPIO must be > 2*Fclk. Where Fclk is the frequency of LXT or LIRC depending which is selected as reference.
bits : 21 - 21 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timebase clock is HIRC

#1 : 1

Timebase clock is LIRC (XTAL32K_EN = 0) or XTAL (XTAL32K_EN = 1)

End of enumeration elements list.

MODE0 : CSCAN Mode0
bits : 22 - 22 (1 bit)
access : read-write

Enumeration:

#0 : 0

Single shot Capacitive sense

#1 : 1

Scans each channel set in SCAN_MASK and stores in Register

End of enumeration elements list.

MODE1 : CSCAN Mode1
bits : 23 - 23 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt when scan finished

#1 : 1

Interrupt when DUR_CNT delay occurs

End of enumeration elements list.

DURCNT : CSCAN Duration Count This counter is used to set a wakeup time after a capacitive sensing scan is complete. It is in units of low frewquency clock period (either LXT or LIRC clock) and gives delay of 160, 320, 480,640, 800, 960, 1120, 1280, 1440,1600, 1920, 2240, 2560, 2880,3200 3840 periods for settings 0,..,15.
bits : 24 - 27 (4 bit)
access : read-write

CMPEN : Compare Enable Note: When disable Compare function , the touch will always issue an interrupt if
bits : 28 - 28 (1 bit)
access : read-write

Enumeration:

#0 : 0

Disable Compare function

#1 : 1

Enable Compare function

End of enumeration elements list.

TOINTEN : Timeout Interrupt Enable
bits : 29 - 29 (1 bit)
access : read-write

Enumeration:

#0 : 0

Timeout Interrupt disabled

#1 : 1

Timeout Interrupt enabled

End of enumeration elements list.

EN : CSCAN Enable Write 1 to start. Reset by hardware when operation finished.
bits : 30 - 30 (1 bit)
access : read-write

PD : Power Down 0: Enable analog circuit 1: Power down analog circuit and block.
bits : 31 - 31 (1 bit)
access : read-write


CSCAN_RESULT0 (RESULT0)

CSCAN Counter Result Register 0
address_offset : 0x10 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_RESULT0 CSCAN_RESULT0 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CNT0 CNT1

CNT0 : Channel 0 Counter result register
bits : 0 - 15 (16 bit)
access : read-write

CNT1 : Channel 1 Counter result register
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_RESULT1 (RESULT1)

CSCAN Counter Result Register 1
address_offset : 0x14 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_RESULT1 CSCAN_RESULT1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CNT2 CNT3

CNT2 : Channel 2 Counter result register
bits : 0 - 15 (16 bit)
access : read-write

CNT3 : Channel 3 Counter result register
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_RESULT2 (RESULT2)

CSCAN Counter Result Register 2
address_offset : 0x18 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_RESULT2 CSCAN_RESULT2 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CNT4 CNT5

CNT4 : Channel 4 Counter result register
bits : 0 - 15 (16 bit)
access : read-write

CNT5 : Channel 5 Counter result register
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_RESULT3 (RESULT3)

CSCAN Counter Result Register 3
address_offset : 0x1C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_RESULT3 CSCAN_RESULT3 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CNT6 CNT7

CNT6 : Channel 6 Counter result register
bits : 0 - 15 (16 bit)
access : read-write

CNT7 : Channel 7 Counter result register
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_THRESHOLD0 (THRESHOLD0)

CSCAN Compare Threshold Register 0
address_offset : 0x20 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_THRESHOLD0 CSCAN_THRESHOLD0 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CTH0 CTH1

CTH0 : Channel 0 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 0 - 15 (16 bit)
access : read-write

CTH1 : Channel 1 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_THRESHOLD1 (THRESHOLD1)

CSCAN Compare Threshold Register 1
address_offset : 0x24 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_THRESHOLD1 CSCAN_THRESHOLD1 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CTH2 CTH3

CTH2 : Channel 2 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 0 - 15 (16 bit)
access : read-write

CTH3 : Channel 3 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_THRESHOLD2 (THRESHOLD2)

CSCAN Compare Threshold Register 2
address_offset : 0x28 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_THRESHOLD2 CSCAN_THRESHOLD2 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CTH4 CTH5

CTH4 : Channel 4 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 0 - 15 (16 bit)
access : read-write

CTH5 : Channel 5 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_THRESHOLD3 (THRESHOLD3)

CSCAN Compare Threshold Register 3
address_offset : 0x2C Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_THRESHOLD3 CSCAN_THRESHOLD3 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CTH6 CTH7

CTH6 : Channel 6 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 0 - 15 (16 bit)
access : read-write

CTH7 : Channel 7 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_RESULT4 (RESULT4)

CSCAN Counter Result Register 4
address_offset : 0x30 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_RESULT4 CSCAN_RESULT4 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CNT8 CNT9

CNT8 : Channel 8 Counter result register
bits : 0 - 15 (16 bit)
access : read-write

CNT9 : Channel 9 Counter result register
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_RESULT5 (RESULT5)

CSCAN Counter Result Register 5
address_offset : 0x34 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_RESULT5 CSCAN_RESULT5 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CNT10 CNT11

CNT10 : Channel 10 Counter result register
bits : 0 - 15 (16 bit)
access : read-write

CNT11 : Channel 11 Counter result register
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_CYCCNT (CYCCNT)

CSCAN Cycle Count Control Register
address_offset : 0x4 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_CYCCNT CSCAN_CYCCNT read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CYCCNT MASK

CYCCNT : CSCAN Cycle Count
bits : 0 - 3 (4 bit)
access : read-write

MASK : Scan Mask Register If MASK[n] is set then touch channel[n] is included in scan of capacitive sensing.
bits : 16 - 27 (12 bit)
access : read-write


CSCAN_THRESHOLD4 (THRESHOLD4)

CSCAN Compare Threshold Register 4
address_offset : 0x40 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_THRESHOLD4 CSCAN_THRESHOLD4 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CTH8 CTH9

CTH8 : Channel 8 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 0 - 15 (16 bit)
access : read-write

CTH9 : Channel 9 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_THRESHOLD5 (THRESHOLD5)

CSCAN Compare Threshold Register 5
address_offset : 0x44 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_THRESHOLD5 CSCAN_THRESHOLD5 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CTH10 CTH11

CTH10 : Channel 10 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 0 - 15 (16 bit)
access : read-write

CTH11 : Channel 11 Compare Threshold Setting A 16 bits threshold value can be set by user
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_THRESHOLD6 (THRESHOLD6)

CSCAN Compare Threshold Register 6
address_offset : 0x50 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_THRESHOLD6 CSCAN_THRESHOLD6 read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 CTHS

CTHS : A 16 bits threshold value can be set by user
bits : 16 - 31 (16 bit)
access : read-write


CSCAN_SEL (SEL)

CSCAN Select Register
address_offset : 0x60 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_SEL CSCAN_SEL read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 SEL CMPLOW CMPLOWS

SEL : CSCAN Select In single mode selects the channel to perform measurement on.
bits : 0 - 11 (12 bit)
access : read-write

CMPLOW :
bits : 16 - 27 (12 bit)
access : read-write

Enumeration:

0 : 0

Counter result higher than threshold will issue interrupt when CMP_EN = 1'b

1 : 1

Counter result lower than threshold will issue interrupt when CMP_EN = 1'b

End of enumeration elements list.

CMPLOWS :
bits : 31 - 31 (1 bit)
access : read-write

Enumeration:

#0 : 0

Counter result higher than threshold will issue interrupt when CMP_EN = 1'b

#1 : 1

Counter result lower than threshold will issue interrupt when CMP_EN = 1'b

End of enumeration elements list.


CSCAN_COUNT (COUNT)

CSCAN Count Status Register
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_COUNT CSCAN_COUNT read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 COUNT

COUNT : CSCAN Count Count result of single scan.
bits : 0 - 15 (16 bit)
access : read-write


CSCAN_INT (INT)

CSCAN Interrupt Register
address_offset : 0xC Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSCAN_INT CSCAN_INT read-write 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 Resets to Resets to 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 TOINT TOINTS CMPINT CMPINTS INT

TOINT : If the the touch channel[n] is timeout, the [n] bit will set to 1'b.
bits : 0 - 11 (12 bit)
access : read-write

TOINTS : If the the touch channel[n] is timeout, the [n] bit will set to 1'b.
bits : 14 - 14 (1 bit)
access : read-write

CMPINT :
bits : 16 - 27 (12 bit)
access : read-write

CMPINTS :
bits : 30 - 30 (1 bit)
access : read-write

INT : CSCAN Flag Active Write '1' to clear.
bits : 31 - 31 (1 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.