\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 SMPTSEL POSSEL

ACMPEN : Analog Comparator 0 Enable Control\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 Control
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 Selection
bits : 2 - 3 (2 bit)
access : read-write

Enumeration:

#00 : 0

CMP0 Hysteresis Disabled

#01 : 1

CMP0 Hysteresis typical range is 15mV

#10 : 2

CMP0 Hysteresis typical range is 90mV

#11 : 3

Same as 00

End of enumeration elements list.

NEGSEL : Analog Comparator 0 Negative Input Selection
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\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.

SMPTSEL : Analog Comparator 0 Speed Mode Selection
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

Slow mode

#1 : 1

Fast mode

End of enumeration elements list.

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

Enumeration:

#00 : 0

CPP0 is from P1.5 pin

#01 : 1

CPP0 is from P1.0 pin

#10 : 2

CPP0 is from P1.2 pin

#11 : 3

CPP0 is from 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 SMPTSEL POSSEL

ACMPEN : Analog Comparator 1 Enable Control\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 Control
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 Selction
bits : 2 - 3 (2 bit)
access : read-write

Enumeration:

#00 : 0

CMP0 Hysteresis Disabled

#01 : 1

CMP0 Hysteresis typical range is 15mV

#10 : 2

CMP0 Hysteresis typical range is 90mV

#11 : 3

Same as 00

End of enumeration elements list.

NEGSEL : Analog Comparator 1 Negative Input Selection
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\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\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.

SMPTSEL : Analog Comparator 1 Speed Mode Selection
bits : 12 - 12 (1 bit)
access : read-write

Enumeration:

#0 : 0

Slow mode

#1 : 1

Fast mode

End of enumeration elements list.

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

Enumeration:

#00 : 0

CPP1 is from P3.1 pin

#01 : 1

CPP1 is from P3.2 pin

#10 : 2

CPP1 is from P3.4 pin

#11 : 3

CPP1 is from 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: Software can write 1 to clear this bit to zero.
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: Software can write 1 to clear this bit to zero.
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
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
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 : Internal Reference Selection
bits : 0 - 3 (4 bit)
access : read-write

IREFSEL : CRV Module Output Selection
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.