How to write/read strings EEPROM/LCD


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by g-hoot View Post
    Hmm, the 16f648A is what I'm using too, since that's as much memory as I can find in an 18 pin chip, but I read that to do the code space thing, that you have to enable "Flash Program Write", but that option is disabled when I choose that chip?
    Flash Program Write?
    I just do it this way:
    Code:
    LCDOUT 254,1    ' Clears Display
    LCDOUT 254,128,"Here's how to output"
    LCDOUT 254,192,"Strings from code"
    LCDOUT 254,148,"space easily !"
    LCDOUT 254,212,"Where you put it"
    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.

  2. #2
    Join Date
    Dec 2005
    Posts
    46


    Did you find this post helpful? Yes | No

    Default

    Joe,
    Here's a post taliking about the "Flash Program Write". It's disabled when I select 16F648A I the EPIC Programmer, and the setting is completley taken away when I select this chip in Melabs Programmer 3.31, but maybe I don't really need it.

    http://www.picbasic.co.uk/forum/showthread.php?t=1076

    I've read some about using code space, but don't really understand. So is that part of the 4k space that is used when programing the chip? If so, then I would start storing strings at say space 3500 and then just have to make sure that the program doesn't get any bigger than 3499?

    I don't unserstand this:

    LCDOUT 254,1 ' Clears Display
    LCDOUT 254,128,"Here's how to output"
    LCDOUT 254,192,"Strings from code"
    LCDOUT 254,148,"space easily !"
    LCDOUT 254,212,"Where you put it"

    Isn't that just standard LCDOUT commands in decimal rather than hex? Sorry for all of the questions...this stuff is confusing since I don't know assembly language, and most of the examples use it.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by g-hoot View Post
    Joe,

    Isn't that just standard LCDOUT commands in decimal rather than hex? Sorry for all of the questions...this stuff is confusing since I don't know assembly language, and most of the examples use it.
    Yes that's all it is, but you are using codespace and not eprom. It executes fast and if you lack the knowledge to use eprom, well it works.
    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.

Similar Threads

  1. Parsing Strings...
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 23
    Last Post: - 15th February 2009, 05:13
  2. Please help with storing strings in codespace
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 16th May 2008, 02:02
  3. Processing lengthy strings
    By sougata in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st March 2006, 06:27
  4. I2CWRITE writing Strings to EEPROM
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 27th March 2005, 20:45
  5. reading 2c strings
    By beto in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 22nd December 2004, 16:26

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