Programming PIC10F222


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Nov 2006
    Posts
    70

    Default Programming PIC10F222

    I am trying to program a 10F pic for the first time, and I can't get it to work. I am using an imitation PICSTART PLUS programmer via MPLAB IDE v8.00, and I have set up a breadboard to alter the pin arrangement. I have an 8-pin DIP package with VDD in the Picstart ZIF at pin 1, Vpp (MCLR) at pin 4, Vss at pin 40, GP0 (data pin) at pin 39, GP1 (clock pin) at pin 38, and GP2 at pin 37. I've tested all connections, and using a couple of LEDs, I've verified that the data and clock pins are going high and low as expected (the leds dim and flicker).

    The result is always a long list of program memory errors and some configuration memory errors, one of which is code protection (the programmer says it is on even on a brand new PIC). Read and Verify commands return a bunch of zeros. So it looks like nothing is being written or read. The erase command claims success, but changes nothing.

    I've double checked that the correct device is selected, and I've tinkered with configuration bits and different hex codes. So I am at a loss. Maybe I need a new programmer? Any ideas about what could be going wrong or how to make it work? Any recommendations for different programming devices?

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


    Did you find this post helpful? Yes | No

    Default

    Unless your imitation PICSTART+ has been designed to work with the 10F part, you're
    going to need to buy or build a special adapter or use ICSP.

    Have you looked at the 10F222 pinout in the data sheet? It may be an 8-pin device, but
    it's not anywhere near the same pinout as other 8-pin types.
    Regards,

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

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Have a look at MPLAB help file, or the following PDF

    http://www.datadog.com/appendix_a.pdf
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Nov 2006
    Posts
    70


    Did you find this post helpful? Yes | No

    Default

    Thanks guys, but in short, I tried all that. I am aware that the pinout is unique for the 10Fs. I am using a breadboard to piece together an adaptor. That's why I described those connections in my post. I had seen the MPLAB help doc, and it seems like what I am doing should work. It does mention a firmware update (which is probably not possible with my imitation PICSTART.

    What makes me crazy is that there doesn't seem to be anything special about the 10Fs other than the pinout. So why does it fail where others succeed. I've seen some posts on other forums--folks haveing the same problem, but no solutions. So if you have any ideas, chime in please.

    And if not...Well, I've always wanted to try one of those little pickit jobs...

    Thanks.

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


    Did you find this post helpful? Yes | No

    Default

    Microchip tends to change a lot more than just pinouts, so a device programmer will need to
    support a variety of different device programming algorithms, pinouts, and whatever else
    differs from one to the next.

    I gave up years ago on clone type programmers. It really will save you a boat-load of time
    and frustration going with a solid & supported programmer.

    Most clone types don't stay current with software & firmware updates, so you fall behind in
    support for a lot of new PICs.

    A PICkit2 or MeLabs USB programmer would be worth the investment.
    Regards,

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

  6. #6
    Join Date
    Nov 2006
    Posts
    70


    Did you find this post helpful? Yes | No

    Default

    The PicKit-2 works just great...

    Thanks fellas.

Similar Threads

  1. Data Programming Error at 0000
    By cpatnoi in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd May 2009, 03:37
  2. Problems programming
    By Lionheart in forum General
    Replies: 4
    Last Post: - 7th December 2008, 16:51
  3. Who can help me checking my Programming
    By slimpeng in forum mel PIC BASIC Pro
    Replies: 25
    Last Post: - 23rd January 2008, 15:08
  4. Programming software for PicAll Hardware
    By bcd in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th July 2006, 08:15
  5. 16F628 & In-Circuit Programming?
    By Len in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th March 2004, 13:02

Members who have read this thread : 1

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