\n
address_offset : 0x0 Bytes (0x0)
size : 0x10 byte (0x0)
mem_usage : registers
protection :
Analog Comparator 0 Control Register
address_offset : 0x0 Bytes (0x0)
size : -1 bit
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 - 6 (3 bit)
access : read-write
Enumeration:
#000 : 0
All negative input disbaled
#001 : 1
ACMP0_N0
#010 : 2
ACMP0_N1
#011 : 3
ACMP0_N2
#100 : 4
ACMP0_N3
#101 : 5
Comparator Reference Voltage (CRV)
End of enumeration elements list.
POSSEL : Comparator Positive Input Selection
bits : 8 - 10 (3 bit)
access : read-write
Enumeration:
#000 : 0
All positive input disabled
#001 : 1
Input from ACMP0_P0
#010 : 2
Comparator Reference Voltage (CRV)
#011 : 3
DAC0 output
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 Selected
End of enumeration elements list.
INTPOL : Interrupt Condition Polarity Selection
ACMPIF0 will be set to 1 when comparator output edge condition is detected.
bits : 20 - 21 (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.
HYSSEL : Hysteresis Mode Selection
bits : 24 - 25 (2 bit)
access : read-write
Enumeration:
#00 : 0
Hysteresis is 0mV
#11 : 3
Hysteresis is 30mV
End of enumeration elements list.
HYSBYPASS : Hysteresis Adjust Function Selection
bits : 30 - 30 (1 bit)
access : read-write
Enumeration:
#0 : 0
Enable adjust function
#1 : 1
Bypass adjust function
End of enumeration elements list.
Analog Comparator 1 Control Register
address_offset : 0x4 Bytes (0x0)
size : -1 bit
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 - 6 (3 bit)
access : read-write
Enumeration:
#000 : 0
All negative input disbaled
#001 : 1
ACMP1_N0
#010 : 2
ACMP1_N1
#011 : 3
ACMP1_N2
#100 : 4
ACMP1_N3
#101 : 5
Comparator Reference Voltage (CRV)
End of enumeration elements list.
POSSEL : Comparator Positive Input Selection
bits : 8 - 10 (3 bit)
access : read-write
Enumeration:
#000 : 0
All positive input disabled
#001 : 1
Input from ACMP1_P0
#010 : 2
Comparator Reference Voltage (CRV)
#011 : 3
DAC0 output
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 Selected
End of enumeration elements list.
INTPOL : Interrupt Condition Polarity Selection
ACMPIF0 will be set to 1 when comparator output edge condition is detected.
bits : 20 - 21 (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.
HYSSEL : Hysteresis Mode Selection
bits : 24 - 25 (2 bit)
access : read-write
Enumeration:
#00 : 0
Hysteresis is 0mV
#11 : 3
Hysteresis is 30mV
End of enumeration elements list.
Analog Comparator Status Register
address_offset : 0x8 Bytes (0x0)
size : -1 bit
access : read-write
reset_value : 0x0
reset_Mask : 0x0
ACMPIF0 : Comparator 0 Interrupt Flag
This bit is set by hardware when the edge condition defined by INTPOL (ACMP_CTL0[21:20]) is detected on comparator 0 output. This will generate an interrupt if ACMPIE (ACMP_CTL0[1]) is set to 1.
Note: Write 1 to clear this bit to 0.
bits : 0 - 0 (1 bit)
access : read-write
ACMPIF1 : Comparator 1 Interrupt Flag
This bit is set by hardware when the edge condition defined by INTPOL (ACMP_CTL1[21:20]) is detected on comparator 1 output. This will cause an interrupt if ACMPIE (ACMP_CTL1[1]) is set to 1.
Note: Write 1 to clear this bit to 0.
bits : 1 - 1 (1 bit)
access : read-write
ACMPO0 : Comparator 0 Output
Synchronized 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
Synchronized 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
This bit will be set to 1 when ACMP0 wake-up interrupt event occurs.
Note: 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
This bit will be set to 1 when ACMP1 wake-up interrupt event occurs.
Note: 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
Synchronized 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
Synchronized 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
This 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)
size : -1 bit
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 (voltage of VDD pin)is selected as CRV source voltage
#1 : 1
Internal VREF is selected as as CRV source voltage
End of enumeration elements list.
CRVEN : CRV Function Enable Bit
bits : 8 - 8 (1 bit)
access : read-write
Enumeration:
#0 : 0
CRV function Disabled
#1 : 1
CRV function Enabled
End of enumeration elements list.
COMPEN : Comparator Bias Enable Bit
bits : 9 - 9 (1 bit)
access : read-write
Enumeration:
#0 : 0
Comparator bias Disabled
#1 : 1
Comparator bias Enabled
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.