Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 20 of 20

Thread: Teensy Audio Shield Serial Ram - chip compatibility question

  1. #1
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54

    Teensy Audio Shield Serial Ram - chip compatibility question

    I've setup the shield yesterday and it is amazing!
    I'm already trying to expand the memory.

    I've found other kinds of SPI Serial Flash Memory chips ready to ship in my country and wanted to ask you if you think it is compatible:
    It is the W25Q64FV, and here is the datasheet.
    https://cdn.sparkfun.com/datasheets/...y/w25q64fv.pdf
    And the recommended one datasheet too.
    https://www.pjrc.com/teensy/23LC1024.pdf

    it seems to have compatible pinout do you think it can work?
    Thank you.

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    15,929
    Before answering, it's important to understand the external memory doesn't function as general purpose memory. It doesn't work that way. This isn't the same as getting more memory by changing from Teensy 3.2 to Teensy 3.6.

    Both of these chips can work, but for very different purposes.

    Currently, the only object which supports serial flash is this:

    https://www.pjrc.com/teensy/gui/?inf...SerialflashRaw

    Likewise, if you add the serial RAM, this is currently the only object which can use it:

    https://www.pjrc.com/teensy/gui/?inf...tDelayExternal

    In the future I'm planning to add more pre-recorded playing options for the flash chip. The RAM might get a live sample-then-play object someday. But in general, if you want more memory for anything else, Teensy 3.6 is the most you can get.

  3. #3
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Hey Paul, thanks for the detailed answer. In fact I've ordered both a serial ram and a flash solution and will see which is better.
    I'm altering some modules like AudioPlaySdRaw to be able to access different points of the file randomly (which microsd complains a little bit because of the nonsequential speed)

    Probably Flash will be easier for me because of the similarity of working with SD. card
    But I would love to be able to write down a RAW audio directly to AUDIO_MEMORY_23LC1024, and play it back from any point, shuffle pieces, maybe reverse speed and so on.

    In other hand I'll be playing with my Teensy 3.5 and audio next week too.
    Cheers

  4. #4
    Moderator Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,347
    The 23LC1024 is only 128KB, so, maybe, you want to use more than one.

  5. #5
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Chip is working great, it has actually 16Mb of space!
    I've ported all the code I was using from SD_t3.h to SerialFlash, working great, thanks for the similar functions.

    I've experiencing erratic behavior from time to time, sometimes SerialFlash takes almost one minute to start working properly,
    I've been reading SerialFlash readme and I suppose it has to do with file rewriting when erasing.
    Any ideas on that?

    Thank you
    Last edited by dimitre; 01-29-2017 at 04:57 PM.

  6. #6
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Looking good
    Click image for larger version. 

Name:	IMG_8596.jpg 
Views:	62 
Size:	94.3 KB 
ID:	9533

  7. #7
    Moderator Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,347
    Yes, erasing on flash-chips takes a long time. This is perfectly normal.

  8. #8
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Thanks Frank, one question: is it mandatory to overwrite 0xFF in an entire erased file when using Flash to be able to write again? I'm a newbie in that subject.
    If it is mandatory maybe I should begin using some Serial Ram chips to get instant results, as it was a digital guitar effect.
    Thank you

  9. #9
    FLASH is such that 1's can be written to 0's to change their value. So starting at 0xFF means they can take on any value. Formatting put's all bytes to 0xFF. Once a ZERO is 'written' only a format can undo it.

  10. #10
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Thank you defragster! hope this thread help others too.

    About SRAM chip, I've research a little bit and it seems the one recommended in Teensy Audio Adaptor Board is the best you can get (23LC1024).
    At least I can't find any with more than 1Mbit, Sop-8.
    Do you think there are chips with more memory out there?
    Thanks

  11. #11
    Moderator Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    4,347
    As far as i know, the 23LC1024 are the only ones.
    Maybe this is useful: https://github.com/FrankBoesing/memoryboard ?

  12. #12
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Hey Frank thanks, it is an amazing project and I'll be ordering one to test soon.
    Just to update things here, I've overcome the overwrite problem by creating a new file on each record, and start erasing the previous file after recording the new one.
    This way Teensy will only be busy overwriting when playing back files, it is working great with two simultaneous tracks now.
    Maybe I can even use the SD card this way.

    For some reason as soon as I plug the synthesizer in Line In, even without sound the built in LED starts to fade a little bit, as seen in this video:

    Have anybody else noticed it? is this a matter of concern? (I'm aiming at using in a live performance in near future)

    Thank you!

  13. #13
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Sorry, answering my last question, pin 13 is part of the communication, so it is natural the LED is blinking.
    Other question, when not turned on (plugged on usb), the line out from teensy audio produces a noise, is there any way to avoid it?
    Thanks

  14. #14
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    15,929
    Quote Originally Posted by dimitre View Post
    when not turned on (plugged on usb), the line out from teensy audio produces a noise, is there any way to avoid it?
    Maybe add a wire for ground?

  15. #15
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Thank you all! Just sharing the actual state of the project:
    Actually building some pedals to activate with foot, and a midi out port to sync BPM with a drum machine

  16. #16
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Other question, is it possible to use a NAND chip instead of a NOR chip?
    Thanks

  17. #17
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    15,929
    The terms NAND and NOR, which technically describe logic functions, are normally used in the context of memory to describe Flash, not RAM.

    So basically, I don't understand your question. Maybe you could be more specific? Actual part numbers with links to their datasheets would be best. Some explanation of what you want to actually accomplish would also go a long way towards helping us to help you.
    Last edited by PaulStoffregen; 03-20-2017 at 10:18 PM.

  18. #18
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Sorry I think I've hijacked my own thread.
    I choose the path of the Flash chip, faster than SD card but still takes a lot of time to erase everything.
    I'm using right now the W25Q128FV with amazing results, but very slow erase time.

    Wondering about the W25M02GV and the specs can be seen here
    http://www.winbond.com/hq/product/co...h/?__locale=en

    At first sight it seems to have the same voltage / pinout.

    Thanks!

  19. #19
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    15,929
    W25M02GV has not been tested. I do not know if it will work.

    Any idea where I can buy this chip? Digikey has it listed, but no stock and full reel minimum quantity.

  20. #20
    Member dimitre's Avatar
    Join Date
    Aug 2016
    Location
    São Paulo
    Posts
    54
    Sorry I've just noticed it is another form factor: it is WSON-8 instead of SOP-8.
    Do you think it fits in Teensy Audio Shield PCB? I've noticed the alongated rails

    Winbond recently put an online store, here is some Serial NAND Flash
    https://www.techdesign.com/market/wi...ter=1510404753

    And I've found some new products on Taobao.com too, just figuring out some online trade to be able to order stuff there too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •