Programmer configuration...


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2008
    Location
    Charlottesville, VA
    Posts
    31

    Default Programmer configuration...

    I wasn't sure where to post this so I thought I would post it here... I seem to be having an issue with my PICs receiving my programs throught the melabs programmer... I write all my code using PBP in Microcode Studio... I then load the program's hex file into the melabs programmer with the following settings...

    Oscillator - HS (20MHz Resonator)
    Watchdog - Enabled
    Power-up Timer - Disabled
    Brown-out Reset - Enabled
    LVP - Enabled
    Flash Program Memory Write - All
    Code - Not Protected
    Data EEPROM - Not Protected

    I am using the U2 USB programmer.

    After the code is written, the PIC will not operate the way it is supposed to. If I write a simple Blink program, the PIC isn't blinking LEDs at all. I've checked all my wiring and double checked my code. The only conclusion I can come to is that I'm doing something wrong with the melabs programmers configuration as I write the code.

    PIC16F877A

    Any input is appreciated.

    Morris Beasley
    Manufacturing Test Technician
    B.S. Industrial Technology (2007)

    For more information on our robotics, please visit:
    http://www.ish-electronics.webs.com

  2. #2
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    654


    Did you find this post helpful? Yes | No

    Default Re: Programmer configuration...

    Try,

    LVP - disable

    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  3. #3
    Join Date
    Dec 2008
    Location
    Charlottesville, VA
    Posts
    31


    Did you find this post helpful? Yes | No

    Default Re: Programmer configuration...

    Sorry it has taken me so long to get back to you. I've been busy with work and haven't had much of an opportunity to work on projects at home. Now that I've found the time, I have tried programming a PIC16F877A with LVP disabled and it is working like a charm. Could you explain to me why a USB programmer isn't using LVP? I also had an error in my code that was causing an unrelated issue. That has been resolved as well. I thank you for your speedy response to my initial problem.

    Morris Beasley
    Manufacturing Test Technician
    B.S. Industrial Technology (2007)

    For more information on our robotics, please visit:
    http://www.ish-electronics.webs.com

  4. #4
    Join Date
    Nov 2007
    Location
    Lake Villa Il.
    Posts
    40


    Did you find this post helpful? Yes | No

    Default Re: Programmer configuration...

    Hi mcbeaslyjr,

    Go to MEL's website and root around there for more information. Also try to look it up in the MEL U2 programer manual. There is a good explanation there.
    It has to do with some chips PROGRAM at lower voltages ie 3.3 V. Also did you somehow accidentally TURN on LowVoltageProgramming?

    Sneaky-geek

  5. #5
    Join Date
    Dec 2008
    Location
    Charlottesville, VA
    Posts
    31


    Did you find this post helpful? Yes | No

    Default Re: Programmer configuration...

    Lol it is quite a possibility. Most of the time I'm working on this stuff I have my two small kids playing nearby... so it's quite easy to get distracted.

    Morris Beasley
    Manufacturing Test Technician
    B.S. Industrial Technology (2007)

    For more information on our robotics, please visit:
    http://www.ish-electronics.webs.com

  6. #6
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    654


    Did you find this post helpful? Yes | No

    Default Re: Programmer configuration...

    Quote Originally Posted by mcbeasleyjr View Post
    Could you explain to me why a USB programmer isn't using LVP?
    This next quote is taken from the Melabs web page, http://melabs.com/support/icsp.htm

    4. Make sure the "low-voltage programming" pin is pulled to ground. Low-voltage programming is not used by melabs programmers and should always be disabled in the configuration settings. Even so, the low-voltage programming pin (labeled PGM or LVP) should be pulled to ground when programming. If it is left floating or in a high condition, it may interfere with the programming process. We use a 100K resistor to pull the pin low when designing a board for ICSP. For most 16F series parts, RB3 doubles as the PGM pin. On 18F series, it is usually RB5 that needs to be low. Notable exceptions are the 16F62x and 16F64x family, which need RB4 to be pulled low.
    Robert
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

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