PIC18f4220


Closed Thread
Results 1 to 12 of 12

Thread: PIC18f4220

Hybrid View

  1. #1
    jcullins's Avatar
    jcullins Guest


    Did you find this post helpful? Yes | No

    Question pic18f4220

    Yes, you should be able to down load it.
    Have you programmed the PIC18f4220 ?
    I have an example file form MELabs that compiles
    but when I try to program it it comes up with "code error at 0008"
    I am wondering if it is my 40 pin ZIF socket on my programmer.
    Is there one just for the 18f series . Mine is the one I have used
    with the pic16f877 chips.
    Thanks
    Jim

  2. #2
    jcullins's Avatar
    jcullins Guest


    Did you find this post helpful? Yes | No

    Unhappy PIC18f4220

    Is there anyone out there using this chip ?
    I don't seem to get a response from anyone.
    I think my problem is with the assembler MPASM but not having used it
    before I don't know.
    I compile with PBP it is OK
    assemble with MPASM OK
    try to program with the MELabs serial programmer and it give this error

    code programing error at 0000

    or somethin like that.
    Is this a set up problem?
    Jim

  3. #3
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Try to read the CHIP first

    Hi,

    Normally all Program memory location are default $FFFF (nop). So you can check your PIC if it reads okay. If it reads $0000 then its your programmer. What a programmer does is dump the hex files in the prog. memory locations and just verifies it while/after programming. In most cases if your first location is not being programmed then your programmer has some communication error with the PIC. Even parasitic capacitance on the data and clock lines make it worse.
    Regards

    Sougata

  4. #4
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    jcullins,

    I do not use the EPIC so I cannot say - however, from MELabs website

    http://www.melabs.com/support/epicfixs.htm


    snip ....

    #1 Most Encountered Problem - Power Supply

    The most common cause of programming problems is low power supply voltage. We highly recommend the use of an AC Adapter. Batteries become depleted very quickly, causing program errors ("Code Programming Error at 0000").

    ... end snip

    Good Luck,

    Paul Borgmeier
    Salt Lake City, Utah
    USA

  5. #5
    jcullins's Avatar
    jcullins Guest


    Did you find this post helpful? Yes | No

    Default Pic18f4220

    The programmer works fine with the PBP compilier. I program the 16f series all the time with no problem. But it shifts over to the Mchips assembler.
    I assembles with no errors but just want program.
    Thanks for you help guys.
    Jim

  6. #6
    Join Date
    Mar 2006
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Have you seen this?

    http://www.melabs.com/support/cap_mod.htm

    I've also had some intermittent problems with the serial programmer and 18Fxxxx parts. I just ran across this note the other day and haven't had a chance to try it yet. A shorter cable to the socket also seems to help.

  7. #7
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    I've found that too much capacitance on the B+ line will cause errors with the serial programmer. Powering up the circuit may help. Likewise, if there are any loads on the programming pins of more than a mil, the programmer will read an error. If you have a pinned version, try programming by itself first as a loose part. If that works, then it is a circuit level issue.
    A large, powerful magnet wrapped in a layer of tin foil held about an inch above the chip while programming, may help, but be sure there are no cats in the room(or wet them down) due to static EMD problems. The last solution will work only on today's date.

    Hope some of this helps,
    Ron

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