VERID - Version ID | |
| #define | LPCMP_VERID_FEATURE_MASK |
| #define | LPCMP_VERID_FEATURE_SHIFT |
| #define | LPCMP_VERID_FEATURE(x) |
| #define | LPCMP_VERID_MINOR_MASK |
| #define | LPCMP_VERID_MINOR_SHIFT |
| #define | LPCMP_VERID_MINOR(x) |
| #define | LPCMP_VERID_MAJOR_MASK |
| #define | LPCMP_VERID_MAJOR_SHIFT |
| #define | LPCMP_VERID_MAJOR(x) |
PARAM - Parameter | |
| #define | LPCMP_PARAM_DAC_RES_MASK |
| #define | LPCMP_PARAM_DAC_RES_SHIFT |
| #define | LPCMP_PARAM_DAC_RES(x) |
CCR0 - Comparator Control Register 0 | |
| #define | LPCMP_CCR0_CMP_EN_MASK |
| #define | LPCMP_CCR0_CMP_EN_SHIFT |
| #define | LPCMP_CCR0_CMP_EN(x) |
| #define | LPCMP_CCR0_CMP_STOP_EN_MASK |
| #define | LPCMP_CCR0_CMP_STOP_EN_SHIFT |
| #define | LPCMP_CCR0_CMP_STOP_EN(x) |
CCR1 - Comparator Control Register 1 | |
| #define | LPCMP_CCR1_WINDOW_EN_MASK |
| #define | LPCMP_CCR1_WINDOW_EN_SHIFT |
| #define | LPCMP_CCR1_WINDOW_EN(x) |
| #define | LPCMP_CCR1_SAMPLE_EN_MASK |
| #define | LPCMP_CCR1_SAMPLE_EN_SHIFT |
| #define | LPCMP_CCR1_SAMPLE_EN(x) |
| #define | LPCMP_CCR1_DMA_EN_MASK |
| #define | LPCMP_CCR1_DMA_EN_SHIFT |
| #define | LPCMP_CCR1_DMA_EN(x) |
| #define | LPCMP_CCR1_COUT_INV_MASK |
| #define | LPCMP_CCR1_COUT_INV_SHIFT |
| #define | LPCMP_CCR1_COUT_INV(x) |
| #define | LPCMP_CCR1_COUT_SEL_MASK |
| #define | LPCMP_CCR1_COUT_SEL_SHIFT |
| #define | LPCMP_CCR1_COUT_SEL(x) |
| #define | LPCMP_CCR1_COUT_PEN_MASK |
| #define | LPCMP_CCR1_COUT_PEN_SHIFT |
| #define | LPCMP_CCR1_COUT_PEN(x) |
| #define | LPCMP_CCR1_COUTA_OWEN_MASK |
| #define | LPCMP_CCR1_COUTA_OWEN_SHIFT |
| #define | LPCMP_CCR1_COUTA_OWEN(x) |
| #define | LPCMP_CCR1_COUTA_OW_MASK |
| #define | LPCMP_CCR1_COUTA_OW_SHIFT |
| #define | LPCMP_CCR1_COUTA_OW(x) |
| #define | LPCMP_CCR1_WINDOW_INV_MASK |
| #define | LPCMP_CCR1_WINDOW_INV_SHIFT |
| #define | LPCMP_CCR1_WINDOW_INV(x) |
| #define | LPCMP_CCR1_WINDOW_CLS_MASK |
| #define | LPCMP_CCR1_WINDOW_CLS_SHIFT |
| #define | LPCMP_CCR1_WINDOW_CLS(x) |
| #define | LPCMP_CCR1_EVT_SEL_MASK |
| #define | LPCMP_CCR1_EVT_SEL_SHIFT |
| #define | LPCMP_CCR1_EVT_SEL(x) |
| #define | LPCMP_CCR1_FUNC_CLK_SEL_MASK |
| #define | LPCMP_CCR1_FUNC_CLK_SEL_SHIFT |
| #define | LPCMP_CCR1_FUNC_CLK_SEL(x) |
| #define | LPCMP_CCR1_FILT_CNT_MASK |
| #define | LPCMP_CCR1_FILT_CNT_SHIFT |
| #define | LPCMP_CCR1_FILT_CNT(x) |
| #define | LPCMP_CCR1_FILT_PER_MASK |
| #define | LPCMP_CCR1_FILT_PER_SHIFT |
| #define | LPCMP_CCR1_FILT_PER(x) |
CCR2 - Comparator Control Register 2 | |
| #define | LPCMP_CCR2_CMP_HPMD_MASK |
| #define | LPCMP_CCR2_CMP_HPMD_SHIFT |
| #define | LPCMP_CCR2_CMP_HPMD(x) |
| #define | LPCMP_CCR2_CMP_NPMD_MASK |
| #define | LPCMP_CCR2_CMP_NPMD_SHIFT |
| #define | LPCMP_CCR2_CMP_NPMD(x) |
| #define | LPCMP_CCR2_HYSTCTR_MASK |
| #define | LPCMP_CCR2_HYSTCTR_SHIFT |
| #define | LPCMP_CCR2_HYSTCTR(x) |
| #define | LPCMP_CCR2_PSEL_MASK |
| #define | LPCMP_CCR2_PSEL_SHIFT |
| #define | LPCMP_CCR2_PSEL(x) |
| #define | LPCMP_CCR2_MSEL_MASK |
| #define | LPCMP_CCR2_MSEL_SHIFT |
| #define | LPCMP_CCR2_MSEL(x) |
DCR - DAC Control | |
| #define | LPCMP_DCR_DAC_EN_MASK |
| #define | LPCMP_DCR_DAC_EN_SHIFT |
| #define | LPCMP_DCR_DAC_EN(x) |
| #define | LPCMP_DCR_DAC_HPMD_MASK |
| #define | LPCMP_DCR_DAC_HPMD_SHIFT |
| #define | LPCMP_DCR_DAC_HPMD(x) |
| #define | LPCMP_DCR_VRSEL_MASK |
| #define | LPCMP_DCR_VRSEL_SHIFT |
| #define | LPCMP_DCR_VRSEL(x) |
| #define | LPCMP_DCR_DAC_DATA_MASK |
| #define | LPCMP_DCR_DAC_DATA_SHIFT |
| #define | LPCMP_DCR_DAC_DATA(x) |
IER - Interrupt Enable | |
| #define | LPCMP_IER_CFR_IE_MASK |
| #define | LPCMP_IER_CFR_IE_SHIFT |
| #define | LPCMP_IER_CFR_IE(x) |
| #define | LPCMP_IER_CFF_IE_MASK |
| #define | LPCMP_IER_CFF_IE_SHIFT |
| #define | LPCMP_IER_CFF_IE(x) |
| #define | LPCMP_IER_RRF_IE_MASK |
| #define | LPCMP_IER_RRF_IE_SHIFT |
| #define | LPCMP_IER_RRF_IE(x) |
CSR - Comparator Status | |
| #define | LPCMP_CSR_CFR_MASK |
| #define | LPCMP_CSR_CFR_SHIFT |
| #define | LPCMP_CSR_CFR(x) |
| #define | LPCMP_CSR_CFF_MASK |
| #define | LPCMP_CSR_CFF_SHIFT |
| #define | LPCMP_CSR_CFF(x) |
| #define | LPCMP_CSR_RRF_MASK |
| #define | LPCMP_CSR_RRF_SHIFT |
| #define | LPCMP_CSR_RRF(x) |
| #define | LPCMP_CSR_COUT_MASK |
| #define | LPCMP_CSR_COUT_SHIFT |
| #define | LPCMP_CSR_COUT(x) |
RRCR0 - Round Robin Control Register 0 | |
| #define | LPCMP_RRCR0_RR_EN_MASK |
| #define | LPCMP_RRCR0_RR_EN_SHIFT |
| #define | LPCMP_RRCR0_RR_EN(x) |
| #define | LPCMP_RRCR0_RR_TRG_SEL_MASK |
| #define | LPCMP_RRCR0_RR_TRG_SEL_SHIFT |
| #define | LPCMP_RRCR0_RR_TRG_SEL(x) |
| #define | LPCMP_RRCR0_RR_EXTTRG_SEL_MASK |
| #define | LPCMP_RRCR0_RR_EXTTRG_SEL_SHIFT |
| #define | LPCMP_RRCR0_RR_EXTTRG_SEL(x) |
| #define | LPCMP_RRCR0_RR_NSAM_MASK |
| #define | LPCMP_RRCR0_RR_NSAM_SHIFT |
| #define | LPCMP_RRCR0_RR_NSAM(x) |
| #define | LPCMP_RRCR0_RR_CLK_SEL_MASK |
| #define | LPCMP_RRCR0_RR_CLK_SEL_SHIFT |
| #define | LPCMP_RRCR0_RR_CLK_SEL(x) |
| #define | LPCMP_RRCR0_RR_INITMOD_MASK |
| #define | LPCMP_RRCR0_RR_INITMOD_SHIFT |
| #define | LPCMP_RRCR0_RR_INITMOD(x) |
| #define | LPCMP_RRCR0_RR_SAMPLE_CNT_MASK |
| #define | LPCMP_RRCR0_RR_SAMPLE_CNT_SHIFT |
| #define | LPCMP_RRCR0_RR_SAMPLE_CNT(x) |
| #define | LPCMP_RRCR0_RR_SAMPLE_THRESHOLD_MASK |
| #define | LPCMP_RRCR0_RR_SAMPLE_THRESHOLD_SHIFT |
| #define | LPCMP_RRCR0_RR_SAMPLE_THRESHOLD(x) |
RRCR1 - Round Robin Control Register 1 | |
| #define | LPCMP_RRCR1_RR_CH0EN_MASK |
| #define | LPCMP_RRCR1_RR_CH0EN_SHIFT |
| #define | LPCMP_RRCR1_RR_CH0EN(x) |
| #define | LPCMP_RRCR1_RR_CH1EN_MASK |
| #define | LPCMP_RRCR1_RR_CH1EN_SHIFT |
| #define | LPCMP_RRCR1_RR_CH1EN(x) |
| #define | LPCMP_RRCR1_RR_CH2EN_MASK |
| #define | LPCMP_RRCR1_RR_CH2EN_SHIFT |
| #define | LPCMP_RRCR1_RR_CH2EN(x) |
| #define | LPCMP_RRCR1_RR_CH3EN_MASK |
| #define | LPCMP_RRCR1_RR_CH3EN_SHIFT |
| #define | LPCMP_RRCR1_RR_CH3EN(x) |
| #define | LPCMP_RRCR1_RR_CH4EN_MASK |
| #define | LPCMP_RRCR1_RR_CH4EN_SHIFT |
| #define | LPCMP_RRCR1_RR_CH4EN(x) |
| #define | LPCMP_RRCR1_RR_CH5EN_MASK |
| #define | LPCMP_RRCR1_RR_CH5EN_SHIFT |
| #define | LPCMP_RRCR1_RR_CH5EN(x) |
| #define | LPCMP_RRCR1_RR_CH6EN_MASK |
| #define | LPCMP_RRCR1_RR_CH6EN_SHIFT |
| #define | LPCMP_RRCR1_RR_CH6EN(x) |
| #define | LPCMP_RRCR1_RR_CH7EN_MASK |
| #define | LPCMP_RRCR1_RR_CH7EN_SHIFT |
| #define | LPCMP_RRCR1_RR_CH7EN(x) |
| #define | LPCMP_RRCR1_FIXP_MASK |
| #define | LPCMP_RRCR1_FIXP_SHIFT |
| #define | LPCMP_RRCR1_FIXP(x) |
| #define | LPCMP_RRCR1_FIXCH_MASK |
| #define | LPCMP_RRCR1_FIXCH_SHIFT |
| #define | LPCMP_RRCR1_FIXCH(x) |
RRCSR - Round Robin Control and Status | |
| #define | LPCMP_RRCSR_RR_CH0OUT_MASK |
| #define | LPCMP_RRCSR_RR_CH0OUT_SHIFT |
| #define | LPCMP_RRCSR_RR_CH0OUT(x) |
| #define | LPCMP_RRCSR_RR_CH1OUT_MASK |
| #define | LPCMP_RRCSR_RR_CH1OUT_SHIFT |
| #define | LPCMP_RRCSR_RR_CH1OUT(x) |
| #define | LPCMP_RRCSR_RR_CH2OUT_MASK |
| #define | LPCMP_RRCSR_RR_CH2OUT_SHIFT |
| #define | LPCMP_RRCSR_RR_CH2OUT(x) |
| #define | LPCMP_RRCSR_RR_CH3OUT_MASK |
| #define | LPCMP_RRCSR_RR_CH3OUT_SHIFT |
| #define | LPCMP_RRCSR_RR_CH3OUT(x) |
| #define | LPCMP_RRCSR_RR_CH4OUT_MASK |
| #define | LPCMP_RRCSR_RR_CH4OUT_SHIFT |
| #define | LPCMP_RRCSR_RR_CH4OUT(x) |
| #define | LPCMP_RRCSR_RR_CH5OUT_MASK |
| #define | LPCMP_RRCSR_RR_CH5OUT_SHIFT |
| #define | LPCMP_RRCSR_RR_CH5OUT(x) |
| #define | LPCMP_RRCSR_RR_CH6OUT_MASK |
| #define | LPCMP_RRCSR_RR_CH6OUT_SHIFT |
| #define | LPCMP_RRCSR_RR_CH6OUT(x) |
| #define | LPCMP_RRCSR_RR_CH7OUT_MASK |
| #define | LPCMP_RRCSR_RR_CH7OUT_SHIFT |
| #define | LPCMP_RRCSR_RR_CH7OUT(x) |
RRSR - Round Robin Status | |
| #define | LPCMP_RRSR_RR_CH0F_MASK |
| #define | LPCMP_RRSR_RR_CH0F_SHIFT |
| #define | LPCMP_RRSR_RR_CH0F(x) |
| #define | LPCMP_RRSR_RR_CH1F_MASK |
| #define | LPCMP_RRSR_RR_CH1F_SHIFT |
| #define | LPCMP_RRSR_RR_CH1F(x) |
| #define | LPCMP_RRSR_RR_CH2F_MASK |
| #define | LPCMP_RRSR_RR_CH2F_SHIFT |
| #define | LPCMP_RRSR_RR_CH2F(x) |
| #define | LPCMP_RRSR_RR_CH3F_MASK |
| #define | LPCMP_RRSR_RR_CH3F_SHIFT |
| #define | LPCMP_RRSR_RR_CH3F(x) |
| #define | LPCMP_RRSR_RR_CH4F_MASK |
| #define | LPCMP_RRSR_RR_CH4F_SHIFT |
| #define | LPCMP_RRSR_RR_CH4F(x) |
| #define | LPCMP_RRSR_RR_CH5F_MASK |
| #define | LPCMP_RRSR_RR_CH5F_SHIFT |
| #define | LPCMP_RRSR_RR_CH5F(x) |
| #define | LPCMP_RRSR_RR_CH6F_MASK |
| #define | LPCMP_RRSR_RR_CH6F_SHIFT |
| #define | LPCMP_RRSR_RR_CH6F(x) |
| #define | LPCMP_RRSR_RR_CH7F_MASK |
| #define | LPCMP_RRSR_RR_CH7F_SHIFT |
| #define | LPCMP_RRSR_RR_CH7F(x) |
RRCR2 - Round Robin Control Register 2 | |
| #define | LPCMP_RRCR2_RR_TIMER_RELOAD_MASK |
| #define | LPCMP_RRCR2_RR_TIMER_RELOAD_SHIFT |
| #define | LPCMP_RRCR2_RR_TIMER_RELOAD(x) |
| #define | LPCMP_RRCR2_RR_TIMER_EN_MASK |
| #define | LPCMP_RRCR2_RR_TIMER_EN_SHIFT |
| #define | LPCMP_RRCR2_RR_TIMER_EN(x) |
| #define LPCMP_VERID_FEATURE | ( | x | ) |
FEATURE - Feature Specification Number 0b0000000000000001..Round robin feature
| #define LPCMP_VERID_MINOR | ( | x | ) |
MINOR - Minor Version Number
| #define LPCMP_VERID_MAJOR | ( | x | ) |
MAJOR - Major Version Number
| #define LPCMP_PARAM_DAC_RES | ( | x | ) |
DAC_RES - DAC Resolution 0b0000..4-bit DAC 0b0001..6-bit DAC 0b0010..8-bit DAC 0b0011..10-bit DAC 0b0100..12-bit DAC 0b0101..14-bit DAC 0b0110..16-bit DAC
| #define LPCMP_CCR0_CMP_EN | ( | x | ) |
CMP_EN - Comparator Enable 0b0..Disables (The analog logic remains off and consumes no power.) 0b1..Enables
| #define LPCMP_CCR0_CMP_STOP_EN | ( | x | ) |
CMP_STOP_EN - Comparator Deep sleep Mode Enable 0b0..Disable the analog comparator regardless of CMP_EN. 0b1..Allows CMP_EN to enable the analog comparator.
| #define LPCMP_CCR1_WINDOW_EN | ( | x | ) |
WINDOW_EN - Windowing Enable 0b0..Disables 0b1..Enables
| #define LPCMP_CCR1_SAMPLE_EN | ( | x | ) |
SAMPLE_EN - Sampling Enable 0b0..Disables 0b1..Enables
| #define LPCMP_CCR1_DMA_EN | ( | x | ) |
DMA_EN - DMA Enable 0b0..Disables 0b1..Enables
| #define LPCMP_CCR1_COUT_INV | ( | x | ) |
COUT_INV - Comparator Invert 0b0..Do not invert 0b1..Invert
| #define LPCMP_CCR1_COUT_SEL | ( | x | ) |
COUT_SEL - Comparator Output Select 0b0..Use COUT (filtered) 0b1..Use COUTA (unfiltered)
| #define LPCMP_CCR1_COUT_PEN | ( | x | ) |
COUT_PEN - Comparator Output Pin Enable 0b0..Not available 0b1..Available
| #define LPCMP_CCR1_COUTA_OWEN | ( | x | ) |
COUTA_OWEN - COUTA_OW Enable 0b0..COUTA holds the last sampled value. 0b1..Enables the COUTA signal value to be defined by COUTA_OW.
| #define LPCMP_CCR1_COUTA_OW | ( | x | ) |
COUTA_OW - COUTA Output Level for Closed Window 0b0..COUTA is 0 0b1..COUTA is 1
| #define LPCMP_CCR1_WINDOW_INV | ( | x | ) |
WINDOW_INV - WINDOW/SAMPLE Signal Invert 0b0..Do not invert 0b1..Invert
| #define LPCMP_CCR1_WINDOW_CLS | ( | x | ) |
WINDOW_CLS - COUT Event Window Close 0b0..COUT event cannot close the window 0b1..COUT event can close the window
| #define LPCMP_CCR1_EVT_SEL | ( | x | ) |
EVT_SEL - COUT Event Select 0b00..Rising edge 0b01..Falling edge 0b1x..Both edges
| #define LPCMP_CCR1_FUNC_CLK_SEL | ( | x | ) |
FUNC_CLK_SEL - Functional Clock Source Select 0b00..Select functional clock source 0 0b01..Select functional clock source 1 0b10..Select functional clock source 2 0b11..Select functional clock source 3
| #define LPCMP_CCR1_FILT_CNT | ( | x | ) |
FILT_CNT - Filter Sample Count 0b000..Filter is bypassed: COUT = COUTA 0b001..1 consecutive sample (Comparator output is simply sampled.) 0b010..2 consecutive samples 0b011..3 consecutive samples 0b100..4 consecutive samples 0b101..5 consecutive samples 0b110..6 consecutive samples 0b111..7 consecutive samples
| #define LPCMP_CCR1_FILT_PER | ( | x | ) |
FILT_PER - Filter Sample Period
| #define LPCMP_CCR2_CMP_HPMD | ( | x | ) |
CMP_HPMD - CMP High Power Mode Select 0b0..Low power (speed) comparison mode 0b1..High power (speed) comparison mode
| #define LPCMP_CCR2_CMP_NPMD | ( | x | ) |
CMP_NPMD - CMP Nano Power Mode Select 0b0..Disables CMP Nano power mode. CCR2[CMP_HPMD] determines the mode for the comparator. 0b1..Enables CMP Nano power mode.
| #define LPCMP_CCR2_HYSTCTR | ( | x | ) |
HYSTCTR - Comparator Hysteresis Control 0b00..Level 0 0b01..Level 1 0b10..Level 2 0b11..Level 3
| #define LPCMP_CCR2_PSEL | ( | x | ) |
PSEL - Plus Input MUX Select 0b000..Input 0p 0b001..Input 1p 0b010..Input 2p 0b011..Input 3p 0b100..Input 4p 0b101..Input 5p 0b110..Reserved 0b111..Internal DAC output
| #define LPCMP_CCR2_MSEL | ( | x | ) |
MSEL - Minus Input MUX Select 0b000..Input 0m 0b001..Input 1m 0b010..Input 2m 0b011..Input 3m 0b100..Input 4m 0b101..Input 5m 0b110..Reserved 0b111..Internal DAC output
| #define LPCMP_DCR_DAC_EN | ( | x | ) |
DAC_EN - DAC Enable 0b0..Disables 0b1..Enables
| #define LPCMP_DCR_DAC_HPMD | ( | x | ) |
DAC_HPMD - DAC High Power Mode Select 0b0..Disables 0b1..Enables
| #define LPCMP_DCR_VRSEL | ( | x | ) |
VRSEL - DAC Reference High Voltage Source Select 0b0..vrefh0 0b1..vrefh1
| #define LPCMP_DCR_DAC_DATA | ( | x | ) |
DAC_DATA - DAC Output Voltage Select
| #define LPCMP_IER_CFR_IE | ( | x | ) |
CFR_IE - Comparator Flag Rising Interrupt Enable 0b0..Disables the comparator flag rising interrupt. 0b1..Enables the comparator flag rising interrupt when CFR is set.
| #define LPCMP_IER_CFF_IE | ( | x | ) |
CFF_IE - Comparator Flag Falling Interrupt Enable 0b0..Disables the comparator flag falling interrupt. 0b1..Enables the comparator flag falling interrupt when CFF is set.
| #define LPCMP_IER_RRF_IE | ( | x | ) |
RRF_IE - Round-Robin Flag Interrupt Enable 0b0..Disables the round-robin flag interrupt. 0b1..Enables the round-robin flag interrupt when the comparison result changes for a given channel.
| #define LPCMP_CSR_CFR | ( | x | ) |
CFR - Analog Comparator Flag Rising 0b0..Not detected 0b1..Detected
| #define LPCMP_CSR_CFF | ( | x | ) |
CFF - Analog Comparator Flag Falling 0b0..Not detected 0b1..Detected
| #define LPCMP_CSR_RRF | ( | x | ) |
RRF - Round-Robin Flag 0b0..Not detected 0b1..Detected
| #define LPCMP_CSR_COUT | ( | x | ) |
COUT - Analog Comparator Output
| #define LPCMP_RRCR0_RR_EN | ( | x | ) |
RR_EN - Round-Robin Enable 0b1..Enables 0b0..Disables
| #define LPCMP_RRCR0_RR_TRG_SEL | ( | x | ) |
RR_TRG_SEL - Round-Robin Trigger Select 0b0..External trigger 0b1..Internal trigger
| #define LPCMP_RRCR0_RR_EXTTRG_SEL | ( | x | ) |
RR_EXTTRG_SEL - Select the External Trigger Source 0b0000..Select external trigger source 0 0b0001..Select external trigger source 1 0b0010..Select external trigger source 2 0b0011..Select external trigger source 3 0b0100..Select external trigger source 4 0b0101..Select external trigger source 5 0b0110..Select external trigger source 6 0b0111..Select external trigger source 7 0b1000..Select external trigger source 8 0b1001..Select external trigger source 9 0b1010..Select external trigger source 10 0b1011..Select external trigger source 11 0b1100..Select external trigger source 12 0b1101..Select external trigger source 13 0b1110..Select external trigger source 14 0b1111..Select external trigger source 15
| #define LPCMP_RRCR0_RR_NSAM | ( | x | ) |
RR_NSAM - Number of Sample Clocks 0b00..0 clock 0b01..1 clock 0b10..2 clocks 0b11..3 clocks
| #define LPCMP_RRCR0_RR_CLK_SEL | ( | x | ) |
RR_CLK_SEL - Round Robin Clock Source Select 0b00..Select Round Robin clock Source 0 0b01..Select Round Robin clock Source 1 0b10..Select Round Robin clock Source 2 0b11..Select Round Robin clock Source 3
| #define LPCMP_RRCR0_RR_INITMOD | ( | x | ) |
RR_INITMOD - Initialization Delay Modulus 0b000000..63 cycles (same as 111111b) 0b000001-0b111111..1 to 63 cycles
| #define LPCMP_RRCR0_RR_SAMPLE_CNT | ( | x | ) |
RR_SAMPLE_CNT - Number of Sample for One Channel 0b0000..1 samples 0b0001..2 samples 0b0010..3 samples 0b0011..4 samples 0b0100..5 samples 0b0101..6 samples 0b0110..7 samples 0b0111..8 samples 0b1000..9 samples 0b1001..10 samples 0b1010..11 samples 0b1011..12 samples 0b1100..13 samples 0b1101..14 samples 0b1110..15 samples 0b1111..16 samples
| #define LPCMP_RRCR0_RR_SAMPLE_THRESHOLD | ( | x | ) |
RR_SAMPLE_THRESHOLD - Sample Time Threshold 0b0000..At least 1 sampled "1", the final result is "1" 0b0001..At least 2 sampled "1", the final result is "1" 0b0010..At least 3 sampled "1", the final result is "1" 0b0011..At least 4 sampled "1", the final result is "1" 0b0100..At least 5 sampled "1", the final result is "1" 0b0101..At least 6 sampled "1", the final result is "1" 0b0110..At least 7 sampled "1", the final result is "1" 0b0111..At least 8 sampled "1", the final result is "1" 0b1000..At least 9 sampled "1", the final result is "1" 0b1001..At least 10 sampled "1", the final result is "1" 0b1010..At least 11 sampled "1", the final result is "1" 0b1011..At least 12 sampled "1", the final result is "1" 0b1100..At least 13 sampled "1", the final result is "1" 0b1101..At least 14 sampled "1", the final result is "1" 0b1110..At least 15 sampled "1", the final result is "1" 0b1111..At least 16 sampled "1", the final result is "1"
| #define LPCMP_RRCR1_RR_CH0EN | ( | x | ) |
RR_CH0EN - Channel 0 Input Enable in Trigger Mode 0b1..Enables 0b0..Disables
| #define LPCMP_RRCR1_RR_CH1EN | ( | x | ) |
RR_CH1EN - Channel 1 Input Enable in Trigger Mode 0b1..Enables 0b0..Disables
| #define LPCMP_RRCR1_RR_CH2EN | ( | x | ) |
RR_CH2EN - Channel 2 Input Enable in Trigger Mode 0b1..Enables 0b0..Disables
| #define LPCMP_RRCR1_RR_CH3EN | ( | x | ) |
RR_CH3EN - Channel 3 Input Enable in Trigger Mode 0b1..Enables 0b0..Disables
| #define LPCMP_RRCR1_RR_CH4EN | ( | x | ) |
RR_CH4EN - Channel 4 Input Enable in Trigger Mode 0b1..Enables 0b0..Disables
| #define LPCMP_RRCR1_RR_CH5EN | ( | x | ) |
RR_CH5EN - Channel 5 Input Enable in Trigger Mode 0b1..Enables 0b0..Disables
| #define LPCMP_RRCR1_RR_CH6EN | ( | x | ) |
RR_CH6EN - Channel 6 Input Enable in Trigger Mode 0b1..Enables 0b0..Disables
| #define LPCMP_RRCR1_RR_CH7EN | ( | x | ) |
RR_CH7EN - Channel 7 Input Enable in Trigger Mode 0b1..Enables 0b0..Disables
| #define LPCMP_RRCR1_FIXP | ( | x | ) |
FIXP - Fixed Port 0b0..Fix the plus port. Sweep only the inputs to the minus port. 0b1..Fix the minus port. Sweep only the inputs to the plus port.
| #define LPCMP_RRCR1_FIXCH | ( | x | ) |
FIXCH - Fixed Channel Select 0b000..Channel 0 0b001..Channel 1 0b010..Channel 2 0b011..Channel 3 0b100..Channel 4 0b101..Channel 5 0b110..Channel 6 0b111..Channel 7
| #define LPCMP_RRCSR_RR_CH0OUT | ( | x | ) |
RR_CH0OUT - Comparison Result for Channel 0
| #define LPCMP_RRCSR_RR_CH1OUT | ( | x | ) |
RR_CH1OUT - Comparison Result for Channel 1
| #define LPCMP_RRCSR_RR_CH2OUT | ( | x | ) |
RR_CH2OUT - Comparison Result for Channel 2
| #define LPCMP_RRCSR_RR_CH3OUT | ( | x | ) |
RR_CH3OUT - Comparison Result for Channel 3
| #define LPCMP_RRCSR_RR_CH4OUT | ( | x | ) |
RR_CH4OUT - Comparison Result for Channel 4
| #define LPCMP_RRCSR_RR_CH5OUT | ( | x | ) |
RR_CH5OUT - Comparison Result for Channel 5
| #define LPCMP_RRCSR_RR_CH6OUT | ( | x | ) |
RR_CH6OUT - Comparison Result for Channel 6
| #define LPCMP_RRCSR_RR_CH7OUT | ( | x | ) |
RR_CH7OUT - Comparison Result for Channel 7
| #define LPCMP_RRSR_RR_CH0F | ( | x | ) |
RR_CH0F - Channel 0 Input Changed Flag 0b0..Not different 0b1..Different
| #define LPCMP_RRSR_RR_CH1F | ( | x | ) |
RR_CH1F - Channel 1 Input Changed Flag 0b0..Not different 0b1..Different
| #define LPCMP_RRSR_RR_CH2F | ( | x | ) |
RR_CH2F - Channel 2 Input Changed Flag 0b0..Not different 0b1..Different
| #define LPCMP_RRSR_RR_CH3F | ( | x | ) |
RR_CH3F - Channel 3 Input Changed Flag 0b0..Not different 0b1..Different
| #define LPCMP_RRSR_RR_CH4F | ( | x | ) |
RR_CH4F - Channel 4 Input Changed Flag 0b0..Not different 0b1..Different
| #define LPCMP_RRSR_RR_CH5F | ( | x | ) |
RR_CH5F - Channel 5 Input Changed Flag 0b0..Not different 0b1..Different
| #define LPCMP_RRSR_RR_CH6F | ( | x | ) |
RR_CH6F - Channel 6 Input Changed Flag 0b0..Not different 0b1..Different
| #define LPCMP_RRSR_RR_CH7F | ( | x | ) |
RR_CH7F - Channel 7 Input Changed Flag 0b0..Not different 0b1..Different
| #define LPCMP_RRCR2_RR_TIMER_RELOAD | ( | x | ) |
RR_TIMER_RELOAD - Number of Sample Clocks
| #define LPCMP_RRCR2_RR_TIMER_EN | ( | x | ) |
RR_TIMER_EN - Round-Robin Internal Timer Enable 0b0..Disables 0b1..Enables