MichaelMeissner
Senior Member+
The Teensy-LC has a 2nd SPI port using pin 0 for MOSI1, pin 1 for MISO1, and pin 20/A6 for SCK1.
The chips yes, if they are deselected with cs (and that's the reason for the needed pullups on cs! - "default" deselect) they are invisible on the bus.BTW, what does one do if pins 10 - 13 are required for another peripheral like an I2S mic or radio? Can these SPI flash chips be multiplexed with other peripherals?
I expected that these Spansion chips would have internal pullups on CS like they do on RESET and WP; I didn't add any external pullup resistors.
If I de-select any SPI add-on device by holding CS HIGH (default) on all of them, then can I use the SPI port for the other Kinetis-on-chip functions like I2S, which also (in the simplest configuration) use Teensy 3.1 pins 11, 12, and 13?
Yes, there are internal pullups on RESET and WP but not CS. This can be handled in software as in the dorkbot tutorial so for now the testing of these add-on boards can continue, but I agree good practice would be to add a 0402 4K7 pullup resistor on CS as I have already added a bypass cap on VIN.
SPI is still a bit mysterious to me but it is becoming a bit clearer the more I work with it!
What method are you using to read/write? Any possibility of accessing these memory chips using a FAT files system or similar? How about across multiple memory chips?
128MB per chip is supported
At the moment, i think it's better to wait until we know more about Pauls plans regarding usb-mtp before doing further steps.
@EK701: Out of curiosity: why do you need a FAT ? What do you want to do with it ?
Yes - I plan to verify-test with that in the next week.I hope the S70FL01G is one of them!
#if USE_SPANSION_FL512S || USE_SPANSION_FL01G
/* Spansion Corp. flash SPI FL512S SPI Flash memory or the FL01G which is two FL512S in one package - NOTE!!! two chip selects needed for the FL01G.
...
#if USE_MICRON_N25Q512A
every SPI hardware add-on uses pin 10 for NSS. That pin should be avoided in any add-ons.
On the other hand, if you want to record and analyze audio at 44.1 or 48 kHz for more than a few seconds, 2 Gbits is not nearly enough!