Hello liak,
I use the big brother of this chip 18F4620 in a major project that uses config CCPM2X = PORTBE and it is 100% reliable.
Have a look here:-
http://www.microchip.com/stellent/idcpl ... odeId=2045
This is the errata document page which does say the CCp module can have an issue if you are using a certain mode, but I do not think it applies to you and my use is ok.
Here is my config that works for you to try:-
Code: Select all
Config
OSC=HSPLL, 'enable PLL for 16MHz with 4 MHz crystal
FCMEN=OFF,
IESO=OFF,
PWRT=ON,
BOREN=OFF,
BORV=3,
WDT=OFF,
WDTPS=128,
MCLRE=ON, 'allow MCLRE to be used as hard reset
LPT1OSC=OFF, 'TIMER1 external oscilator
PBADEN=OFF, 'PORTB .4 to.0 reset type, off=digital, on=analogue
CCP2MX=PORTBE, 'CCP2 output, PORTBE=RB3, PORTC=RC1
STVREN=OFF, 'stack overflow reset
LVP=OFF, 'low voltage ICSP
XINST=OFF, 'extended instruction set
DEBUG=OFF,
CP0=OFF, 'memory protection
CP1=OFF,
CP2=OFF,
CP3=OFF,
CPB=OFF,
CPD=OFF,
WRT0=OFF,
WRT1=OFF,
WRT2=OFF,
WRT3=OFF,
WRTB=OFF,
WRTC=OFF,
WRTD=OFF,
EBTR0=OFF,
EBTR1=OFF,
EBTR2=OFF,
EBTR3=OFF,
EBTRB=OFF