PICkit2 Drving me nuts!!!!


Results 1 to 13 of 13

Threaded View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rosmadi View Post
    Hi joe,

    I just buy a PIC kit and try to program my development board..I manage to program the PIC using PIC Kit 2, but led is not going to blink..this is my code:

    DEFINE OSC 20

    LED VAR PORTC.5
    trisc = $00

    MAIN:
    HIGH LED
    PAUSE 500
    LOW LED
    PAUSE 500

    GOTO MAIN

    maybe there are mistakes in the code? For your information i use the code to program PIC16F877A. Communication from the PIC Kit 2 to my board is ok..and programmed successfully.

    I have another question. I let say my oscillator did not work, is it the programming stage failed? because I not check the oscillator yet using scope.
    Hi rosmadi,
    Welcome to the forum !
    Second question first: If no ocsillator, Then no work. period. If the configs are incorrect, then no OSC.
    Your code looks as if it will work, <b>BUT</B> You did not list which PIC you are using, If you are using the development board or a solder less breadboard, and how you are powering it, either by a separate power supply or from the PICKit2.
    The PICKit2 window has a little check box to power the development boards. Please give us the missing information I am going to list.
    PIC number
    Assembler . . . MPASM or the automatic default as installed
    Development board ? or Breadboard?
    Have you changed the xxx.inc file yet? xxx meaning the pic number I. E. 16F690.inc ? you will need to do this if you want to put configs into your code (recommended).
    Please view these threads:
    http://www.picbasic.co.uk/forum/showthread.php?t=543
    http://www.picbasic.co.uk/forum/showthread.php?t=555
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    The 3 threads are <b>must know</b> information to successfully program PICs.
    Last edited by Archangel; - 31st January 2010 at 22:46.
    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.

Similar Threads

  1. ICD use with MCS Plus, PBPro & PicKit2??
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st October 2009, 00:06
  2. Pickit2 / ICD2? advice please?
    By karenhornby in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 27th May 2008, 19:27
  3. mplap picbasic with pickit2
    By zk_bamx2 in forum General
    Replies: 1
    Last Post: - 25th February 2008, 04:13
  4. Help MCS with PICKIT2 programmer question
    By luminas in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 1st February 2008, 18:57
  5. Good news for Pickit2 disapointees
    By websmith in forum Off Topic
    Replies: 1
    Last Post: - 31st January 2007, 16:54

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