\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 : Comparator Enable Bit
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Comparator 0 Disabled
#1 : 1
Comparator 0 Enabled
End of enumeration elements list.
ACMPIE : Comparator Interrupt Enable Bit
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
Comparator 0 interrupt Disabled
#1 : 1
Comparator 0 interrupt Enabled. If WKEN (ACMP_CTL0[16]) is set to 1, the wake-up interrupt function will be enabled as well
End of enumeration elements list.
ACMPOINV : Comparator Output Inverse
bits : 3 - 3 (1 bit)
access : read-write
Enumeration:
#0 : 0
Comparator 0 output inverse Disabled
#1 : 1
Comparator 0 output inverse Enabled
End of enumeration elements list.
NEGSEL : Comparator Negative Input Selection
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
#00 : 0
ACMP0_N pin
#01 : 1
Internal comparator reference voltage (CRV)
#10 : 2
Band-gap voltage
#11 : 3
DAC output
End of enumeration elements list.
POSSEL : Comparator Positive Input Selection
bits : 6 - 7 (2 bit)
access : read-write
Enumeration:
#00 : 0
Input from ACMP0_P0
#01 : 1
Input from ACMP0_P1
#10 : 2
Input from ACMP0_P2
#11 : 3
Input from ACMP0_P3
End of enumeration elements list.
INTPOL : Interrupt Condition Polarity Selection\nACMPIF0 will be set to 1 when comparator output edge condition is detected.
bits : 8 - 9 (2 bit)
access : read-write
Enumeration:
#00 : 0
Rising edge or falling edge
#01 : 1
Rising edge
#10 : 2
Falling edge
#11 : 3
Reserved
End of enumeration elements list.
OUTSEL : Comparator Output Select
bits : 12 - 12 (1 bit)
access : read-write
Enumeration:
#0 : 0
Comparator 0 output to ACMP0_O pin is unfiltered comparator output
#1 : 1
Comparator 0 output to ACMP0_O pin is from filter output
End of enumeration elements list.
FILTSEL : Comparator Output Filter Count Selection
bits : 13 - 15 (3 bit)
access : read-write
Enumeration:
#000 : 0
Filter function is Disabled
#001 : 1
ACMP0 output is sampled 1 consecutive PCLK
#010 : 2
ACMP0 output is sampled 2 consecutive PCLKs
#011 : 3
ACMP0 output is sampled 4 consecutive PCLKs
#100 : 4
ACMP0 output is sampled 8 consecutive PCLKs
#101 : 5
ACMP0 output is sampled 16 consecutive PCLKs
#110 : 6
ACMP0 output is sampled 32 consecutive PCLKs
#111 : 7
ACMP0 output is sampled 64 consecutive PCLKs
End of enumeration elements list.
WKEN : Power-down Wake-up Enable Bit
bits : 16 - 16 (1 bit)
access : read-write
Enumeration:
#0 : 0
Wake-up function Disabled
#1 : 1
Wake-up function Enabled
End of enumeration elements list.
WLATEN : Window Latch Mode Enable Bit
bits : 17 - 17 (1 bit)
access : read-write
Enumeration:
#0 : 0
Window Latch Mode Disabled
#1 : 1
Window Latch Mode Enabled
End of enumeration elements list.
WCMPSEL : Window Compare Mode Selection
bits : 18 - 18 (1 bit)
access : read-write
Enumeration:
#0 : 0
Window Compare Mode Disabled
#1 : 1
Window Compare Mode is Selected
End of enumeration elements list.
HYSSEL : Hysteresis Mode Selection
bits : 24 - 25 (2 bit)
access : read-write
Enumeration:
#00 : 0
Hysteresis is 0mV
#01 : 1
Hysteresis is 10mV
#10 : 2
Hysteresis is 20mV
#11 : 3
Hysteresis is 30mV
End of enumeration elements list.
MODESEL : Propagation Delay Mode Selection
bits : 28 - 29 (2 bit)
access : read-write
Enumeration:
#00 : 0
Max propagation delay is 4.5uS, operation current is 1.2uA
#01 : 1
Max propagation delay is 2uS, operation current is 3uA
#10 : 2
Max propagation delay is 600nS, operation current is 10uA
#11 : 3
Max propagation delay is 200nS, operation current is 75uA
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 : Comparator Enable Bit
bits : 0 - 0 (1 bit)
access : read-write
Enumeration:
#0 : 0
Comparator 1 Disabled
#1 : 1
Comparator 1 Enabled
End of enumeration elements list.
ACMPIE : Comparator Interrupt Enable Bit
bits : 1 - 1 (1 bit)
access : read-write
Enumeration:
#0 : 0
Comparator 1 interrupt Disabled
#1 : 1
Comparator 1 interrupt Enabled. If WKEN (ACMP_CTL1[16]) is set to 1, the wake-up interrupt function will be enabled as well
End of enumeration elements list.
ACMPOINV : Comparator Output Inverse Control
bits : 3 - 3 (1 bit)
access : read-write
Enumeration:
#0 : 0
Comparator 1 output inverse Disabled
#1 : 1
Comparator 1 output inverse Enabled
End of enumeration elements list.
NEGSEL : Comparator Negative Input Selection
bits : 4 - 5 (2 bit)
access : read-write
Enumeration:
#00 : 0
ACMP1_N pin
#01 : 1
Internal comparator reference voltage (CRV)
#10 : 2
Band-gap voltage
#11 : 3
DAC output
End of enumeration elements list.
POSSEL : Comparator Positive Input Selection
bits : 6 - 7 (2 bit)
access : read-write
Enumeration:
#00 : 0
Input from ACMP1_P0
#01 : 1
Input from ACMP1_P1
#10 : 2
Input from ACMP1_P2
#11 : 3
Input from ACMP1_P3
End of enumeration elements list.
INTPOL : Interrupt Condition Polarity Selection\nACMPIF1 will be set to 1 when comparator output edge condition is detected.
bits : 8 - 9 (2 bit)
access : read-write
Enumeration:
#00 : 0
Rising edge or falling edge
#01 : 1
Rising edge
#10 : 2
Falling edge
#11 : 3
Reserved
End of enumeration elements list.
OUTSEL : Comparator Output Select
bits : 12 - 12 (1 bit)
access : read-write
Enumeration:
#0 : 0
Comparator 1 output to ACMP1_O pin is unfiltered comparator output
#1 : 1
Comparator 1 output to ACMP1_O pin is from filter output
End of enumeration elements list.
FILTSEL : Comparator Output Filter Count Selection
bits : 13 - 15 (3 bit)
access : read-write
Enumeration:
#000 : 0
Filter function is Disabled
#001 : 1
ACMP1 output is sampled 1 consecutive PCLK
#010 : 2
ACMP1 output is sampled 2 consecutive PCLKs
#011 : 3
ACMP1 output is sampled 4 consecutive PCLKs
#100 : 4
ACMP1 output is sampled 8 consecutive PCLKs
#101 : 5
ACMP1 output is sampled 16 consecutive PCLKs
#110 : 6
ACMP1 output is sampled 32 consecutive PCLKs
#111 : 7
ACMP1 output is sampled 64 consecutive PCLKs
End of enumeration elements list.
WKEN : Power-down Wakeup Enable Bit
bits : 16 - 16 (1 bit)
access : read-write
Enumeration:
#0 : 0
Wake-up function Disabled
#1 : 1
Wake-up function Enabled
End of enumeration elements list.
WLATEN : Window Latch Mode Enable Bit
bits : 17 - 17 (1 bit)
access : read-write
Enumeration:
#0 : 0
Window Latch Mode Disabled
#1 : 1
Window Latch Mode Enabled
End of enumeration elements list.
WCMPSEL : Window Compare Mode Selection
bits : 18 - 18 (1 bit)
access : read-write
Enumeration:
#0 : 0
Window Compare Mode Disabled
#1 : 1
Window Compare Mode is Selected
End of enumeration elements list.
HYSSEL : Hysteresis Mode Selection
bits : 24 - 25 (2 bit)
access : read-write
Enumeration:
#00 : 0
Hysteresis is 0mV
#01 : 1
Hysteresis is 10mV
#10 : 2
Hysteresis is 20mV
#11 : 3
Hysteresis is 30mV
End of enumeration elements list.
MODESEL : Propagation Delay Mode Selection
bits : 28 - 29 (2 bit)
access : read-write
Enumeration:
#00 : 0
Max propagation delay is 4.5uS, operation current is 1.2uA
#01 : 1
Max propagation delay is 2uS, operation current is 3uA
#10 : 2
Max propagation delay is 600nS, operation current is 10uA
#11 : 3
Max propagation delay is 200nS, operation current is 75uA
End of enumeration elements list.
Analog Comparator Status Register
address_offset : 0x8 Bytes (0x0)
access : read-write
reset_value : 0x0
reset_Mask : 0x0
ACMPIF0 : Comparator 0 Interrupt Flag\nThis bit is set by hardware when the edge condition defined by INTPOL (ACMP_CTL0[9:8]) is detected on comparator 0 output. This will generate an interrupt if ACMPIE (ACMP_CTL0[1]) is set to 1.\nNote: Write 1 to clear this bit to 0.
bits : 0 - 0 (1 bit)
access : read-write
ACMPIF1 : Comparator 1 Interrupt Flag\nThis bit is set by hardware when the edge condition defined by INTPOL (ACMP_CTL1[9:8]) is detected on comparator 1 output. This will cause an interrupt if ACMPIE (ACMP_CTL1[1]) is set to 1.\nNote: Write 1 to clear this bit to 0.
bits : 1 - 1 (1 bit)
access : read-write
ACMPO0 : Comparator 0 Output\nSynchronized to the PCLK to allow reading by software. Cleared when the comparator 0 is disabled, i.e. ACMPEN (ACMP_CTL0[0]) is cleared to 0.
bits : 4 - 4 (1 bit)
access : read-write
ACMPO1 : Comparator 1 Output\nSynchronized to the PCLK to allow reading by software. Cleared when the comparator 1 is disabled, i.e. ACMPEN (ACMP_CTL1[0]) is cleared to 0.
bits : 5 - 5 (1 bit)
access : read-write
WKIF0 : Comparator 0 Power-down Wake-up Interrupt Flag\nThis bit will be set to 1 when ACMP0 wake-up interrupt event occurs.\nNote: Write 1 to clear this bit to 0.
bits : 8 - 8 (1 bit)
access : read-write
Enumeration:
#0 : 0
No power-down wake-up occurred
#1 : 1
Power-down wake-up occurred
End of enumeration elements list.
WKIF1 : Comparator 1 Power-down Wake-up Interrupt Flag\nThis bit will be set to 1 when ACMP1 wake-up interrupt event occurs.\nNote: Write 1 to clear this bit to 0.
bits : 9 - 9 (1 bit)
access : read-write
Enumeration:
#0 : 0
No power-down wake-up occurred
#1 : 1
Power-down wake-up occurred
End of enumeration elements list.
ACMPS0 : Comparator 0 Status \nSynchronized to the PCLK to allow reading by software. Cleared when the comparator 0 is disabled, i.e. ACMPEN (ACMP_CTL0[0]) is cleared to 0.
bits : 12 - 12 (1 bit)
access : read-write
ACMPS1 : Comparator 1 Status\nSynchronized to the PCLK to allow reading by software. Cleared when the comparator 1 is disabled, i.e. ACMPEN (ACMP_CTL1[0]) is cleared to 0.
bits : 13 - 13 (1 bit)
access : read-write
ACMPWO : Comparator Window Output\nThis bit shows the output status of window compare mode
bits : 16 - 16 (1 bit)
access : read-write
Enumeration:
#0 : 0
The positive input voltage is outside the window
#1 : 1
The positive input voltage is in the window
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 : Comparator Reference Voltage Setting
bits : 0 - 3 (4 bit)
access : read-write
CRVSSEL : CRV Source Voltage Selection
bits : 6 - 6 (1 bit)
access : read-write
Enumeration:
#0 : 0
AVDD is selected as CRV source voltage
#1 : 1
The reference voltage defined by SYS_VREFCTL register is selected as CRV source 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.