WRITE TO Eeprom


Closed Thread
Results 1 to 11 of 11

Thread: WRITE TO Eeprom

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default This Is My Code In Writing An Internal Eeprom!

    trisb=0
    portb=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

    I tried 16f84a it function, the LED at portb.0 lights up..
    but in 16f877a, the LED did not light...
    what happen to this situation?
    is there a need to disable interrupts?
    with that simple program....

    HELP US PLS....
    thnx....

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    1 - which version of PBP are you using?
    2 - what clock speed are you trying to run with?
    3 - which programmer are you using?

  3. #3
    Join Date
    Nov 2007
    Location
    Cebu, Philippines
    Posts
    14


    Did you find this post helpful? Yes | No

    Default versions

    from kindred:
    picbasic pro compiler version 2.3
    4MHz
    kit128

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ria_river View Post
    from kindred:
    picbasic pro compiler version 2.3
    4MHz
    kit128
    PBP 2.3? Upgrade to 2.50a... $20 says you can't do it!
    877A support isn't in 2.3 according to melabs support page.

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. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  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