Problems with PICKit 2 and Microcode Studio


Closed Thread
Results 1 to 11 of 11

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 Re: Problems with PICKit 2 and Microcode Studio

    SEROUT2 PORTd.2,84,["COUNTER=",DEC COUNTER,13,10] 'BAUD = 38400

    84 is 9600 baud and it is True mode. If you are connecting directly to a PC you will need to use Inverted mode.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Apr 2007
    Location
    Santiago, Chile
    Posts
    77


    Did you find this post helpful? Yes | No

    Default Re: Problems with PICKit 2 and Microcode Studio

    Hi Dave,

    That was my typo, I was messing with a RS232 converter chip to see if it was a problem with true mode and also with different speeds and forgot to change the comment.
    It doesn't matter what mode or speed I choose I get either a dead program or just junk. Sometimes it only starts when I unplug the programming plug from the programmer.

    Regards
    Chris

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


    Did you find this post helpful? Yes | No

    Default Re: Problems with PICKit 2 and Microcode Studio

    Sometimes it only starts when I unplug the programming plug from the programmer.
    I will assume you are not powering the chip with the PicKit?

    Is the chip still in the EPIC when you use the PicKit?

    Maybe a picture of your setup?
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Apr 2007
    Location
    Santiago, Chile
    Posts
    77


    Did you find this post helpful? Yes | No

    Default Re: Problems with PICKit 2 and Microcode Studio

    Hi Dave,

    I have attached a photo of my setup. The programming cable that I use is the same as I used for the EPIC except the MCLR pin had to be swapped position.
    The PIC is powered by the board and the PICKit2 is set to Automatic power detect. It seems to be programming fine when the code is right.
    I really as stumped with this....

    Regards
    Chris
    Attached Images Attached Images  

  5. #5
    Join Date
    Apr 2007
    Location
    Santiago, Chile
    Posts
    77


    Did you find this post helpful? Yes | No

    Default Re: Problems with PICKit 2 and Microcode Studio

    Hi All,

    I solved the mystery of the PICkit2 and EPIC.
    The difference was the assembler. I programmed using both programmers on my old PC which had MPLAB installed properly and directed MCstudio to the program files/microchip directory.
    On my new PC/notebook I just put MPASM in a directory and directed MCstudio there. I now installed MPLAB 8.7 on the notebook and pointed MCstudo to that and hey presto the programmer worked.
    The final tricky part was to get the programmer to work using the command driver. I just put pk2cmd.exe in a directory and pointed MCstudio to that and then added the following line to the parameters box: -pPIC$target-device$ -f$hex-filename$ -M -R -T -h2.
    Now it's "compile & program" like i had it before with the EPIC!!!
    Hooray!

    Thanks for you input Dave, you helped me find what were not problems!

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


    Did you find this post helpful? Yes | No

    Default Re: Problems with PICKit 2 and Microcode Studio

    Thanks for you input Dave, you helped me find what were not problems!
    Glad to have been a help!
    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