Realtime 32x8k lookup table operation with PICBASIC PRO and PIC hardware possible?


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2013
    Posts
    1,078

    Default Realtime 32x8k lookup table operation with PICBASIC PRO and PIC hardware possible?

    Hello.

    Say the following situation.

    We have 8 tables, 32k size each.

    The incoming signal bursts 32768 samples in about 100msec.

    Our task is, identify by first 64 byte the incoming signal, and output data from apropriate table, synced with input signal.

    Is this possible?

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,516


    Did you find this post helpful? Yes | No

    Default Re: Realtime 32x8k lookup table operation with PICBASIC PRO and PIC hardware possible

    Hi,
    I'm not going to tell you that it's doable and I'm not going to tell you that it's not but lets take a look at it.
    The first issue, obviously, is memory. There's no 16F or 18F PIC available with >256kB memory, I think the most memory you can get in the 8bit ones is 128kB - so you're going to need an external memory of some sort.

    The easiest to deal with probably is a SPI interfaced FLASH memory of some sort. They are cheap, available in a large array of sizes and they are cheap. EDIT: Did I say they are cheap ;-)

    If the input and output "signals" are "random", ie the output values can not be retreived sequentially from the memory you're going to have to transfer perhaps 5 bytes to the memory to get 1 byte back - a total 40bits. Then you're going to have to do that 327680 times per second for a total average bitrate of 1.3Mbit / second. In reallity you're going to run the SPI faster than that - which is doable with the SPI peripheral in the PIC.

    I have a feeling it might be doable but it obviously depends on what else the PIC needs to do. How are the "samples" ie. the index pointer for the lookuptable getting into the PIC?

    More details please?

    /Henrik.

  3. #3
    Join Date
    Jan 2011
    Location
    Sydney, Australia
    Posts
    166


    Did you find this post helpful? Yes | No

    Default Re: Realtime 32x8k lookup table operation with PICBASIC PRO and PIC hardware possible

    WOW Henrik!
    The depth of your knowledgeable responses never ceases to amaze.
    The same applies to all the other regular contributors to this forum.
    Your on-going help to resolve my PIC issues is greatly appreciated.
    To all of you, thank you so much.

    Merry Christmas to you all.

    Cheers
    Barry
    VK2XBP

Similar Threads

  1. How do you create a lookup table?
    By AlexanderWinnig in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 12th November 2010, 15:37
  2. Lookup table syntax.....
    By TerdRatchett in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 19th May 2009, 05:45
  3. Lookup table or Math?
    By ronjodu in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 2nd May 2008, 18:55
  4. Lookup Table
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 11th March 2008, 11:38
  5. Picbasic pro help please + hardware suggestions
    By tsteele in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 21st August 2006, 16:38

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