\n
address_offset : 0x0 Bytes (0x0)
size : 0x10 byte (0x0)
mem_usage : registers
protection : not protected
Analog Comparator 0 Control Register
address_offset : 0x0 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
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.
HYSSEL : Analog Comparator 0 Hysteresis Selection\n
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\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\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\n
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\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.
Analog Comparator 1 Control Register
address_offset : 0x4 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
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.
HYSSEL : Analog Comparator 1 Hysteresis Selction\n
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\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\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\n
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\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.
Analog Comparator 0/1 Status Register
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
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\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.
Analog Comparator Reference Voltage Control Register
address_offset : 0xC Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
CRVCTL : Internal Reference Selection\n
bits : 0 - 3 (4 bit)
access : read-write
IREFSEL : 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 Embeetle, an IDE designed from scratch for embedded software developers.