Sorry Im using the same pic as Bruce example: 16F767

but Im having more basic problems, when I wasnt able to run the program as desired I started to remove parts of it, and now I see it does not work at all, so I may be missing some register configuration.

Here is the header of my program:


Code:
@ device pic16F767, wdt_on, intrc_osc_noclkout, mclr_off, protect_off


trisb   =%11000000
trisa   =%00000001
cmcon   =%00000111  'Comparators Off
intcon  =%10001000  'interrupts enable    

; Set CCP modules to PWM mode
CCP1CON = %00001100 ' Mode select = PWM
CCP2CON = %00001100 ' Mode select = PWM
CCP3CON = %00001100 ' Mode select = PWM

PR2 = $20    ; Set period 

pie2.1=0    ;disable interrupts on CCP3 (I think this should work)

; Set TMR2 up for 1:1 prescale & turn it on
T2CON = %00000100 ' TMR2 ON 1:1 prescale

porta=0:portb=0:portc=0

pause 100


high porta.1
pause 200
low porta.1
pause 200
high porta.1
pause 200
low porta.1

end
As you can see very basic, and I dont even started with the pwm/interrupts stuff.

I program the pic via ICSP and power it, it seems to run at turtle speed , the 200ms pause takes 28seconds...


What I am missing? Thanks