Quote Originally Posted by Demon View Post
If it helps, these are the configs I use for my 18F46K22:

Code:
' 18F44K22 internal oscillator 64MHz

@   __CONFIG    _CONFIG1H, _FOSC_INTIO67_1H & _PLLCFG_ON_1H & _PRICLKEN_OFF_1H & _FCMEN_OFF_1H & _IESO_OFF_1H
@   __CONFIG    _CONFIG2L, _PWRTEN_ON_2L & _BOREN_SBORDIS_2L & _BORV_285_2L
@   __CONFIG    _CONFIG2H, _WDTEN_OFF_2H
@   __CONFIG    _CONFIG3H, _PBADEN_OFF_3H & _HFOFST_OFF_3H & _MCLRE_EXTMCLR_3H
@   __CONFIG    _CONFIG4L, _STVREN_ON_4L & _LVP_OFF_4L & _XINST_OFF_4L & _DEBUG_OFF_4L
DEFINE OSC 64
OSCCON  = %01110000
OSCCON2 = %10000000
OSCTUNE = %11000000
INTCON2 = %10000000

ANSELA = 0
ANSELB = 0
ANSELC = 0
ANSELD = 0
ANSELE = 0
TRISA = %00000000
TRISB = %00000000
TRISC = %00000000
TRISD = %00000000
TRISE = %00000000
Robert
Thank you very much for the configs. Still using the old style with underscores ? (Just kidding)...
I'm not sure about all the config parameters, but in my situation it's worth to give a try first thing in the morning. I have tried everything and my code seems ok, but no results. It drives me crazy to see it working with a basic stamp and a picaxe also but not with pic... I must be missing something very simple but well hidden

Thanks again and i'll post my results tomorrow... Any other thought is very welcomed...
Fanis