Problem reading 24FC1025 EEPROM with 18f14k22


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Problem reading 24FC1025 EEPROM with 18f14k22

    I bet it's that there are no pullup resistors on the SCL and SDA lines when using I2C command. The SHIFTOUT and SHIFTIN command use the pins in a sink and source mode but the I2C mode reverses the the data pin direction at the end of the byte sequence looking for the ACK bit from the slave device. There must be a pullup on the data line to provide sourcing current back to the PIC. If the PIC does not see the proper ACK signal then the command sequence is aborted.
    Dave Purola,
    N8NTA
    EN82fn

  2. #2
    Join Date
    Feb 2012
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Problem reading 24FC1025 EEPROM with 18f14k22

    I am running at 16MHz with the Internal OSC. I do have a 10k pullup on the SDA line. I tried a 2k as well and it did the same thing. I don't have any pullups on the SCL line now, but I did try that before with no luck. I will try it again. I may drop a 16f690 in for testing purposes (Pin compatable with the 18f14k22 and I know they work with this EEPROM).


    Quote Originally Posted by Dave View Post
    I bet it's that there are no pullup resistors on the SCL and SDA lines when using I2C command. The SHIFTOUT and SHIFTIN command use the pins in a sink and source mode but the I2C mode reverses the the data pin direction at the end of the byte sequence looking for the ACK bit from the slave device. There must be a pullup on the data line to provide sourcing current back to the PIC. If the PIC does not see the proper ACK signal then the command sequence is aborted.

  3. #3
    Join Date
    Feb 2012
    Posts
    64


    Did you find this post helpful? Yes | No

    Default Re: Problem reading 24FC1025 EEPROM with 18f14k22

    Dave & DEMON,
    Problem solved! I added the 10k pull-up resistor to the SCL line as you suggested and everything started working. I did have a 10k on both the SCL and SDA lines originally, but at that time I must have had something else wrong. I checked the datasheet which only stated pullup of 2k-10k on the SDA line so I removed the SCL pull-up and never put it back. I was able to fully load the EEPROM and now I can read an entire string from EEPROM at a time (Much better than the ShiftIn/Out way). I guess since the Shiftin/out was working I assumed the electronics was correct. I have used these EEPROMS in the past and never had an issue. I guess I should have looked at my old schematics before pointing the finger at Pic Basic!

    Thank you all for the help!

    Jim

    Quote Originally Posted by JimAvanti View Post
    I am running at 16MHz with the Internal OSC. I do have a 10k pullup on the SDA line. I tried a 2k as well and it did the same thing. I don't have any pullups on the SCL line now, but I did try that before with no luck. I will try it again. I may drop a 16f690 in for testing purposes (Pin compatable with the 18f14k22 and I know they work with this EEPROM).

Similar Threads

  1. 18F14k22 eTouch
    By warrier in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th July 2009, 05:20
  2. Problem reading 93c46 EEprom
    By dj.lambert in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th March 2009, 06:10
  3. Reading eeprom
    By Lotondo in forum Off Topic
    Replies: 1
    Last Post: - 21st February 2007, 17:37
  4. problem of reading eeprom 24lc515
    By mike12 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 1st January 2006, 17:36
  5. Writing / Reading EEPROM 24LC256 Problem
    By schmoddel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th February 2004, 18:55

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts