\n

ACMP

Peripheral Memory Blocks

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

Registers

ACMP_CTL0 (CTL0)

ACMP_CTL1 (CTL1)

ACMP_STATUS (STATUS)

ACMP_VREF (VREF)


ACMP_CTL0 (CTL0)

Analog Comparator 0 Control Register
address_offset : 0x0 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ACMP_CTL0 ACMP_CTL0 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 ACMPEN ACMPIE HYSSEL NEGSEL RTRGEN FTRGEN FILTSEL POSSEL

ACMPEN : Analog Comparator 0 Enable Bit\nNote: Analog comparator output needs to wait 2 us stable time after this bit is set.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog Comparator 0 Disabled

#1 : 1

Analog Comparator 1 Enabled

End of enumeration elements list.

ACMPIE : Analog Comparator 0 Interrupt Enable Bit\n
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt function Disabled

#1 : 1

Interrupt function Enabled

End of enumeration elements list.

HYSSEL : Analog Comparator 0 Hysteresis Select Bit\n
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Hysteresis function Disabled

#1 : 1

Hysteresis function Enabled

End of enumeration elements list.

NEGSEL : Analog Comparator 0 Negative Input Select Bit\n
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

The source of the negative comparator input is from CPN0 pin

#1 : 1

The source of the negative comparator input is from internal band-gap voltage or comparator reference voltage

End of enumeration elements list.

RTRGEN : Analog Comparator 0 Rising Edge Trigger Enable Bit\nNote: The bit is only effective while analog comparator 0 triggers PWM or Timer.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog comparator 0 rising edge trigger PWM or Timer enabled

#1 : 1

Analog comparator 0 rising edge trigger disabled

End of enumeration elements list.

FTRGEN : Analog Comparator 0 Falling Edge Trigger Enable\nNote: The bit is only effective while analog comparator 0 triggers PWM or Timer.
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog comparator 0 falling edge trigger PWM or Timer enabled

#1 : 1

Analog comparator 0 falling edge trigger disabled

End of enumeration elements list.

FILTSEL : Comparator Output Filter Count Selection\n
bits : 20 - 23 (4 bit)
access : read-write

Enumeration:

#0000 : 0

Filter function is Disabled

#0001 : 1

ACMP0 output is sampled 1 consecutive PCLK

#0010 : 2

ACMP0 output is sampled 2 consecutive PCLKs

#0011 : 3

ACMP0 output is sampled 4 consecutive PCLKs

#0100 : 4

ACMP0 output is sampled 8 consecutive PCLKs

#0101 : 5

ACMP0 output is sampled 16 consecutive PCLKs

#0110 : 6

ACMP0 output is sampled 32 consecutive PCLKs

#0111 : 7

ACMP0 output is sampled 64 consecutive PCLKs

#1000 : 8

ACMP0 output is sampled 128 consecutive PCLKs

#1001 : 9

ACMP0 output is sampled 256 consecutive PCLKs

#1010 : 10

ACMP0 output is sampled 512 consecutive PCLKs

End of enumeration elements list.

POSSEL : Analog Comparator 0 Positive Input Selection\n
bits : 29 - 30 (2 bit)
access : read-write

Enumeration:

#00 : 0

ACMP0_Px is from ACMP0_P0 (P1.5) pin

#01 : 1

ACMP0_Px is from ACMP0_P1 (P1.0) pin

#10 : 2

ACMP0_Px is from ACMP0_P2 (P1.2) pin

#11 : 3

ACMP0_Px is from ACMP0_P3 (P1.3) pin

End of enumeration elements list.


ACMP_CTL1 (CTL1)

Analog Comparator 1 Control Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ACMP_CTL1 ACMP_CTL1 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 ACMPEN ACMPIE HYSSEL NEGSEL RTRGEN FTRGEN FILTSEL POSSEL

ACMPEN : Analog Comparator 1 Enable Bit\nNote: Analog comparator output needs to wait 2 us stable time after this bit is set.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog Comparator 1 Disabled

#1 : 1

Analog Comparator 1 Enabled

End of enumeration elements list.

ACMPIE : Analog Comparator 1 Interrupt Enable Bit\n
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Interrupt function Disabled

#1 : 1

Interrupt function Enabled

End of enumeration elements list.

HYSSEL : Analog Comparator 1 Hysteresis Select Bit\n
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Hysteresis function Disabled

#1 : 1

