writing 256 bytes to eeprom


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    It sounds easy till you actually try it.

    And with this NKK display, if you want to change anything, you have to redraw everything.
    Change one number and it has to remember everything else that was on the screen too.

    Using a 16F876A doesn't help much, with a maximum array size of 96 bytes, you can't just hold the entire display in a nice neat buffer to modify and resend when needed.

    I'm playing with the 4x10 mode now. Much less RAM used.
    But still haven't got my rows and columns figured out yet.
    <br>
    DT

  2. #2
    Join Date
    Nov 2008
    Posts
    41


    Did you find this post helpful? Yes | No

    Default

    I'm playing with the 4x10 mode now. Much less RAM used.
    But still haven't got my rows and columns figured out yet.
    At work we made an excel sheet with color coded columns and formulas to give the hex numbers when blocks are filled in. On Monday I'll post it here for others who want to do similar things.

    If you do 32 shiftout lines it makes the hex file over 10kb in size. Yesterday I had success in writing the contents to the eeprom and then reading the whole thing in a 256 count for loop. That hex file was something like 1.5kb.

    A 16F876A is not a requirement. I chose it for the two pwm channels and this display idea came up later. Skimask's post about using the nokia lcd gave me insight on how to write to the eeprom. He used the 18F series for its bigger eeprom and faster speed. I found the PIC18F4620 which matches his specs and also has multiple pwm channels. Do you think thats better suited?

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Feel free to continue what you're doing.
    But I think you'll be deleting it all very soon.

    EEPROM is not the way to go.

    The 876A will do.
    It's limitations made the GLCD idea extremely hard to do is all I was pointing out.
    Done as a character display, instead of a graphic display, the 876A has plenty of room and speed.
    <br>
    DT

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default Expensive switches

    I had started to re-do some of my GLCD code to support these things last night...then I got to wondering what they cost.
    $40USD at Digikey! No thanks!
    But obviously, I agree, EEPROM, not good.
    If you've already got half of a circuit built for the 16F876A, just switch over to an 18F2620 (or 2685 for even more code space). Practically the same pinout and aside from a few register changes (and config changes ), it'll almost drop right in.
    In my latest project, if I wasn't using so much of the onchip ram for other things, I'd keep the font table in a large array and use it from there. As it is, I only keep the alpha & number character 'font' in an array and keep the rest in the eeprom.
    The '4620 has ~3900-ish bytes of ram. You should be able to double-buffer one screen in the ram easily, modify it there, then shift the whole thing out in one shot, if that's the way you want to go.
    Could use an external FRAM for buffering the data though...

  5. #5
    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
    ...then I got to wondering what they cost.
    $40USD at Digikey! No thanks!
    ...
    How can you put a price on <b>COOL</b> ? Especially for a one off Car project . . . Just imagine your GEO with all those cool . . .
    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.

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    How can you put a price on <b>COOL</b> ? Especially for a one off Car project . . . Just imagine your GEO with all those cool . . .
    Right again...(not a GEO, just an old Chevy Sprint)

    Cool Points > USD

  7. #7
    Join Date
    Nov 2008
    Posts
    41


    Did you find this post helpful? Yes | No

    Default

    Yeah the $40 price probably keeps most hobbyists away from those displays. They really are about the size of a key on your keyboard.

    This project is at the prototype stage now so changing pics is no problem. I'll order a few 18F2620 and start looking at the datasheet.

    The '4620 has ~3900-ish bytes of ram. You should be able to double-buffer one screen in the ram easily, modify it there, then shift the whole thing out in one shot, if that's the way you want to go.
    What command would write the screen into ram, writecode? The digits to be displayed are arrays of bytes? When an update is needed, the corresponding array of byte(s) is written to the specified ram location? I have an understanding of what needs done, now just putting it into code

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. Writing & Reading to iButton EEPROM
    By crhomberg in forum Code Examples
    Replies: 2
    Last Post: - 6th October 2008, 19:40
  3. 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
  4. I2CWRITE writing Strings to EEPROM
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 27th March 2005, 19:45
  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