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,

    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.

  2. #2
    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.

  3. #3
    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.

  4. #4
    Join Date
    Sep 2010
    Posts
    23


    Did you find this post helpful? Yes | No

    Default

    HERE ARE THE CONFIG BITS



    Thanks.

  5. #5
    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.

  6. #6
    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.

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


    Did you find this post helpful? Yes | No

    Default

    Code:
    DEFINE OSC 4
     @ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_OFF & _BODEN_OFF & _CP_OFF
    I think that is correct, I am not in the shop...
    And comment out the *.inc file int your PBP directory.

    Now when you look at the configs in MPLAB check the box set fuses in code. That dialog box will now tell you what the fuses are set for after you compile. This is a good way to make sure things are like you want.
    Dave
    Always wear safety glasses while programming.

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