\n

ACMP

Peripheral Memory Blocks

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

Registers

ACMP_CR0 (CR0)

ACMP_CR1 (CR1)

ACMP_SR01 (SR01)

ACMP_RVCR (RVCR)


ACMP_CR0 (CR0)

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

ACMP_CR0 ACMP_CR0 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 HYSEN NEGSEL RISING FALLING CPP0SEL

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\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.

HYSEN : Analog Comparator 0 Hysteresis Enable Control\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 Selection\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.

RISING : Analog Comparator 0 Rising Edge Trigger Enable Control\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 Disabled

#1 : 1

Analog comparator 0 rising edge trigger PWM or Timer Enabled

End of enumeration elements list.

FALLING : Analog Comparator 0 Falling Edge Trigger Enable Control\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 Disabled

#1 : 1

Analog comparator 0 falling edge trigger PWM or Timer Enabled

End of enumeration elements list.

CPP0SEL : Analog Comparator 0 Positive Input Selection\n
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_CR1 (CR1)

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

ACMP_CR1 ACMP_CR1 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 HYSEN NEGSEL RISING FALLING CPP1SEL

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\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.

HYSEN : Analog Comparator 1 Hysteresis Enable Control\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 Selection\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.

RISING : Analog Comparator 1 Rising Edge Trigger Enable Control\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 Disabled

#1 : 1

Analog comparator 1 rising edge trigger PWM or Timer Enabled

End of enumeration elements list.

FALLING : Analog Comparator 1 Falling Edge Trigger Enable Control\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 Disabled

#1 : 1

Analog comparator 1 falling edge trigger PWM or Timer Enabled

End of enumeration elements list.

CPP1SEL : Analog Comparator 1 Positive Input Selection\n
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_SR01 (SR01)

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

ACMP_SR01 ACMP_SR01 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 ACMPF0 ACMPF1 ACMPO0 ACMPO1

ACMPF0 : Analog Comparator 0 Flag\nNote: Software can write 1 to clear this bit to 0.
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.

ACMPF1 : Analog Comparator 1 Flag\nNote: Software can write 1 to clear this bit to 0.
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_RVCR (RVCR)

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

ACMP_RVCR ACMP_RVCR 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 CRVS OUT_SEL

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

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