pic24_comparator.h File Reference

Go to the source code of this file.

Defines

#define COMP_CVRCON_VAL   0x0000
#define COMP_CMCON_VAL   0x0000
#define CMP_IDLE_STOP   0x8000
#define CMP_IDLE_CON   0x0000
#define CMP_IDLE_MASK   (~CMP_IDLE_STOP)
#define CMP2_CHANGE_STATE   0x2000
#define CMP2_NO_CHANGE   0x0000
#define CMP2_STATE_MASK   (~CMP2_CHANGE_STATE )
#define CMP1_CHANGE_STATE   0x1000
#define CMP1_NO_CHANGE   0x0000
#define CMP1_ENBL_DSBL_MASK   (~CMP1_CHANGE_STATE )
#define CMP2_ENABLE   0x0800
#define CMP2_DISABLE   0x0000
#define CMP2_ENBL_DSBL_MASK   (~CMP2_ENABLE)
#define CMP1_ENABLE   0x0400
#define CMP1_DISABLE   0x0000
#define CMP1_STATE_MASK   (~CMP1_ENABLE)
#define CMP2_OUTPUT_ENABLE   0x0200
#define CMP2_OUTPUT_DISABLE   0x0000
#define CMP2_OUTPUT_MASK   (~CMP2_OUTPUT_ENABLE)
#define CMP1_OUTPUT_ENABLE   0x0100
#define CMP1_OUTPUT_DISABLE   0x0000
#define CMP1_OUTPUT_MASK   (~CMP1_OUTPUT_ENABLE)
#define CMP2_INV_OUTPUT   0x0020
#define CMP2_NORMAL_OUTPUT   0x0000
#define CMP2_INV_OUTPUT_MASK   (~CMP2_INV_OUTPUT)
#define CMP1_INV_OUTPUT   0x0010
#define CMP1_NORMAL_OUTPUT   0x0000
#define CMP1_INV_OUTPUT_MASK   (~CMP1_INV_OUTPUT)
#define CMP2_NEG_IP_VIN_POS   0x0008
#define CMP2_NEG_IP_VIN_NEG   0x0000
#define CMP2_NEG_IP_MASK   (~CMP2_NEG_IP_VIN_POS)
#define CMP2_POS_IP_VIN_POS   0x0004
#define CMP2_POS_IP_CV_REF   0x0000
#define CMP2_POS_IP_MASK   (~CMP2_POS_IP_VIN_POS)
#define CMP1_NEG_IP_VIN_POS   0x0002
#define CMP1_NEG_IP_VIN_NEG   0x0000
#define CMP1_NEG_IP_MASK   (~CMP1_NEG_IP_VIN_POS)
#define CMP1_POS_IP_VIN_POS   0x0001
#define CMP1_POS_IP_CV_REF   0x0000
#define CMP1_POS_IP_MASK   (~CMP1_POS_IP_VIN_POS)
#define CMP_VREF_ENABLE   0x0080
#define CMP_VREF_DISABLE   0x0000
#define CMP1_VREF_MASK   (~CMP_VREF_ENABLE)
#define CMP_VREF_OUTPUT_ENABLE   0x0040
#define CMP_VREF_OUTPUT_DISABLE   0x0000
#define CMP_VREF_OUTPUT_MASK   (~CMP_VREF_OUTPUT_ENABLE)
#define CMP_VREF_SELECT_24_STEPS   0x0020
#define CMP_VREF_SELECT_32_STEPS   0x0000
#define CMP_VREF_STEP_SELECT_MASK   (~CMP_VREF_SELECT_24_STEPS)
#define CMP_VRSRC_VREF_VREF   0x0010
#define CMP_VRSRC_AVDD_AVSS   0x0000
#define CMP_VRSRC_MASK   (~CMP_VRSRC_VREF_VREF)
#define CMP_0P0_CVRR_1   0x0020
#define CMP_0P04_CVRR_1   0x0021
#define CMP_0P08_CVRR_1   0x0022
#define CMP_0P12_CVRR_1   0x0023
#define CMP_0P16_CVRR_1   0x0024
#define CMP_0P20_CVRR_1   0x0025
#define CMP_0P25_CVRR_1   0x0026
#define CMP_0P29_CVRR_1   0x0027
#define CMP_0P33_CVRR_1   0x0028
#define CMP_0P37_CVRR_1   0x0029
#define CMP_0P41_CVRR_1   0x002A
#define CMP_0P45_CVRR_1   0x002B
#define CMP_0P50_CVRR_1   0x002C
#define CMP_0P54_CVRR_1   0x002D
#define CMP_0P58_CVRR_1   0x002E
#define CMP_0P62_CVRR_1   0x002F
#define CMP_0P25_CVRR_0   0x0000
#define CMP_0P28_CVRR_0   0x0001
#define CMP_0P31_CVRR_0   0x0002
#define CMP_0P34_CVRR_0   0x0003
#define CMP_0P37_CVRR_0   0x0004
#define CMP_0P40_CVRR_0   0x0005
#define CMP_0P43_CVRR_0   0x0006
#define CMP_0P46_CVRR_0   0x0007
#define CMP_0P50_CVRR_0   0x0008
#define CMP_0P53_CVRR_0   0x0009
#define CMP_0P56_CVRR_0   0x000A
#define CMP_0P59_CVRR_0   0x000B
#define CMP_0P62_CVRR_0   0x000C
#define CMP_0P65_CVRR_0   0x000D
#define CMP_0P68_CVRR_0   0x000E
#define CMP_0P71_CVRR_0   0x000F


Detailed Description

Macros to support comparator module configuration

Definition in file pic24_comparator.h.


Generated on Mon Oct 18 07:40:48 2010 for Python-on-a-chip by  doxygen 1.5.9