Problems with driving external EEPROM M24256


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by kindred22 View Post
    how to read and write data on the internal eeprom of 16f877a?
    is there a need of interrupt disable?
    because when i program a reading data it will out only on the lcd a 0 using the command READ passing through a variable, and on to the lcd..
    on the writing data will cause an infinite loop...
    thank you...advance
    And yet again...where's the code?

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    And yet again...where's the code?
    Silly, it's still in the phillipines!
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Cool

    Quote Originally Posted by Joe S. View Post
    Silly, it's still in the phillipines!
    OF COURSE! What was I thinking! That's where it's been all along...

    And I would've gotten away with it too if it hadn't been for you meddling kids...

  4. #4
    Join Date
    Nov 2007
    Location
    Bohol, Philippines
    Posts
    4


    Did you find this post helpful? Yes | No

    Default Code!

    sorry i didn't put out the code...

    -------

    portb=0
    trisb=0

    aa var byte
    bb var byte

    eeprom 2,[0]
    aa=4
    write 2,aa
    read 2,bb

    if bb=4 then
    portb.0=1
    endif

    end

    ----------------------------------

    that is my code!!!
    using 16f877a did not light portb.0
    using 16f84a light...
    is there any prob with my code?

    tnx...

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by kindred22 View Post
    sorry i didn't put out the code...
    -------
    portb=0
    trisb=0
    aa var byte
    bb var byte
    eeprom 2,[0]
    aa=4
    write 2,aa
    read 2,bb
    if bb=4 then
    portb.0=1
    endif
    end
    ----------------------------------
    that is my code!!!
    using 16f877a did not light portb.0
    using 16f84a light...
    is there any prob with my code?
    tnx...
    How many times are you going to double post?
    Once is more than enough from the multiple personalities.

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. Replies: 1
    Last Post: - 28th January 2010, 22:15
  3. Replies: 5
    Last Post: - 24th June 2009, 03:01
  4. 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
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

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