Help with pic 12f629


Closed Thread
Results 1 to 40 of 53

Hybrid View

  1. #1
    Join Date
    Sep 2010
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Hello All,

    After trying with different sensor, and switches, I have found out that the reason for the strange behaviour, or mal functioning of the code, it is due to the excess of current supply.

    I have notice that when you have the "finger" on any of the conections, the systems works!!, but if you remove the finger, starts to go nuts again.

    So at the moment i am supplying from 3v = 2xAA bateries. I will put a LM317 to allow only 250ma to go through.

    See if that helps.

    I will post my results.

    Best regards.

    And thank you all for your help.

  2. #2
    Join Date
    Sep 2010
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Hello All,

    I have put the voltage regulator, configured as a corrent regulator, allowing to pass only 250 mmA to the pic.

    Still does not work....if i put the finger on any conection...no problem, it works. But as soon as i remove my finger fron the conection, it goes dead.

    Why?...i thoght it was because the current, but this experiment has proved that it is not that. Hence, i am starting to believe that it may be because configuration in the pic.

    After having a closer look at the code, i notive pull ups where enable, should not that option be of sice i have pull up resistors in the circuit as shown, ?/...or is it the other way around?..

    Any body please?

    Ace?...

    Best regards.

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Sounds like you need a capacitor across VDD/VSS.
    You posted a schematic earlier but said this is what I have with this and that exception and you also said your were using the software to set the configs.

    If we knew what the configs are set to and how the chip is connected it may help.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Sep 2010
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    Hello Dave,

    thanks for your reply.

    I will post later a capture of the configuration bits.

    About the capacitor across, I have allready tried, but nothing.

    Regards.
    Thanks for your help.

  5. #5
    Join Date
    Sep 2010
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    HERE ARE THE CONFIG BITS



    Thanks.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I never liked setting the fuses with the programing software, always seemed to give trouble. So set the fuses in the *.inc or code space.

    Some things to try.
    Turn BODEN to OFF

    From the schematic posted the resistance at MCLR may be a little to high. Test by turning MCLRE to OFF.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Sep 2010
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    hi Dave,

    Excuse my ignorance, what lines do i put in the code exactly?

    thanks.

    Best regards.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts