What programmer for pic12c508 All PS1 HEX's

Discussion in 'Modding and Hacking - Consoles and Electronics' started by LeHaM, May 23, 2014.

  1. LeHaM

    LeHaM Site Soldier

    Joined:
    May 5, 2013
    Messages:
    2,634
    Likes Received:
    292
    hi all,

    I'm looking to mod 10+ PS1 consoles and to save money im planning to burn the chips myself.

    Is pic12c508 the correct IC to use for all types of PS1 consoles, Are there any variants that will work?

    Which Hex's do i use for what board?

    1000x
    Ps1
    PS1 slim??

    Also I'm after a cheap programmer (just for these chips to start with), will this one do?
    http://www.ebay.com.au/itm/USB-PIC-...LH_DefaultDomain_0&hash=item1c39302e38&_uhb=1

    It says it supports the chip, but has anyone ever used one of these?

    Thanks a bunch
     
  2. LeHaM

    LeHaM Site Soldier

    Joined:
    May 5, 2013
    Messages:
    2,634
    Likes Received:
    292
    I found an old thread with a link Bad_Ad84 posted and got the Hex Files, just to find out if the this is the correct programmer/IC combo...
     
  3. retro

    retro Resigned from mod duty 15 March 2018

    Joined:
    Mar 13, 2004
    Messages:
    10,354
    Likes Received:
    822
    Cheap Chinese programmers aren't the best, but worth a try - especially on a budget. You could always return it if it doesn't work and, at worst, you haven't lost much.

    Technically, if the manufacturer say it's supported, it should work.
     
  4. LeHaM

    LeHaM Site Soldier

    Joined:
    May 5, 2013
    Messages:
    2,634
    Likes Received:
    292
    cool thanks :)

    is $8.50 expensive for a pic12c508?


    thats on ebay...

    heres one i found in australia, never bought from them but its free post..

    http://au.rs-online.com/web/p/microcontrollers/2340300/

    will it work with the ps1?
     
    Last edited: May 23, 2014
  5. CoolerKing

    CoolerKing Active Member

    Joined:
    Nov 26, 2013
    Messages:
    39
    Likes Received:
    3
    You should buy PIC12C508A.. they are less than a euro a piece on eBay in China.. Alternatively you could get some PIC12F629.. They are cheaper and are reprogrammable.

    I bought this programmer last week or so.. still waiting for delivery: http://www.ebay.com/itm/310645139836 .. it should work with both those chips..

    For PS1, use MM3.. for PS1 Slim use onechip..

    For onechip you will need the PIC12C508A, but the MM3 has also been ported to PIC12F629 (just google for it)
     
    Last edited: May 23, 2014
  6. LeHaM

    LeHaM Site Soldier

    Joined:
    May 5, 2013
    Messages:
    2,634
    Likes Received:
    292
    What's the differance between PIC12C508A an PIC12C508??
     
  7. LeHaM

    LeHaM Site Soldier

    Joined:
    May 5, 2013
    Messages:
    2,634
    Likes Received:
    292
  8. master991

    master991 Enthusiastic Member

    Joined:
    Jun 4, 2012
    Messages:
    597
    Likes Received:
    28
    DIY programmer and 12F509 pic it's the cheapest way
     
  9. Helder

    Helder Site Supporter 2014,2015

    Joined:
    Apr 6, 2013
    Messages:
    981
    Likes Received:
    54
    Last edited: May 23, 2014
  10. retro

    retro Resigned from mod duty 15 March 2018

    Joined:
    Mar 13, 2004
    Messages:
    10,354
    Likes Received:
    822
    Buy from wholesalers, not eBay, wherever possible. See my sticky on suppliers.
     
  11. LeHaM

    LeHaM Site Soldier

    Joined:
    May 5, 2013
    Messages:
    2,634
    Likes Received:
    292
    Ok.

    But what's the difference between the two chips A and no A
     
  12. CoolerKing

    CoolerKing Active Member

    Joined:
    Nov 26, 2013
    Messages:
    39
    Likes Received:
    3
    No real difference.. they operate the same way afaik
     
  13. master991

    master991 Enthusiastic Member

    Joined:
    Jun 4, 2012
    Messages:
    597
    Likes Received:
    28
    "a" it's only a revision of a problem with the int_osc function.
     
    Last edited: May 25, 2014
  14. TriMesh

    TriMesh Site Supporter 2013-2017

    Joined:
    Jul 3, 2008
    Messages:
    2,324
    Likes Received:
    750
    Nothing significant. The main difference is that there are 6 active bits in the OSCCAL register rather than 4 so the internal oscillator frequency can be adjusted more accurately. If you followed the Microchip recommendations and made sure not to clobber the instruction at the end of ROM and put a "MOVWF OSCCAL" as the first instruction of the program, this had no effect at all.

    The problem was that some badly behaved programmers clobbered the factory programmed instruction at the end of ROM, and this resulted in the calibration value being set to something undefined (but in practice often zero), which made the chip run at the wrong speed. The problem was more noticeable on the 'A' parts because they had a wider trim range, and this led to the erroneous conclusion that they were bad.

    If you are using a programmer that doesn't stomp on the cal value or are not using the IntRC osc there is no difference at all.
     
  15. Helder

    Helder Site Supporter 2014,2015

    Joined:
    Apr 6, 2013
    Messages:
    981
    Likes Received:
    54
    Now this has caught my interest, so do all the HEX and ASM files have these erroneous instructions? Or are the ones floating around the NET have this remedied or does it even matter in the end?
     
  16. TriMesh

    TriMesh Site Supporter 2013-2017

    Joined:
    Jul 3, 2008
    Messages:
    2,324
    Likes Received:
    750
    OK, I should start be explaining how the reset process works in these old PICs. When you reset them, they load the PC with all '1's, so the first instruction executed is the one at the end of memory - either 0x1ff or 0x3ff depending on the ROM size. When Microchip tested the device, they programmed this with a MOVLW instruction that loaded the correct cal value. So this is executed and then the PC rolls over to 0, and the user code starts with the cal value already in the W register.

    Microchip programmers are careful not to clobber this instruction - so if you select "chip erase" they will read it, erase the chip, and then program it back. Some of the third party ones are not so careful, and can end up erasing it. On top of this, some of the dumps include the last location, still holding the correct cal value from the chip it was dumped from. The Microchip programmers tend to ignore this, and use the one in the chip, but some others don't.

    The short answer is that the code should have a MOVWF OSCCAL at the start of the code or within the first few instrucitons (0x025) and should not have anything in location 0x1FF (for the 508) or 0x3FF (for the 509)
     
  17. LeHaM

    LeHaM Site Soldier

    Joined:
    May 5, 2013
    Messages:
    2,634
    Likes Received:
    292
    Hmm i see..

    so what do you think on the programmer coolerking posted? I can't afford a pickit ATM, I don't mind having a programmer that is only good for one type of chip.
     
  18. TriMesh

    TriMesh Site Supporter 2013-2017

    Joined:
    Jul 3, 2008
    Messages:
    2,324
    Likes Received:
    750
    My guess is that it will probably be OK - because it's specifically designed for PICs. Most of the badly behaved programmers were the ones that supported multiple devices and didn't pay to much attention to highly PIC specific things like cal values.

    It's easy to check in any case - just get a new chip and read it, then look at the last location and make a note of what it is. Then program it and read it back again and see if it changed. If it did, you have a bad programmer and need to manually update the cal value for every chip you program - annoying, but not a big problem. The problem comes when you don't realize that's whats happening.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page