PIC18F2220 I2C resetting


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Location
    NC, USA
    Posts
    53

    Default PIC18F2220 I2C resetting

    I have been using the 18F2220 for I2C for dozens of projects and have never had an issue. Either I have been getting away with something for long time or something has changed with the latest lot of chips I received. I am using it to go along with a SD21 servo controller as I have done before many times. The chip keeps resetting everytime I try writing. If I remark out the PIC18F2220_I2C.pdfpic18f2220_I2C.txtDEFINE I2C_HOLD 1 line it does not reset, but I can not command the SD21. I have always used the DEFINE I2C_HOLD 1 statement. I am using 4.7k pulldowns as I usual. I have tried stronger values, I have tried with and without the SD21, I have tried different PCBs, I have tried different chips. I have dummed down the program all the way to have just the I2C commands. I am not sure what I am missing. Any help would be appreciated. Thanks

    I have attached code in PDF

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


    Did you find this post helpful? Yes | No

    Default

    The chip keeps resetting everytime I try writing.
    Sounds more like a hardware problem.
    What programmer are you using?
    Do you have a current schematic?
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2005
    Location
    NC, USA
    Posts
    53


    Did you find this post helpful? Yes | No

    Default

    well, good thing I just wasted too many hours staring at the software and wasted everyone's time on the post. Went and checked the hardware for shorts and continuity. Helps if you solder the clk line to the PCB...

    Thanks for telling me its the hardware. I guess I should use my glasses when putting the boards together.

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


    Did you find this post helpful? Yes | No

    Default

    I guess I should use my glasses when putting the boards together.
    That sorta thing happens to me more often than I care to admit
    Sometimes I just watch for smoke...
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    I am using 4.7k pulldowns as I usual.
    Surely a typo, you meant PULLUP!

    Cheers

    Al.
    All progress began with an idea

Members who have read this thread : 1

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