Cant get my PIC running


Closed Thread
Results 1 to 14 of 14

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Welcome,

    My assembly is really bad, but this might be the problem.
    Code:
    Loop NOP
    goto Loop
    I think it is stuck in a NOP loop.

    Try the PB demo
    http://www.melabs.com/pbpdemo.htm
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Aug 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Thanks for reply, i tried it but it didnt work In some samples i have seen this kind of infinite loop being used, i dont know why it is there.

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    With LVP enabled you need to ground RB3 for normal operation. If this pin is left floating or
    high it thinks the PIC is in programming mode, and will not execute your code.

    Read section 12.17 in your data sheet and look at note 4 in the grey area.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4
    Join Date
    Aug 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default Still not working

    Quote Originally Posted by Bruce View Post
    With LVP enabled you need to ground RB3 for normal operation. If this pin is left floating or
    high it thinks the PIC is in programming mode, and will not execute your code.

    Read section 12.17 in your data sheet and look at note 4 in the grey area.
    Oh yes, i remember reading that. I tried grounding it then and i forgot it when it didnt help. Now it is grounded again and will be that way but i got still no life from it Thanks for notification

    Im really starting to lose my mind with this chip

  5. #5
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    It can definitely be frustrating, but hang-in there...;O}

    Which device programmer are you using?

    Have you programmed another PIC succesfully with this programmer?

    Have you checked every single connection with a volt-meter?

    Have you tried another oscillator?

    A LOT of factors are involved. Even with a simple program like yours just
    making a pin high.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  6. #6
    Join Date
    Aug 2008
    Posts
    13


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    It can definitely be frustrating, but hang-in there...;O}
    Thanks

    The programmer is designed by engineers of a finnish IT magazine, which they released to the magazine and to the web. So it is not any common model. The program that uses the programmer is too written by them. http://www.mbnet.fi/nettijatkot/2002/03/rakentelu/

    first link under "Kopioitavat tiedostot" leads to circuit board model with EAGLE. The third is for Visual basic source code.

    In the program you can define only if watchdog is on, choose to verify written data and repair errors and choice of oscillator.

    This is first chip im trying to program and i have checked connections with multimeter.
    Unfortunately i dont have another oscillator.. and theres not oscilloscope to test it. One thing pops to my mind: the wires to oscillator are about 6cm long, could it be bad? As a poor student i have kind of home made breadboard and it is not too easy to solder close to the PIC.

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi Viberer,
    I do not use LVP, I have a six dollar JDM clone from Bulgaria I bought on eBay, and I use ICPROG a freeware programming software. Recently I began programming 16F88 for the first time, and my programmer balked and complained and refused to verify the chips, of coarse I thought, darned sample chips, darned cheap programmer . . . What I found works is to power the PIC from a 5 volt supply while programming and viola' it programs fine.
    HTH
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  8. #8
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Try the attached HEX file. If it works your programmer is probably OK. If not, check everything else.

    Note this will blink an LED on RB0.
    Attached Files Attached Files
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. pic first build test board not running
    By comwarrior in forum Schematics
    Replies: 11
    Last Post: - 29th June 2009, 16:48
  2. pic to pic ir link versus wired link : help please anyone
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 30th May 2008, 21:01
  3. Crystal osc running but PIC not using it
    By p15218 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 18th February 2007, 22:33
  4. Pic 16f628a running at lower than 4.5V
    By MegaADY in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th April 2005, 18:40
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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