Max Array Size?


Closed Thread
Results 1 to 15 of 15

Thread: Max Array Size?

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985

    Default Max Array Size?

    Hi
    If your goal is to have the maximum RAM array size, what Pic, and what version Pic BAISIC would you be using, and what would that size be?
    The Pic can be any Pic BASIC supported Pic, and the Pic BASIC version could be PBP3, or any other version.

    Short post, but there really isn’t any more to the question
    Cheers.

  2. #2
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Max Array Size?

    Are you asking what PIC has the largest RAM or are you asking how to fill the available RAM on any PIC to the brim?

  3. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Max Array Size?

    Neither.
    No pic I’ve used with PBP has provided a mechanism to define all available RAM in a single array, probably due to bank swapping.
    I’d guess PBP wants the RAM in an array to be continuous, and access it without any bank switching.

    But I’ve only ever used PBP with pics up to 16F876/877, and went straight to dsPic with C from there.
    Maybe some version of PBP/3 with some 18F family can have larger PBP arrays.

  4. #4
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Max Array Size?

    When you compile you get several files, one is called your .LST or List file. If you open that file, at the bottom it shows you how much available memory you have used in each of the categories.

  5. #5
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: Max Array Size?

    Art, You really need to look at some of the newer pic's. I have just finished some code for my daughter to build a table lamp with 1000 APA102C's. That's controlling over 3000 memory locations contiguously. It uses an 18F26K22 with dual UART ports. !
    1 for EPS8266 support and 1 for BlueTooth with a bootloader.
    Dave Purola,
    N8NTA
    EN82fn

  6. #6
    Join Date
    May 2013
    Location
    australia
    Posts
    2,383


    Did you find this post helpful? Yes | No

    Default Re: Max Array Size?

    here is an example using linear memory access to make a large array , note how the memory is reserved in pbp


    http://www.picbasic.co.uk/forum/atta...5&d=1508279203
    Warning I'm not a teacher

  7. #7
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Max Array Size?

    My current project is for dspic33FJ128GP802, and has an 8000 byte, a 1024 byte, and 2048 byte arrays, but that’s not PBP.
    (I say current, but I think it’s finished now).

    I was wandereng if PBP needs a 2D graphics library. To port mine easily would need a single linear, easily accessed 1024 byte array.

    I do remember one being posted years ago, and think that included lines and shapes, etc.
    But then there have been consistent questions about getting mono graphics displays working over the years also,
    such as a recent one, but granted, that was only about the interface.

    It isn’t for any project of mine, but might be fairly easy to port for others. It’s contingent on some PBP supporting a 1024 byte array, because unlike most gfx libs,
    The frame buffer is already in the format of the display when it’s sent to the display.
    It’s the pixel functions that write into the frame buffer in a manner that accommodates the vertically stacked byte arrangement for some LCDs (and possible OLEDs).

Similar Threads

  1. Is it possible to have determine array size in runtime
    By MajidF in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st March 2016, 17:52
  2. PIC16 Max Array Size
    By MikeWinston in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 25th February 2012, 18:30
  3. EasyHID max usb buffer size
    By jizyjuice in forum USB
    Replies: 4
    Last Post: - 29th November 2007, 06:12
  4. PIC18F4515 Serin2 Maximum Array size
    By millersamsr in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 6th April 2007, 01:29
  5. Word array behaving like byte array.... wierd
    By forgie in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 2nd August 2005, 16:43

Members who have read this thread : 1

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