Programming a PIC18F27J53 with PicKit2

Author
obama
New Member
  • Total Posts : 21
  • Reward points : 0
  • Joined: 2009/07/25 05:15:53
  • Location: 0
  • Status: offline
2011/02/19 11:01:26 (permalink)
5 (1)

Programming a PIC18F27J53 with PicKit2

Pickit2 don't support PIC18F27J53 because last update of the pickit2's database is before the production date of PIC18F27J53.
I updated the file PK2DeviceFile.dat for add the support to this new PIC.
I duplicated the record for PIC18F67J50 and changed device id, config mask and config blank.
I hope is helpfull.

 
Part name: PIC18F27J53
Family: 4
Device ID: 0x5860
Program memory: 65536
EE memory: 0
EE address: 0x0000
Config words: 4
Config address: 0x1fff8
User ID words: 0
User ID address: 0x0000
Bandgap mask: 0x0000
Config masks: 0x07ff 0x0fff 0x0bff 0x0bff 0x0000 0x0000 0x0000 0x0000
Config blank: 0xf7ff 0xffff 0xfbff 0xfbff 0x0000 0x0000 0x0000 0x0000
CP mask: 0x0400
CP config: 1
OSCCAL save: 0
Ignore address: 0x0000
VddMin: 2.70
VddMax: 3.60
VddErase: 2.70
Calibration words: 0
Chip erase script: 71
Program mem address set script: 57
Program mem address bytes: 3
Program mem read script: 56
Program mem read words: 64
EE read prep script:0
EE read script: 0
EE read locations: 0
User ID read prep script: 0
User ID read script: 0
Config read prep script: 0
Config read script: 0
Program mem write prep script: 75
Program mem write script: 264
Program mem write words: 32
EE write prep script: 0
EE write script: 0
EE write locations: 0
User ID write prep script: 0
User ID write script: 0
Config write prep script: 0
Config write script: 0
OSCCAL read script: 0
OSCCAL write script: 0
DP mask: 0x0000
Write config on erase: 1
Blank check skip user IDs: 0
Ignore bytes: 0
Chip erase prep script: 0
Program mem erase script: 0
EE mem erase script: 0
Config mem erase script: 0
Reserved1 erase script: 0
Reserved2 erase script: 0
Test mem read script: 0
Test mem read words: 0
EEPROM row erase script: 0
EEPROM row erase words: 0
Debug halt script: 14
Debug run script: 16
Debug status script: 20
Debug read exec ver script: 15
Debug single step script: 19
Debug bulk write data script: 17
Debug bulk read data script: 18
Debug write vector script: 237
Debug read vector script: 0
Debug row erase script: 0


#1

