Internal eeprom - erase block


Closed Thread
Results 1 to 33 of 33

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default error in my code

    Hi skimask!
    The DEC code will cause a compilation error.
    What shall I do?
    If you know other means please tell me...
    Thank you in advance.

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ria_river View Post
    Hi skimask!
    The DEC code will cause a compilation error.
    What shall I do?
    If you know other means please tell me...
    Thank you in advance.
    What shall you do?
    Read the manual, figure out how to use it for yourself.
    Jeez...try to do some of the legwork yourself for a change...
    I know of plenty of other 'means' to do what you want, but you want to be spoonfed like a little baby...

    Unless of course you don't have a manual because you've got a pirated copy of PicBasicPro.
    Which is entirely possible.
    You know that online PDF at MeLabs website isn't exactly up to date.
    Last edited by skimask; - 19th January 2008 at 07:15.

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


    Did you find this post helpful? Yes | No

    Smile I see

    Thank you for all the help.

    I been reading the manual a lot of times. I even follow the codes and procedures provided by the manual.
    It's just simply won't work.

    Again, thank you very much for your time and ideas.

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


    Did you find this post helpful? Yes | No

    Post me again

    Hi everyone!

    I can read and write now using the pic16f84a but I can't do that using pic16f877a.
    Is there any lines I have to add inorder to allow reading and writing the eeprom?
    I've read the 16f877a datasheet. It is stated there that I have to disable all interrupts before writing. I've tried that but still won't work.

    A working simple code for reading and writing the internal eeprom of pic16f877a is all I need.

    Please help me...
    Thank you in advance.

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ria_river View Post
    Hi everyone!
    I can read and write now using the pic16f84a but I can't do that using pic16f877a.
    Is there any lines I have to add inorder to allow reading and writing the eeprom?
    I've read the 16f877a datasheet. It is stated there that I have to disable all interrupts before writing. I've tried that but still won't work.
    A working simple code for reading and writing the internal eeprom of pic16f877a is all I need.
    Please help me...
    Thank you in advance.
    Well, since you stated that you have beening trying to get it to work, why do YOU post YOUR code, and I'm sure WE can HELP YOU figure out what YOU are doing WRONG.

    And how many times do you have to post the same question, and/or hijack other threads?

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Hi all,

    returning to the original thread...

    I have sucessfully created the circuit and code to work with data and save them it to the external eeprom with a determinated timming.

    I have managed to save/read data in 2 blocks ( 2 sessions ).

    I have one part of the code that is responsable to erase both blocks of data.

    My erasing code is simple and i use a set of ( For x to y...next ) instructions where x and y are the block's starting address and ending address.

    I could use more memory blocks and increase the project's performance but i limited it to 2 blocks because the erasing process takes too long ( 2/3 minutes for both blocks ).

    I know that i could use a faster clock to increase the instruction's speed and erasing process, but i'm working with the internal clock of a 16F88.

    Is there a way i can speed a bit more via software ? Maybe a diferent code/set of instructions that work a bit better ?

    Thanks

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ruijc View Post
    I could use more memory blocks and increase the project's performance but i limited it to 2 blocks because the erasing process takes too long ( 2/3 minutes for both blocks ).
    I know that i could use a faster clock to increase the instruction's speed and erasing process, but i'm working with the internal clock of a 16F88.
    Is there a way i can speed a bit more via software ? Maybe a diferent code/set of instructions that work a bit better ?
    Thanks
    Post your code. 2-3 minutes is entirely TOO LONG! There has to be something silly going on that's causing it to take sooooo long.

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. config bits
    By brianD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 9th February 2010, 13:45
  3. PICBasic newbie problem
    By ELCouz in forum mel PIC BASIC Pro
    Replies: 32
    Last Post: - 12th February 2008, 00:55
  4. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 15:26
  5. 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

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