\n

CAPSENSE_0

Peripheral Memory Blocks

address_offset : 0x0 Bytes (0x0)
size : 0xFFC byte (0x0)
mem_usage : registers
protection : not protected

Registers

CONTROL

MODE

DATA

SCAN

CSTH

MUX


CONTROL

Module Control
address_offset : 0x0 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CONTROL CONTROL 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 BUSYF CSEN BIASEN CMPPOL CMD CNVR ACCMD MCEN CSCM PMMD PMEF CMPEN CDIEN EOSIEN CMPI CDI EOSI

BUSYF : Start and Busy Flag.
bits : 0 - 0 (1 bit)

Enumeration:

0 : IDLE

Read: A capacitive sensing conversion is complete or a conversion is not currently in progress. Write: No effect.

1 : BUSY

Read: A capacitive sensing conversion is in progress. Write: Initiate a capacitive sensing conversion if BUSYF is selected as the start of conversion source.

End of enumeration elements list.

CSEN : Module Enable.
bits : 1 - 1 (1 bit)

Enumeration:

0 : DISABLED

Disable the capacitive sensing module.

1 : ENABLED

Enable the capacitive sensing module.

End of enumeration elements list.

BIASEN : Bias Enable.
bits : 2 - 2 (1 bit)

Enumeration:

0 : DISABLED

Disable the bias.

1 : ENABLED

Enable the bias.

End of enumeration elements list.

CMPPOL : Digital Comparator Polarity Select.
bits : 3 - 3 (1 bit)

Enumeration:

0 : GT

The digital comparator generates an interrupt if the conversion is greater than the CSTH threshold.

1 : LTE

The digital comparator generates an interrupt if the conversion is less than or equal to the CSTH threshold.

End of enumeration elements list.

CMD : Conversion Mode Select.
bits : 4 - 5 (2 bit)

Enumeration:

0 : SINGLE

Single Conversion Mode: One conversion occurs on a single channel.

1 : SCAN

Single Scan Mode: One conversion on each channel selected by SCANEN occurs. An end-of-scan interrupt indicates all channels have been measured.

2 : CONT_SINGLE

Continuous Single Conversion Mode: Continuously converts on a single channel. This operation ends only if the module is disabled (CSEN = 0) or if a compare threshold event occurs (CMPI = 1).

3 : CONT_SCAN

Continuous Scan Mode: Continuously loops through and converts on all the channels selected by SCANEN. This operation ends only if the module is disabled (CSEN = 0) or if a compare threshold event occurs (CMPI = 1).

End of enumeration elements list.

CNVR : Conversion Rate.
bits : 6 - 7 (2 bit)

Enumeration:

0 : 12BIT

Conversions last 12 internal CAPSENSE clocks and results are 12 bits in length.

1 : 13BIT

Conversions last 13 internal CAPSENSE clocks and results are 13 bits in length.

2 : 14BIT

Conversions last 14 internal CAPSENSE clocks and results are 14 bits in length.

3 : 16BIT

Conversions last 16 internal CAPSENSE clocks and results are 16 bits in length.

End of enumeration elements list.

ACCMD : Accumulator Mode Select.
bits : 8 - 10 (3 bit)

Enumeration:

0 : ACC_1

Accumulate 1 sample.

1 : ACC_4

Accumulate 4 samples.

2 : ACC_8

Accumulate 8 samples.

3 : ACC_16

Accumulate 16 samples.

4 : ACC_32

Accumulate 32 samples.

5 : ACC_64

Accumulate 64 samples.

End of enumeration elements list.

MCEN : Multiple Channel Enable.
bits : 11 - 11 (1 bit)

Enumeration:

0 : DISABLED

Disable the multiple channel measurement feature.

1 : ENABLED

Enable the multiple channel measurement feature.

End of enumeration elements list.

CSCM : Start of Conversion Mode Select.
bits : 12 - 15 (4 bit)

Enumeration:

0 : CSNT0

The CSnT0 ("On Demand" by writing 1 to CSBUSY) trigger source starts conversions.

1 : CSNT1

The CSnT1 (Timer 0 Low Overflow) trigger source starts conversions.

2 : CSNT2

The CSnT2 (Timer 0 High Overflow) trigger source starts conversions.

3 : CSNT3

The CSnT3 (Timer 1 Low Overflow) trigger source starts conversions.

4 : CSNT4

The CSnT4 (Timer 1 High Overflow) trigger source starts conversions.

5 : CSNT5

The CSnT5 (I2C0 Timer Byte 1 Overflow) trigger source starts conversions.

6 : CSNT6

The CSnT6 (I2C0 Timer Byte 3 Overflow) trigger source starts conversions.

7 : CSNT7

The CSnT7 (I2C1 Timer Byte 1 Overflow) trigger source starts conversions.

8 : CSNT8

The CSnT8 (I2C1 Timer Byte 3 Overflow) trigger source starts conversions.

9 : CSNT9

The CSnT9 (RESERVED) trigger source starts conversions.

10 : CSNT10

The CSnT10 (RESERVED) trigger source starts conversions.

11 : CSNT11

The CSnT11 (RESERVED) trigger source starts conversions.

12 : CSNT12

The CSnT12 (RESERVED) trigger source starts conversions.

13 : CSNT13

The CSnT13 (RESERVED) trigger source starts conversions.

14 : CSNT14

The CSnT14 (RESERVED) trigger source starts conversions.

15 : CSNT15

The CSnT15 (RESERVED) trigger source starts conversions.

End of enumeration elements list.

PMMD : Pin Monitor Mode.
bits : 16 - 17 (2 bit)

Enumeration:

0 : ALWAYS_RETRY

Always retry on a pin state change.

1 : RETRY_TWICE

Retry up to twice on consecutive bit cycles.

2 : RETRY_FOUR_TIMES

Retry up to four times on consecutive bit cycles.

3 : DO_NOT_RETRY

Ignore monitored signal state change.

End of enumeration elements list.

PMEF : Pin Monitor Event Flag.
bits : 18 - 18 (1 bit)

Enumeration:

0 : NOT_SET

A retry did not occur due to a pin monitor event during the last conversion.

1 : SET

A retry occurred due to a pin monitor event during the last conversion.

End of enumeration elements list.

CMPEN : Threshold Comparator Enable.
bits : 20 - 20 (1 bit)

Enumeration:

0 : DISABLED

Disable the threshold comparator.

1 : ENABLED

Enable the threshold comparator.

End of enumeration elements list.

CDIEN : Conversion Done Interrupt Enable.
bits : 21 - 21 (1 bit)

Enumeration:

0 : DISABLED

Disable the single conversion done interrupt.

1 : ENABLED

Enable the single conversion done interrupt.

End of enumeration elements list.

EOSIEN : End-of-Scan Interrupt Enable.
bits : 22 - 22 (1 bit)

Enumeration:

0 : DISABLED

Disable the single scan end-of-scan interrupt.

1 : ENABLED

Enable the single scan end-of-scan interrupt.

End of enumeration elements list.

CMPI : Threshold Comparator Interrupt Flag.
bits : 24 - 24 (1 bit)
access : read-only

Enumeration:

0 : NOT_SET

The capacitive sensing result did not cause a compare threshold interrupt.

1 : SET

The capacitive sensing result caused a compare threshold interrupt.

End of enumeration elements list.

CDI : Conversion Done Interrupt Flag.
bits : 25 - 25 (1 bit)

Enumeration:

0 : NOT_SET

Read: The CAPSENSEn module has not completed a data conversion since the last time CDI was cleared. Write: Clear the interrupt.

1 : SET

Read: The CAPSENSEn module completed a data conversion. Write: Force a conversion complete interrupt.

End of enumeration elements list.

EOSI : End-of-Scan Interrupt Flag.
bits : 26 - 26 (1 bit)
access : read-only

Enumeration:

0 : NOT_SET

The CAPSENSEn module has not completed a scan since the last time EOSI was cleared.

1 : SET

The CAPSENSEn module completed a scan.

End of enumeration elements list.


MODE

Measurement Mode
address_offset : 0x10 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

MODE MODE 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 CGSEL DRSEL RAMPSEL IASEL DTSEL LPFSEL

CGSEL : Capacitance Gain Select.
bits : 0 - 2 (3 bit)

DRSEL : Double Reset Select.
bits : 4 - 5 (2 bit)

RAMPSEL : Ramp Selection.
bits : 6 - 7 (2 bit)

IASEL : Output Current Select.
bits : 8 - 10 (3 bit)

DTSEL : Discharge Time Select.
bits : 12 - 14 (3 bit)

LPFSEL : Low Pass Filter Select.
bits : 16 - 18 (3 bit)


DATA

Measurement Data
address_offset : 0x20 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

DATA DATA 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 DATA

DATA : Capacitive Sensing Data.
bits : 0 - 15 (16 bit)


SCAN

Channel Scan Enable
address_offset : 0x30 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

SCAN SCAN 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 SCANEN

SCANEN : Channel Scan Enable.
bits : 0 - 15 (16 bit)


CSTH

Compare Threshold
address_offset : 0x40 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

CSTH CSTH 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 CSTH

CSTH : Compare Threshold.
bits : 0 - 15 (16 bit)


MUX

Mux Channel Select
address_offset : 0x50 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

MUX MUX 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 CSMX CSDISC

CSMX : Mux Channel Select.
bits : 0 - 3 (4 bit)

Enumeration:

0 : CSN0

Select CSn.0 (RESERVED).

1 : CSN1

Select CSn.1 (PB0.0).

2 : CSN2

Select CSn.2 (PB0.1).

3 : CSN3

Select CSn.3 (PB0.2).

4 : CSN4

Select CSn.4 (PB0.3).

5 : CSN5

Select CSn.5 (PB0.4).

6 : CSN6

Select CSn.6 (PB0.5).

7 : CSN7

Select CSn.7 (PB0.6).

8 : CSN8

Select CSn.8 (PB1.2).

9 : CSN9

Select CSn.9 (PB1.3).

10 : CSN10

Select CSn.10 (PB1.6).

11 : CSN11

Select CSn.11 (PB1.7).

12 : CSN12

Select CSn.12 (PB1.8).

13 : CSN13

Select CSn.13 (PB1.9).

14 : CSN14

Select CSn.14 (PB1.10).

15 : CSN15

Select CSn.15 (PB.11).

End of enumeration elements list.

CSDISC : Channel Disconnect.
bits : 7 - 7 (1 bit)

Enumeration:

0 : CONNECT

Connect the capacitive sensing circuit to the selected channel.

1 : DISCONNECT

Disconnect the capacitive sensing input channel.

End of enumeration elements list.



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.