160 byte framebuffer at 50 fps, internal RAM or external SRAM?


+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2013
    Posts
    1,159

    Default 160 byte framebuffer at 50 fps, internal RAM or external SRAM?

    Hello.
    I'm doing a graphic project, where content of WS0010b OLED display will be updated really fast, 50fps at least.
    The framebuffer size is 160 bytes. Will PBPs arraywrite/arrayread operations provide enough speed at 18F running at 64mhz, to read and write that array at that speed, or better to use external, parallel SRAM for that?

  2. #2
    Join Date
    Aug 2011
    Posts
    461


    Did you find this post helpful? Yes | No

    Default Re: 160 byte framebuffer at 50 fps, internal RAM or external SRAM?

    Pretty much any external ram is going to be slower than internal storage.

  3. #3
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    973


    Did you find this post helpful? Yes | No

    Default Re: 160 byte framebuffer at 50 fps, internal RAM or external SRAM?

    I think the bottleneck will be the serial interface speed (SPI) which is normally used in small OLEDs. I could not find this display WS0010B on searching for it. Unless the PIC supports a SPI DMA engine, the bit banging will slow you down tremendously

  4. #4
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,626


    Did you find this post helpful? Yes | No

    Default Re: 160 byte framebuffer at 50 fps, internal RAM or external SRAM?

    160bytes @ 50Hz is only 64kbits/s (average). Even SHIFTOUT should be able to handle that.
    Running the SPI or MSSP module at a moderate 1Mbit/s will transfer those 160bytes in less than 2ms leaving 18ms for processing between frames.

    Not sure why you're even considering external RAM.
    Even a double buffer should easily fit an 18F series part unless you're using a lot of RAM for other tasks of course.

    Also not sure what part ARRAYREAD plays. Transfering the buffer would be done using a normal loop or, as Jerson mentions, DMA if you want to go the extra mile.

    /Henrik.

Similar Threads

  1. Speed optimization (framebuffer scrolling)
    By HenrikOlsson in forum PBP3
    Replies: 16
    Last Post: - 12th October 2022, 12:06
  2. Replies: 8
    Last Post: - 20th March 2017, 10:34
  3. Internal vs. external osc for comms
    By mtripoli in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th January 2010, 15:58
  4. 160 Baud aldl scantool
    By ahmed_salah in forum Serial
    Replies: 28
    Last Post: - 6th August 2008, 22:43
  5. Effects of Current Draw Using Internal VS External PullUps
    By rixtalbert in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th September 2006, 10:43

Members who have read this thread : 5

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