What exactly do you mean?PIC works fine when 5V supply is continues.
What exactly do you mean?PIC works fine when 5V supply is continues.
Dave
Always wear safety glasses while programming.
When I put 5V continues supply i.e. system already gets +ve & -Ve 5V and does not depend on button press for -Ve. Then lowering GP3 does result in serout data.
In other words, pic gets its 5V continues and all pins pulled high with 10K. Lowering any pin results in serout data.
___________________
WHY things get boring when they work just fine?
No, it is 5V only. i.e. +5V & 0V.
___________________
WHY things get boring when they work just fine?
Hi, FC
Reading that , ... I think you didn't show or tell us everything :My circuit only gets power when any button is pressed.
OR the code shown only is a part of ...
OR you should show the Hardware side ...
no way for us to help further not knowing what you did and how you did it ...
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 " !!!
*****************************************
Hi, I have attached the schematic and this is the complete code I have shown here. Hope to find a solution soon.
___________________
WHY things get boring when they work just fine?
The way I read this, from the data sheet
Every time you press the GPIO.3 button the chip will go into a continuous reset.Most other registers are reset to a “reset
state” on Power-on Reset (POR), MCLR Reset, WDT
Reset, and MCLR Reset during SLEEP
The chip never gets to read the configuration to see that MCLR is turned off.
Dave
Always wear safety glasses while programming.
Comments:
1) - There are no smoothing capacitors either side of the regulator - what are you using to provide the 12v supply. If it's simply a bridge rectifier off a transformer then the supply will need smootthing.
2) - I assume the diodes are LEDS ? If so then you would be better off putting them in series with the resistors rather than in parallel.
3) - If they are not LEDS, then try removing them from the circuit, there may be some reverse bias or something causing the current to flow and possibly short out the supply ?
As Dave has mentioned - It does sound as if you are constantly resetting the chip before it configures itself.
Bookmarks