MicroChip Sample Code setting Current to a CMPDAC, DAC threshold which expect an voltage
- by jason hong
Sorry, the MicroChip Forum is very slow,I prefer to use overflow site to ask questions.
dsPIC33FJ06GS101/X02 and dsPIC33FJ16GSX02/X04 device
Sample Code
// configure comparator2
CMPCON2bits.CMPON = 1; // enable comparator
CMPCON2bits.INSEL = 1; // select CMP2B input pin (RB0)
CMPCON2bits.RANGE = 1; // select…