Picstart plus and pic18f2331


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I can't help with the PICStart+ programming for an 18F2331, but I do see a few potential problems.

    #byte port_b=0x81 should be #byte port_b=0xF81.

    Also you should have HS VS XT as your #fuses option for a 20MHz crystal. XT provides a lower drive
    level, which may not be providing enough drive signal for your 20MHz crystal.

    For help with CCS C code, config options, etc.. check here http://www.ccsinfo.com/forum/
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Nov 2008
    Posts
    2


    Did you find this post helpful? Yes | No

    Default

    Henrik,

    I have connected a 1k resistor between pin 7 and pin 11.Also, connected pin 7 to pin 20 (AVDD AND VDD pins) and pin 8 to pin 19 (AVSS and VSS pins).Then when I do a blank check I get:
    "
    Device is NOT blank:
    Program Memory
    Configuration Bits
    IDs
    Data Memory
    "

    Then when I do a read I get:

    "
    Device is data protected! Data memory may be invalid.

    Device is code protected! Program memory may be invalid.
    "

    I looked at the thread you asked me to take a look at and they show how to do ICSP.I have done that but still I have not solved the problem.

    Did you use MPLAB IDE version 8.10 and picstart firmware version 04.50.09?

    It seems that for some reason I cannot erase my pic18f2331???????

    Please let me know.

    Thanks

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    This is from when I asked MicrChip about a similar problem .
    Customer Update 3/10/2007 8:01

    I think I fixed the problem. Placed the 18F4320 in a breadbord and jumped from MCLR, RB6, RB7, and VSS. Powered the chip with an external power supply with a 4.7uf across VDD and VSS.

    Working 100% of the time now.


    Customer Update 3/9/2007 13:37

    9 out 14 chips are programming approx 75% of the time with a 4.7uf. It is getting better.

    Thank you for your help.

    Support Response 3/9/2007 12:03

    To program the 18f4320 on the PS+ may require the placement of a 0.1uF bypass capacitor from the VDD pin to the VSS pin of the device to successfully program the device. If programming failures still arise, try increasing this value incrementally to a maximum of 10uF. A low ESR capacitor such as a tantalum is recommended.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,604


    Did you find this post helpful? Yes | No

    Default

    It's been a year or two since I actually used the PICStart+ (other hobbies to has gotten my attention lately) so I don't remember what firmware it has or what version of MPLAB I used. But I know that I wrote about the whole thing in the previously linked thread, everything I had to do is in there. If it still doesn't work for you I don't think I can help, sorry.

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