Reading, writing, erasing flash (16F88)


Results 1 to 27 of 27

Threaded View

  1. #7
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Default

    Did you mean AND?

    Either AND or NOR...one of the two. Either way, in the end, it looks to me like something is broke
    Now I get it; you're testing me, right?

    Nope, sorry; NOR won't do it, either. To repeat my earlier examples, if $F is the "erased" value in the location and the value $A is to be written:

    %1111 OR %1010 returns %1111, so the value in the location is unchanged.

    %1111 AND %1010 returns %1010, which is the desired result.

    But . . . since the only case when NOR returns 1 is as the product of two 0s:

    %1111 NOR %1010 gives %0000 (!)

    In fact, anything NORd with $F or $FF or $FFFF is going to be . . . 0!

    The winner, still the reigning champion, is AND
    Last edited by RussMartin; - 23rd October 2008 at 22:36.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

Similar Threads

  1. Writing & Reading to iButton EEPROM
    By crhomberg in forum Code Examples
    Replies: 2
    Last Post: - 6th October 2008, 19:40
  2. Writing and reading to a 24LC1025
    By Angus Anderson in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 20th April 2007, 11:49
  3. reading, writing, and displaying from eeprom
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 12th January 2006, 22:05
  4. 16F88 reading Analog Input
    By thunderstrike44 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th August 2004, 22:41
  5. Writing / Reading EEPROM 24LC256 Problem
    By schmoddel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th February 2004, 18:55

Members who have read this thread : 2

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