This is for 16F1827 chip I use:
HTH,Code:CCP1CON = %00111100 'Control of CCPx modules CCP2CON = %00000000 CCP3CON = %00000000 CCP4CON = %00000000 CM1CON0.7=0 CM2CON0.7=0 CPSCON0 = 0 CPSCON1 = 0 DEFINE CCP1_REG PORTB DEFINE CCP1_BIT 3 ccptmrs=0 pr2=249 ccp1con=$0C t2con=%00000110 DACCON0 = 0
Ioannis
Bookmarks