10 Replies Related Threads

    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re:Programming a PIC18F27J53 with PicKit2 2011/02/19 15:16:23 (permalink)
    0
    My .DAT file was larger than yours... so I chose to manually add the entries you provide.
    Not that I need it, but I just wanted to try the Editor Smile

    GENOVA :D :D ! GODO
    #2
    obama
    New Member
    • Total Posts : 21
    • Reward points : 0
    • Joined: 2009/07/25 05:15:53
    • Location: 0
    • Status: offline
    Re:Programming a PIC18F27J53 with PicKit2 2011/02/20 13:11:53 (permalink)
    0
    Dario is there an visual editor for .DAT file? I done it with a simple hex editor. I see dat2text http://home.pacbell.net/theposts/picmicro/ for convert .dat to txt but not from txt to .dat
    Now I update the .dat starting from the lastest version of PK2DeviceFile.dat 1.62.3. Sorry for the error. My previous version was based on 1.62, now is based 1.62.3 and the version is 1.62.4, I not updated the notes.

    #3
    Stefan Uhlemayr
    Super Member
    • Total Posts : 4292
    • Reward points : 0
    • Joined: 2005/05/12 12:25:46
    • Location: Germany
    • Status: offline
    Re:Programming a PIC18F27J53 with PicKit2 2011/02/20 13:28:11 (permalink)
    0
    obama

    Dario is there an visual editor for .DAT file? I done it with a simple hex editor. ...
    Have a look to this thread. Smile

    Greetings,
    Stefan
    #4
    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re:Programming a PIC18F27J53 with PicKit2 2011/02/20 16:36:37 (permalink)
    0
    Yep Smile Stefan.
    Thank you Obama!

    GENOVA :D :D ! GODO
    #5
    skimask
    Starting Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2010/07/07 18:12:22
    • Location: 0
    • Status: offline
    Re:Programming a PIC18F27J53 with PicKit2 2011/03/14 19:06:58 (permalink)
    0
    Freekin' Wow!!!...
    I just spent last couple of hours trying to figure out how to get my PK2 to do a 27J53 (don't have the chips yet, but they're on the way).
    Flipping back and forth between 26J50 & 27J53 datasheets, programming spec sheets, the PK2 manual (not that it helps any)...pulling hair, and so on.
    Finally get done and decide to do a search in these forums...
    Bam...
    Thanks for the post and the verification that what I did was at least mostly correct.
    The only difference I found was in "ProgMemWRScript".  The value for the 26J50 was 258, you put in "264".
    What's the difference?
    #6
    skimask
    Starting Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2010/07/07 18:12:22
    • Location: 0
    • Status: offline
    Re:Programming a PIC18F27J53 with PicKit2 2011/03/14 19:09:29 (permalink)
    0
    Disregard...found the answer.
    P9 = 3ms vs. 1ms in the original.

    With that being done...the PIC18F27J13 is almost identical to the 27J53 with the following exceptions:

    In the CONFIG BLANK Section:  $F4FF $FFFF $FFFF $F3FF
    In the CONFIG MASK Section: $04FF $0FFF $0FFF $03FF

    Change the Device Name to PIC18F27J13
    Change the Device ID to $5960

    And it works, well, at least it programs successfully.  Will have to build up a "blinky" to see if it actually works.
    post edited by skimask - 2011/03/14 19:23:09
    #7
    skimask
    Starting Member
    • Total Posts : 35
    • Reward points : 0
    • Joined: 2010/07/07 18:12:22
    • Location: 0
    • Status: offline
    Re:Programming a PIC18F27J53 with PicKit2 2011/03/19 12:22:36 (permalink)
    0
    Yep, PICKIT2 with the modified device file works like a champ with the 18F27J31 and '53.
    ...AND...
    Microchip just put out another version of the Device File 1.62.09
    http://ww1.microchip.com/...K2DFUpdate-1-62-09.zip
    #8
    3v0
    Starting Member
    • Total Posts : 59
    • Reward points : 0
    • Joined: 2007/01/26 04:26:01
    • Status: offline
    Re:Programming a PIC18F27J53 with PicKit2 2011/03/24 12:33:16 (permalink)
    0
    Is there any way to get MPLAB to recognize the PK2 for the devices we add to PKEDeviceFile.Dat ?

    PIC18LF27J13 is in my Dat file but it still shows up as red in MPLAB 8 and X.

    I was able to program it from PICkit2.exe ?
    #9
    crovax
    New Member
    • Total Posts : 7
    • Reward points : 0
    • Joined: 2013/10/28 14:17:21
    • Location: 0
    • Status: offline
    Re:Programming a PIC18F27J53 with PicKit2 2013/10/28 14:20:17 (permalink)
    0
    Hi!
     
    Anyone can help me? I need a PK2DeviceFile.dat file with pic18f26j53 and pic18f47j53.
     
    Both pic are in the same family of pic18f27j53 of this post!
     
    thanks :) 
    #10
    planeta9999
    Junior Member
    • Total Posts : 111
    • Reward points : 0
    • Joined: 2012/08/01 11:32:24
    • Location: Spain
    • Status: offline
    Re:Programming a PIC18F27J53 with PicKit2 2016/09/14 11:05:35 (permalink)
    0
     
    I have exactly same problem, I have try with a 470 ohm and 1K between PGD and GND, but also fail, though change the MCU ID to 60 and 20, without the resistor 000000e0 like everybody.
     
    I have check all connections, provide power supply external or from Pickit3, tested with several PIC18F27J53, my pickit3 is connected directly to board so no problem with length of wires, and always same error. My Pickit3 work perfect because I program PIC18F25K20 perfectly with same pickit3.
     
    Somebody know what is solution or how may I contact with Microchip to get help with this problem ??? 
    post edited by planeta9999 - 2016/09/14 11:08:18
    #11
    Jump to:
    © 2018 APG vNext Commercial Version 4.5