I2CWrite with Internal EEPROM 12F675


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2008
    Posts
    5

    Default I2CWrite with Internal EEPROM 12F675

    Hello!

    I have a quick question! I looked through PBP manual and didn't find enough information on how to do Internal EEPROM write on PIC12F675 (I also went through uCs datasheet).
    Problem is that I do not understand where I can't find Control info for addressing internal eeprom?
    I2CWRITE Datapin,clockpin, CONTROL, .....
    I really do not understand this... For other external I2C devices this info can be found in their datasheets but this appears not to apply for 12F675.

    Thank you!

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    have a look for
    DATA
    READ
    WRITE
    in your manual
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Nov 2008
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Yup I already looked.
    Data, Read, Write don't work on 12F675. Instead I must use I2CREAD command. So I add a Define at the beginning of pbp code (DEFINE I2C_INTERNAL 1) but then when it is actual I2CREAD/WRITE command I don't know what to use as control parameter (looking at those 24LC0X samples I gues I could try %10100000).

    Thanks!

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    DATA, READ, WRITE does work for the 12F675.

  5. #5
    Join Date
    Nov 2008
    Posts
    5


    Did you find this post helpful? Yes | No

    Default

    Many thanks!
    I see now that I have hugely overlooked the manual (12CE67X not 12F67X).

    Please delete this silly topic!

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  3. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  4. Internal EEPROM Read/write Addressing Errors with 18F PIC's
    By Melanie in forum FAQ - Frequently Asked Questions
    Replies: 18
    Last Post: - 12th July 2005, 19:42
  5. I2CWRITE writing Strings to EEPROM
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 27th March 2005, 19:45

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