Hysteresis function Enabled

End of enumeration elements list.

NEGSEL : Analog Comparator 1 Negative Input Select Bit\n
bits : 4 - 4 (1 bit)
access : read-write

Enumeration:

#0 : 0

The source of the negative comparator input is from CPN1 pin

#1 : 1

The source of the negative comparator input is from internal band-gap voltage or comparator reference voltage

End of enumeration elements list.

RTRGEN : Analog Comparator 1 Rising Edge Trigger Enable Bit\nNote: The bit is only effective while analog comparator 1 triggers PWM or Timer.
bits : 8 - 8 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog comparator 1 rising edge trigger PWM or Timer Enabled

#1 : 1

Analog comparator 1 rising edge trigger Disabled

End of enumeration elements list.

FTRGEN : Analog Comparator 1 Falling Edge Trigger Enable Bit\nNote: The bit is only effective while analog comparator 1 triggers PWM or Timer.
bits : 9 - 9 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog comparator 1 falling edge trigger PWM or Timer Enabled

#1 : 1

Analog comparator 1 falling edge trigger Disabled

End of enumeration elements list.

FILTSEL : Comparator Output Filter Count Selection\n
bits : 20 - 23 (4 bit)
access : read-write

Enumeration:

#0000 : 0

Filter function is Disabled

#0001 : 1

ACMP1 output is sampled 1 consecutive PCLK

#0010 : 2

ACMP1 output is sampled 2 consecutive PCLKs

#0011 : 3

ACMP1 output is sampled 4 consecutive PCLKs

#0100 : 4

ACMP1 output is sampled 8 consecutive PCLKs

#0101 : 5

ACMP1 output is sampled 16 consecutive PCLKs

#0110 : 6

ACMP1 output is sampled 32 consecutive PCLKs

#0111 : 7

ACMP1 output is sampled 64 consecutive PCLKs

#1000 : 8

ACMP1 output is sampled 128 consecutive PCLKs

#1001 : 9

ACMP1 output is sampled 256 consecutive PCLKs

#1010 : 10

ACMP1 output is sampled 512 consecutive PCLKs

End of enumeration elements list.

POSSEL : Analog Comparator 1 Positive Input Selection\n
bits : 29 - 30 (2 bit)
access : read-write

Enumeration:

#00 : 0

ACMP1_Px is from ACMP1_P0 (P3.1) pin

#01 : 1

ACMP1_Px is from ACMP1_P1 (P3.2) pin

#10 : 2

ACMP1_Px is from ACMP1_P2 (P3.4) pin

#11 : 3

ACMP1_Px is from ACMP1_P3 (P3.5) pin

End of enumeration elements list.


ACMP_STATUS (STATUS)

Analog Comparator 0/1 Status Register
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ACMP_STATUS ACMP_STATUS 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 ACMPIF0 ACMPIF1 ACMPO0 ACMPO1

ACMPIF0 : Analog Comparator 0 Flag\nNote: This bit can be cleared to 0 by software writing 1.
bits : 0 - 0 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog comparator 0 output does not change

#1 : 1

Analog comparator 0 output changed

End of enumeration elements list.

ACMPIF1 : Analog Comparator 1 Flag\nNote: This bit can be cleared to 0 by software writing 1.
bits : 1 - 1 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog comparator 1 output does not change

#1 : 1

Analog comparator 1 output changed

End of enumeration elements list.

ACMPO0 : Analog Comparator 0 Output\n
bits : 2 - 2 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog comparator 0 outputs 0

#1 : 1

Analog comparator 0 outputs 1

End of enumeration elements list.

ACMPO1 : Analog Comparator 1 Output\n
bits : 3 - 3 (1 bit)
access : read-write

Enumeration:

#0 : 0

Analog comparator 1 outputs 0

#1 : 1

Analog comparator 1 outputs 1

End of enumeration elements list.


ACMP_VREF (VREF)

Analog Comparator Reference Voltage Control Register
address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0

ACMP_VREF ACMP_VREF 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 CRVCTL IREFSEL

CRVCTL : Comparator Reference Voltage Control\n
bits : 0 - 3 (4 bit)
access : read-write

IREFSEL : CRV Internal Reference Selection\n
bits : 7 - 7 (1 bit)
access : read-write

Enumeration:

#0 : 0

Band-gap voltage

#1 : 1

Internal comparator reference voltage

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.