Hi,
Your PIC config sequence ... just is missing !!!
Try to add to your Code top
Code:
'******************************************************************************
'Configuration
'******************************************************************************
'Program Configuration Register 1
@ __CONFIG _CONFIG1, _CP_OFF & _CCP1_RB0 & _DEBUG_OFF & _WRT_PROTECT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _MCLR_ON & _PWRTE_ON & _WDT_ON & _HS_OSC
'Program Configuration Register 2
@ __CONFIG _CONFIG2, _IESO_OFF & _FCMEN_OFF
...
' Pour 16F88
ANSEL = 0
ADCON0 = 0
ADCON1 = 0
CMCON = 7
CVRCON = 0
CCP1CON = 0
you just have to translate the config lines for MCS ... if you use it.
Alain
Last edited by Acetronics2; - 3rd September 2009 at 10:02.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks