Menu

PIC12F1822 support - again

2011-03-11
2012-10-27
  • Oleg Antonyan

    Oleg Antonyan - 2011-03-11

    Since you close feature request, I try to continue here.
    PIC12F1822 - this chip, NOT 12LF. It doesn't need 3.3V

     
  • Alberto Maccioni

    The forum is more appropriated to hold a discussion.
    So, it's true that only the LF version requires 3.3V, but since the device
    selection list only has a generic 12F1822 the programmer requests 3.3V to be
    sure it doesn't do any harm.
    If you want you can fool it by shorting pins 7-8 on the left expansion
    connector (RB1-RB0), so that it thinks the adapter is there.

    BR
    Alberto

     
  • Oleg Antonyan

    Oleg Antonyan - 2011-03-18

    Hi, Alberto
    Thanks for your help.
    So, I've tried this and get this when reading the empty new chip:

    [flysnake@home test]$ op -p /dev/usb/hiddev2 -d 16F1822
    Programmer detected
    Firmware version 0.7.6
    Hardware ID: 0.0.1 (18F2550)
    
    Regulator up and running after T=71 ms VPP=8.1V
    
    Reading code ... completed
    Reading CONFIG area ... completed
    ID0: 0x3FFF     ID1: 0x3FFF
    ID2: 0x3FFF     ID3: 0x3FFF
    DevID: 0x3FFF
    Unknown device
    Configuration word 1: 0x3FFF
    Configuration word 2: 0x3FFF
    Calibration word 1: 0x3FFF
    Calibration word 2: 0x3FFF
    
    Code memory:
    (empty)
    
    End (1.23 s)
    

    Unknown device - hmmm, strange.
    OK, write a simplest program, compile and flash it:

    [flysnake@home test]$ make burn
    op -p /dev/usb/hiddev2 -d 16F1822 -w ./temp.hex
    Programmer detected
    Firmware version 0.7.6
    Hardware ID: 0.0.1 (18F2550)
    
    ./temp.hex :
    
    
    Code memory:
    
    0000: 2801 0188 2FF1 FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF FFFF
    07F0: FFFF 0020 2FF6 0021 018C 0008 3187 27F3 3187 0020 018C 2FFC 098C 2FFC 2FFC 2801
    
    Can't find CONFIG location (0x2008)
    End
    
    End (0.00 s)
    

    And read again:

    [flysnake@home test]$ op -p /dev/usb/hiddev2 -d 16F1822
    Programmer detected
    Firmware version 0.7.6
    Hardware ID: 0.0.1 (18F2550)
    
    Regulator up and running after T=71 ms VPP=8.1V
    
    Reading code ... completed
    Reading CONFIG area ... completed
    ID0: 0x3FFF     ID1: 0x3FFF
    ID2: 0x3FFF     ID3: 0x3FFF
    DevID: 0x3FFF
    Unknown device
    Configuration word 1: 0x3FFF
    Configuration word 2: 0x3FFF
    Calibration word 1: 0x3FFF
    Calibration word 2: 0x3FFF
    
    Code memory:
    (empty)
    
    End (1.23 s)
    

    Nothing changed :(
    It's possible my mistake because I use chip in DFN package and it could be bad
    soldering on hand-made pcb.
    I can make up new pcb, but it's unlikely because of when you have disconnected
    chip you get another output than here.
    And also message "Can't find CONFIG location (0x2008)" is strange because if
    you look in programming specification (41390C) than you see config word
    located at 8007h.

     
  • Alberto Maccioni

    If the device is unknown it means it did not enter program mode, so nothing
    will ever be written; I suggest you check the connections to your DFN board;
    if it's an application circuit make sure the ICSP pins are not loaded during
    programming.
    Regarding the config warning you can see by yourself that your file contains
    data at addresses 0 and 7F0, so nothing at 8007; it's true that the config
    location is wrong on the message (I just used the same string as smaller
    devices) but the error is there.
    Compile a simple asm source and you'll see the difference.

    BR
    Alberto

     
  • Oleg Antonyan

    Oleg Antonyan - 2011-04-03

    Hi!
    2 weeks later I returned to this problem :)
    Re-soldering the chip with new expensive soldering paste, new op version, make
    the expansion board with 3.3Vreg - nothing changed.
    Stupid DFN package - tiny and it's impossible to check how pins are soldered
    with tester, because they are under the chip. To be sure this is my mistake I
    will buy another few chips in DIP with next big order on digikey.

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.