Hi, Rony ...
Could you, please,provide your program header ??? ( ALL configs + pins assigned )
Alain
Hi, Rony ...
Could you, please,provide your program header ??? ( ALL configs + pins assigned )
Alain
************************************************** ***********************
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 " !!!
*****************************************
DEFINE OSC 20
PORTA = %00000000
PORTB = %00000000
PORTC = %00000000
TRISA = %10111111
TRISB = %00000000
TRISC = %10100010
OPTION_REG = %00000111
INTCON = %00000000
ADCON0 = %00000000
ADCON1 = %00001111
ADCON2 = %00000000
CMCON = %00000111
T1CON = %00000000
TMR2 = 0
PR2 = 0
CCPR1L = 0
CCPR2L = 0
CCPR3L = 0
CCP1CON = 0
CCP2CON = 0
CCP3CON = 0
T2CON = 0
PIR1 = 0
PIR2 = 0
PIE1 = 0
PIE2 = 0
PCON = %00000011
Main:
....
goto main
i think it is not stoping, but it is going very very very slow.....
i forget to say:
i changed the Oscillator, i tried with a resonator, i put a 100nF on the + and - very near to the PIC, i tried with 8MHz ... without sucess![]()
![]()
i am using the following:
@ device pic16F767, hs_osc, wdt_off, pwrt_on, protect_on, mclr_off
lvp_off is not applicable with this PIC
=> same problem
Finally i found it,
"gadelhas" remark lets me think about the configuration ... thank you
there is a check box called "FCMEM" in the WinPIC800 programmer, when turning it OFF, it works, and all the rest will not affect this problem.
anyone knows what is this "FCMEM" that it must be off ??
thank you for all.
Rony
HI;
Try put this on the header, before the oscilator Define, and them test!
@ __config _HS_OSC & _LVP_OFF
Thanks and Regards;
Gadelhas
Bookmarks