Very Simple ICSP Programmer


Closed Thread
Results 1 to 40 of 130

Hybrid View

  1. #1
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    The chip CAN be programmed without any programmer ,eg. JDM etc, just the right serial to chip connections and IC-Prog right?
    You need to make sure the voltage levels on all pins used for programming are within the specs.
    This is actually all the JDM-programmer does.

    AGAIN:

    have you checked the levels on your COM-port yet?
    have you read all specs?
    Have you understood the concept of JDM?
    are you sure your PIC is ok?
    (you might have killed it with your experiments)

    As long as you haven't understood what you are doing you will never get this working.

    The time we all have spent on this thread is worth far more than the $9,95 a working programmer would have cost.

    Why don't you just go and get one?
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  2. #2
    JoeCJK's Avatar
    JoeCJK Guest


    Did you find this post helpful? Yes | No

    Default

    The serial port voltage levels are about 5V.(notebook)

    And you're probable right, I should just go and get a programmer, althought it will cost some time and a bundle in shipping fees. Will try with a smaller value resister and other stuff just one more time.

    Thks.

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Joe,

    the PIC-PG2 is a JDM-type of programmer and will (most likely) NOT work on a 5V COM-Port !!

    If you had told us you are working with a 5V COM-port,
    we would have told you that the method you are trying is not going to work.

    You must tie RB4 on the F628 to GND (or at least pull it low)
    and you must apply high voltage (~13V) to the Vpp pin to make it work.

    The links posted on this thread would have given this answer.
    Last edited by NavMicroSystems; - 4th April 2005 at 20:48.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  4. #4
    JoeCJK's Avatar
    JoeCJK Guest


    Did you find this post helpful? Yes | No

    Thumbs up Works now (Desktop Comp).

    Thanks Nav,

    I tried it on a desktop and it works. But I think we are talking about different programming modes. Here is my rundown: (16F62X series)


    Low Voltage Programming : MCLR is low(+ 5V) , MCLR is shorted to RB4 as
    RB4 needs to rise to 5V also.

    High Voltage Programming : MCLR is high(~ + 13V),
    RB 4 has to be grounded



    Voltages to Vdd of both modes are +5V. High voltage programming is better than low voltage programming in that all I/O pins can be used. (RB4 can't be used for LVP) But the downside is that it is harder to get 12 V source.

  5. #5
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by NavMicroSystems
    The time we all have spent on this thread is worth far more than the $9,95 a working programmer would have cost.
    Why don't you just go and get one?
    Yes, buy one before you blow up the serial port of your computer!

    Luciano
    Attached Images Attached Images  

  6. #6
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Not able to Prog !

    I am not able to Program any PIC using the Simple Interface suggested. I am using Windows XP (SP2).

    I get Programming failed at Dataaddress 000000h. Any help or suggestion. I am using ICP, Windows API , I/O delay 1. I tried changing these setting to diffrent settings but could not get the Chip to Prog. I am trying to Prog F72, F873A and F876

  7. #7
    Join Date
    Sep 2003
    Location
    INDIA
    Posts
    161


    Did you find this post helpful? Yes | No

    Default Windows XP OS Problem

    I just found out a good explaination to the possible problem I could be facing with my programing software.

    Just thought of sharing the link with the Thread.

    http://www.talkingelectronics.com.au...-03-Using.html

    I shall post my findings later when I overcome my problem.

    regards

  8. #8
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default

    I have just set up a 16F877 circuit for ICSP using this interface
    with my desktop PC. (XP service pack 2 BTW). No problem with
    read, verify, or erase

    I used the settings with IC prog suggested earlier in the thread:
    I/O delay 20, JDM programmer, Direct I/O with nothing inverted.
    Have you have also powered the pic seperately with 5 volts while trying
    to use this interface?

    Cheers, Art.

  9. #9
    zero13's Avatar
    zero13 Guest


    Did you find this post helpful? Yes | No

    Thumbs up WinPic800 Software programming Pics Auto

    Hello, i am use WinPic800 for programming Pics.

    Info:

    WinPic800 3.55 f
    http://www.zerobots.net/electronica_software.html

    Web:
    http://perso.wanadoo.es/siscobf/winpic800.htm

    Slds!
    Zero13
    www.zerobots.net

  10. #10
    breogan's Avatar
    breogan Guest


    Did you find this post helpful? Yes | No

    Default Pinout ?

    Hi Art,
    Please, could you tell me what are the connections that you have made between the Serial port and the PIC16F877 ?.

    PIC Serial Port
    MCLR/Vpp ---- ?
    RB3/PGM ---- ?
    RB6/PGC ---- ?
    RB7/PGD ---- ?

    Thanks a lot !.

  11. #11
    amane's Avatar
    amane Guest


    Did you find this post helpful? Yes | No

    Default WinPic800 and JDM programmer

    I've been using WinPic800 to program PIC18LF4620 using my PC's serial port. It's working fine. I used JDM programmer as the hardware settings. I connected the PC to the programmer using DB9 to ICSP cable. I'm thinking of getting myself a development board with PIC18LF4620. The board comes with ICSP connector that uses PGC, PGD, /MCLR, 3.3Vdc and GND to connect to the PIC and program it. I'm wondering whether will I be able to use the JDM programmer settings using a DB9 to ICSP cable to program the board. The board is going to cost me a huge sum of money and I wanted to be sure that I have the necessary tools to program it. Thanks!

  12. #12
    Join Date
    Mar 2006
    Location
    Hyderabad (India)
    Posts
    123


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by charudatt View Post
    I am not able to Program any PIC using the Simple Interface suggested. I am using Windows XP (SP2).

    I get Programming failed at Dataaddress 000000h. Any help or suggestion. I am using ICP, Windows API , I/O delay 1. I tried changing these setting to diffrent settings but could not get the Chip to Prog. I am trying to Prog F72, F873A and F876
    Hi Charudatt,
    1. please check whether the programmer has external 13.5 volts for Vpp if the derived voltage from COM port is used, pl ensure its value by measurement.

    2. Please try winpic800 programme and see. www.winpic800.com
    Regards,
    Sarma

  13. #13
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Originally Posted by charudatt
    I am not able to Program any PIC using the Simple Interface suggested. I am using Windows XP (SP2).

    I get Programming failed at Dataaddress 000000h. Any help or suggestion. I am using ICP, Windows API , I/O delay 1. I tried changing these setting to diffrent settings but could not get the Chip to Prog. I am trying to Prog F72, F873A and F876

    Quote Originally Posted by mvs_sarma View Post
    Hi Charudatt,
    1. please check whether the programmer has external 13.5 volts for Vpp if the derived voltage from COM port is used, pl ensure its value by measurement.

    2. Please try winpic800 programme and see. www.winpic800.com
    That 1st post was over 1 1/2 years ago... Ya think he might have it figured out by now or had moved onto a different project... I'd doubt if he's sitting in front of his monitor staring into it waiting for another answer

  14. #14
    Join Date
    Mar 2006
    Location
    Hyderabad (India)
    Posts
    123


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    ......................That 1st post was over 1 1/2 years ago... Ya think he might have it figured out by now or had moved onto a different project... I'd doubt if he's sitting in front of his monitor staring into it waiting for another answer
    Hi Skimask, you are right-- i too noticed it jsut after posting-- however, even if it is useful to anybody else, it serves-- coming to using winpic800 (ver3.60)programm, the hardware under concern is to be treated similar to propic 2 while configuring the hardware under winpic800 - this what the orginal hardware designer suggested.

    i agree and this helps only to locate winpic800 drivers, which are really good.
    Regards,
    Sarma

  15. #15
    Join Date
    Oct 2003
    Location
    Australia
    Posts
    257


    Did you find this post helpful? Yes | No

    Wink

    Bearpawz,

    Show us your basic blink code and maybe we can figure it out. BTW did you use a dropping resistor on that LED? If not you may have blow up your IC. Don't suppose the polarity is around the wrong way?

    Oh yeah, Winpic800 is a much quicker at programming than IC prog.. I suggest using that now days.

    DTR/CTS lines connected to the data I/O are for Program reading and writing of the chip.

    Cheers and....


    Happy New Year to All

    Squib

  16. #16
    Join Date
    May 2004
    Posts
    81


    Did you find this post helpful? Yes | No

    Question

    Ok, I don't know what Im missing here....

    I used the circuit after reading through this thread... actualy seems to be no problems with programming. Im using IC-PROG, load a simple hex file made from the pbp samples code to blink an LED on port 1. Im not using any external oscilators.

    When I program, no problems. Read back it verifies correctly. Just to be sure I shut the whole thing down, restarted IC-PROG, and reloaded from the pic and there is indeed code in there.

    When I pull pic out of the circuit and try to plug into simmple LED blink circuit, nothing happens. Blink circuit is nothing more than 5V+ on VDD, GND on VSS, Cathode of LED to ground, and Anode of LED to Pin 6 (RB0)..

    Im using PIC16F818... Am I missing a config fues some where? its been over two years since ive toyed with these things so I cant remember what my set ups were back then

    thanks in advance


    oh yeah, and I already bought the programmer off e-bay... just waiting for it to show up from Hong kong... mean while this is all ive got and i have to start getting work on this project going.

  17. #17
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by bearpawz View Post
    Ok, I don't know what Im missing here....

    I used the circuit after reading through this thread... actualy seems to be no problems with programming. Im using IC-PROG, load a simple hex file made from the pbp samples code to blink an LED on port 1. Im not using any external oscilators.

    When I program, no problems. Read back it verifies correctly. Just to be sure I shut the whole thing down, restarted IC-PROG, and reloaded from the pic and there is indeed code in there.

    When I pull pic out of the circuit and try to plug into simmple LED blink circuit, nothing happens. Blink circuit is nothing more than 5V+ on VDD, GND on VSS, Cathode of LED to ground, and Anode of LED to Pin 6 (RB0)..

    Im using PIC16F818... Am I missing a config fues some where? its been over two years since ive toyed with these things so I cant remember what my set ups were back then

    thanks in advance


    oh yeah, and I already bought the programmer off e-bay... just waiting for it to show up from Hong kong... mean while this is all ive got and i have to start getting work on this project going.


    MCLR pulled up to +5?

  18. #18
    Join Date
    May 2004
    Posts
    81


    Did you find this post helpful? Yes | No

    Default

    Actually, its not programming as nice as I thought. Not it seems hit or miss as to weather or not it fails. This is the scheme I have:


    +12V------- LM7805 -------+5V------O |-- ->VDD(14)
    | (switch)
    |
    GND/Vss




    RS232 PIC16F818
    TXD (3) ------[4.7] -------- VPP (4)
    GND (5) -------------------- VSS (5)
    DTR (4) ------[4.7]--------- PGD (13)
    CTS (8) -------------------- PGD (13)
    RTS (7) ------[4.7]--------- CLK (12)



    ICPROG SETTINGS:
    JDM Programmer on COM2, I/o Delay = 20, Direct I/O

    I created a small program to blink an LED: Progam with these settings:

    Oscilator = INTrc
    Code Protect = OFF
    Write Enable = OFF
    Fuses:
    WDT = 1
    PWRT = 1
    MCLR = 0
    BODEN = 1
    LVP = 0
    CPD = 0
    DEBUGGER = 0
    CCPMX = 1


    All in all just a head ache of problems... I sure hope my JDM programmer I bought of ebay comes in tomorrow... been over a week for "Air mail" to show up...

  19. #19
    Steffen44's Avatar
    Steffen44 Guest


    Did you find this post helpful? Yes | No

    Default

    Hallo@all

    I need help to connect my 16F877 PIC with the Resistors/Serial Port.
    I does not work with the 5 Volt Power Supply.

    what i have for 16F877 is :

    TXD (3) ------[4.7k]-------VPP/MCLR

    GND (5) -----------------VSS (GND)

    DTR (4) -------[4.7k]----RB7/PGD (DATA ???)

    CTS (8) -----------------RB3/PGM (DATA ???)

    RTS (7) -------[4.7k]----RB6/PGC/CLK

    are the Connetions wrong ? I dont know ?
    IC Prog tells me the Error Code on 0000h.



    What stands the two data lines for ?!
    DTR (4) -------[4.7k]------DATA (????)
    CTS (8) ------------------DATA (????)


    Regards
    Steffen

  20. #20
    Join Date
    Oct 2009
    Posts
    3


    Did you find this post helpful? Yes | No

    Default Thanks

    I've tested this very simple programmer with a PIC16F88 and it worked fine. Just programmed a PIC18F2550 as well and it seems to work (I programmed it and then read back the code, tried verifying etc and it worked). If it doesn't work, I'll post a follow-up post later on

    The software I used was WINPIC800 version 3.55b, and I just chose JDM.

    For once off stuff, this is wonderful. Thanks for the great programmer!
    Last edited by joe17301; - 31st October 2009 at 04:43.

  21. #21
    Join Date
    May 2010
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    I have Problems of error in winpic, the programmer that I use is JDM2, I mounted 4 models jdm of different authors from the web, all the same error.

    Operating system Microsoft Windows XP Professional
    Version 5.1.2600 Service Pack 3 Compilation 2600
    I model of the system KM400-8235
    Processor x86 Family 6 Model 7 Stepping 0 AuthenticAMD ~1100 Mhz
    Total physical memory 512,00 MB
    Available physical memory 300,13 MB
    Total virtual memory 2,00 GB
    Available virtual memory 1,96 GB
    I space of the pagination file 1,22 GB

    Wx Pic

    15:29:48.187 Info: Loading definitions for "PIC16F84A" from C:\Arquivos de programas\WxPic\devices.ini .
    15:29:48.187 Info: PIC16F84A added and tested by FENG3
    15:29:48.187 Parsed "C:\Arquivos de programas\Microchip\MPLAB IDE\Device\PIC16F84A.dev" : found 10 bit combinations in 4 configuration bit groups .
    15:29:48.390 Initialising PIC-Programmer: Success.
    Testing: delay(500ms) took 0.50 seconds, timer_freq=3.5795 MHz ... ok
    15:31:39.765 Programming...
    15:31:39.765 Erasing ("bulk" or "chip") ...
    15:31:40.218 Programming and Verifying CODE, 0x000000..0x000121
    15:31:40.437 Verify Error: 000000: read 003FFF, wanted 00018C
    15:31:40.453 Verify Error: 000001: read 003FFF, wanted 00019D
    15:31:40.468 Verify Error: 000002: read 003FFF, wanted 00018F
    15:31:40.484 Verify Error: 000003: read 003FFF, wanted 000190
    15:31:40.546 Verify Error: 000004: read 003FFF, wanted 000191
    15:31:40.562 Verify Error: 000005: read 003FFF, wanted 000192
    15:31:40.578 Verify Error: 000006: read 003FFF, wanted 000193
    15:31:40.609 Verify Error: 000007: read 003FFF, wanted 000194
    15:31:40.625 Verify Error: 000008: read 003FFF, wanted 000195
    15:31:40.640 Verify Error: 000009: read 003FFF, wanted 000196
    15:31:40.656 Verify Error: 00000A: read 003FFF, wanted 000198
    15:31:40.671 Verify Error: 00000B: read 003FFF, wanted 000199
    15:31:40.687 Verify Error: 00000C: read 003FFF, wanted 00019A
    15:31:40.703 Verify Error: 00000D: read 003FFF, wanted 001683
    15:31:40.718 Verify Error: 00000E: read 003FFF, wanted 003010
    15:31:40.734 Verify Error: 00000F: read 003FFF, wanted 000085
    15:31:40.750 Verify Error: 000010: read 003FFF, wanted 003000
    15:31:40.750 Programming aborted after 17 errors.
    15:31:40.953 Programming CONFIG, 0x002000..0x002007
    15:31:41.187 Verify Error: 002007: read 003FFF, wanted 003FF1
    15:31:41.406 ERROR: Programming FAILED !

    Simulate only ( Ignore Hardware )

    15:33:13.593 Info: Loading definitions for "PIC16F84A" from C:\Arquivos de programas\WxPic\devices.ini .
    15:33:13.593 Info: PIC16F84A added and tested by FENG3
    15:33:13.593 Parsed "C:\Arquivos de programas\Microchip\MPLAB IDE\Device\PIC16F84A.dev" : found 10 bit combinations in 4 configuration bit groups .
    15:33:13.796 Initialising PIC-Programmer: Success.
    Testing: delay(500ms) took 0.50 seconds, timer_freq=3.5795 MHz ... ok
    15:34:12.00 Programming...
    15:34:12.00 Erasing ("bulk" or "chip") ...
    15:34:12.00 Programming and Verifying CODE, 0x000000..0x000121
    15:34:16.578 Programming CONFIG, 0x002000..0x002007
    15:34:16.703 Programming finished, no errors.

    WinPic DL4YHF

    Info: Loading definitions for "PIC16F84A" from C:\Arquivos de programas\WinPic\devices.ini .
    Info: PIC16F84A added and tested by FENG3
    Parsed "C:\Arquivos de programas\Microchip\MPLAB IDE\Device\PIC16F84A.dev" : found 10 bit combinations in 4 configuration bit groups .
    Initialising PIC-Programmer: Success.
    Testing: delay(500ms) took 0.50 seconds, timer_freq=3.5795 MHz ... ok
    Programming...
    Erasing ("bulk" or "chip") ...
    Programming and Verifying CODE, 0x000000..0x000121
    Verify Error: 000000: read 003FFF, wanted 00018C
    Verify Error: 000001: read 003FFF, wanted 00019D
    Verify Error: 000002: read 003FFF, wanted 00018F
    Verify Error: 000003: read 003FFF, wanted 000190
    Verify Error: 000004: read 003FFF, wanted 000191
    Verify Error: 000005: read 003FFF, wanted 000192
    Verify Error: 000006: read 003FFF, wanted 000193
    Verify Error: 000007: read 003FFF, wanted 000194
    Verify Error: 000008: read 003FFF, wanted 000195
    Verify Error: 000009: read 003FFF, wanted 000196
    Verify Error: 00000A: read 003FFF, wanted 000198
    Verify Error: 00000B: read 003FFF, wanted 000199
    Verify Error: 00000C: read 003FFF, wanted 00019A
    Verify Error: 00000D: read 003FFF, wanted 001683
    Verify Error: 00000E: read 003FFF, wanted 003010
    Verify Error: 00000F: read 003FFF, wanted 000085
    Verify Error: 000010: read 003FFF, wanted 003000
    Programming aborted after 17 errors.
    Programming CONFIG, 0x002000..0x002007
    Verify Error: 002007: read 003FFF, wanted 003FF1
    ERROR: Programming FAILED !

    Simulate only ( Ignore Hardware )

    Info: Loading definitions for "PIC16F84A" from C:\Arquivos de programas\WinPic\devices.ini .
    Info: PIC16F84A added and tested by FENG3
    Parsed "C:\Arquivos de programas\Microchip\MPLAB IDE\Device\PIC16F84A.dev" : found 10 bit combinations in 4 configuration bit groups .
    Initialising PIC-Programmer: Success.
    Testing: delay(500ms) took 0.50 seconds, timer_freq=3.5795 MHz ... ok
    Programming...
    Erasing ("bulk" or "chip") ...
    Programming and Verifying CODE, 0x000000..0x000121
    Programming CONFIG, 0x002000..0x002007
    Programming finished, no errors.

    WinPic800

    ERROR- Writing address 0x000000
    Written: 0x018C Read: 0x3FFF

    Icprog

    Verify Failed at address 0000h

  22. #22
    malc-c's Avatar
    malc-c Guest


    Did you find this post helpful? Yes | No

    Default JDM errors

    It does look like hardware issues. How are you connecting the JDM programmer.

    1) - USB to RS232 converters can be problematical and don't always work.
    2) - Serial ports on laptops (mainly older generations) tend not to be able to generate the voltages required to get the PIC into programming mode

    Are you selecting the correct chip in the Winpic options ?
    Have you tried Winpic800 (I'll let you google that one) or a different programmer that has support for JDM hardware.

  23. #23
    Join Date
    May 2010
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    Hello Malcolm


    I already tested all of the programs of Pic (Winpic, winpic800, wxpic, icprog,.... ) and all with the same problem, My Motherboard is a MSI KM4M-V ( VIA KM400+8237 Chipset ) the Processor is an AMD DURON 1.1Ghz. As to select the correct options of the chip, this everything correct. I hope somebody can help myself with the solution of the problem

  24. #24
    Join Date
    Dec 2007
    Location
    Finland
    Posts
    191


    Did you find this post helpful? Yes | No

    Default

    How much voltage you will have on MCLR/VPP pin when you enable Vpp (+13V) from Interface Test (Interface sheet)?
    With JDM and standalone PIC I have 10.4V and with ICSP (PIC on applicatio board) 9.3V and it is still working. Sometimes ICSP needs more flashing trials to avoid errors. I think it is because of lower VPP voltage..., but not sure.
    When it says "Initialising PIC-Programmer: Success." is should have all setting correct.

    BR,
    -Gusse-

Similar Threads

  1. Melabs U2 Programmer Command Line Options
    By Robert Wells in forum General
    Replies: 5
    Last Post: - 3rd July 2009, 03:11
  2. Soic Icsp
    By earltyso in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 13th September 2008, 20:51
  3. Replies: 1
    Last Post: - 11th December 2007, 00:57
  4. problems with USB programmer
    By malc-c in forum General
    Replies: 7
    Last Post: - 10th May 2007, 21:14
  5. USB programmer problems
    By uiucee2003 in forum USB
    Replies: 2
    Last Post: - 16th August 2006, 00:47

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