Problems with driving external EEPROM M24256


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    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...

  2. #2
    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, 15:46
  2. Replies: 1
    Last Post: - 28th January 2010, 23:15
  3. Replies: 5
    Last Post: - 24th June 2009, 04: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, 07:26
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 20: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