On-Chip RAM


Closed Thread
Results 1 to 13 of 13

Thread: On-Chip RAM

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by DaveC3 View Post
    I have a 18F2515 it has no EEPROM but has 3K of RAM. I know how to read and write to EEPROM using "DATA" and "EEPROM" statements. I can not find anything on accessing the on-chip RAM.
    1. Can you write to RAM at Program time?
    2. How do you write and read the RAM while running the program.
    Thanks
    Dave
    On chip ram is variable space, i.e.
    my_variable var byte[2000]

    There's your 2000 bytes of on chip ram right there...Use it as you please...

  2. #2
    Join Date
    Mar 2008
    Location
    Gerogetown, Texas
    Posts
    94


    Did you find this post helpful? Yes | No

    Default

    Thanks Skimask

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by DaveC3 View Post
    Thanks Skimask
    Take note that unless you have a look at your .LST file, you'll never really know how much extra 'ram' is available.
    When I'm writing a program, I set up a rather large array, i.e. emptyspace var byte[3900], and when it fails to compile because it can't fit the 'emptyspace' variable, I turn down the number a bit until it fits.
    Helps me keep tabs on how much memory (ram in this case) I'm using so I know how many other useless 'features' I can add to whatever I'm working on.

Similar Threads

  1. Camera with PIC chip
    By The Master in forum Off Topic
    Replies: 5
    Last Post: - 1st July 2008, 15:28
  2. TV Display Chip
    By zadok in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 17th April 2008, 23:17
  3. 16F877 RAM Question
    By Art in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 6th August 2005, 12:47
  4. chip selection aid
    By PICMAN in forum General
    Replies: 4
    Last Post: - 21st February 2005, 19:33
  5. 18f452 tables in ram - code?
    By rshanks in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st October 2004, 06:06

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