Extern memory


Closed Thread
Results 1 to 3 of 3

Thread: Extern memory

  1. #1
    glaubertadeu's Avatar
    glaubertadeu Guest

    Question Extern memory

    Hi
    I need to use a extern memory of 512 bytes in a circuit. I'm using the 24LC65 but it isn't working correctly. When I write a data, it write a address and jump 2 or 3 others address. The memory is working with a PIC16F877, usind I2C. I'm programming in basic (PBP)

    Thanks

    Glauber

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


    Did you find this post helpful? Yes | No

    Default

    As we can't/won't hack your computer and see your actual code... it's a bit hard to give a hand
    Steve

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

  3. #3
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382


    Did you find this post helpful? Yes | No

    Default

    The location variable needs to be a word variable. Also you will need to give the vaule to that variable prior to using it.

    EEPromPointer = 1

    I2CWrite SDA,SCL,wrtdev,EEPromPointer,[Data],Error_Indication
    Pause 10

    This will not work and isn't the same:

    I2CWrite SDA,SCL,wrtdev,1,[Data],Error_Indication
    Pause 10

Similar Threads

  1. Running Out of Programing Memory
    By rsocor01 in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 31st March 2010, 08:26
  2. Need the code to write to a memory
    By Hamlet in forum General
    Replies: 0
    Last Post: - 20th August 2007, 00:22
  3. Replies: 4
    Last Post: - 2nd March 2007, 06:12
  4. sample code for M25P32
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th January 2007, 02:37
  5. Use internal program memory like DATA memory
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th December 2006, 18:38

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