Sounds like you are getting a handle on it and know what to look for.
BTW... Are you using Proton? Your code does not look like PicBasic.
Sounds like you are getting a handle on it and know what to look for.
BTW... Are you using Proton? Your code does not look like PicBasic.
Dave
Always wear safety glasses while programming.
Mack: Yes i am using Proton, haven't done any change in the circuit yet but seems I might be able to run it on external oscillator by adjusting capacitors on OSC1 & OSC2 ports. Just realized that the Microchip data sheet says 15 pf on each but I have 22 pf, this maybe the problem but why doesn't it run on internal RC, this has to be figured out.
You will probably have better luck on the Proton forum.
Here is how I would do it with Pic Basic Pro.
Code:DEFINE OSC 4 OSCCON = %01100000 @ __config _CONFIG1, _INTRC_IO & _WDT_OFF & _LVP_OFF & _MCLR_OFF &_CP_OFF
Dave
Always wear safety glasses while programming.
Hi, Newbee
Just open your PIC datasheet @ the OSC section, and you will discover the reset pin need a fast rising signal to act correctly ...
you also will find correct circuitry to pass by your supply lazyness ...
in other words, your supply is a bit slow when giving power, and the reset pin must be kept low till the supply voltage is established ...
that's why power supervisors like MC33064P / TC54 VN xx have been created.
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 " !!!
*****************************************
Acetronics thanks, I tried both things grounding the MCLRE pin while powering it up with battery instead of adopter supply. It didn't work, so I think the chip must be faulty. Whether on external oscillator or internal its behavior doesn't change.
(From post 4) .....I had even tried to power it with 9 V battery cellsWhat did you expect after the 9 volts test ?(From post 9)....so I think the chip must be faulty. Whether on external oscillator or internal its behavior doesn't change.
Al.
All progress began with an idea
Bookmarks