EYE ON NPI – ISSI Serial NAND Flash Chips #EYEonNPI #digikey @ISSI_WW @digikey @adafruit

This week’s EYE ON NPI is a NAND in the HAND, it’s ISSI Serial NAND Flash chips available in a variety of sizes and footprints. These are great options for folks that need more data storage on their PCBs, but don’t necessarily want an SD card.

DigiKey has a selection of 1Gbit and 2Gbit chips, so you have tons of storage for data logs, images, recordings, or even filesystems. And the price is great, you’ll pay much less per byte when buying NAND flash

There’s plenty of times you’ll need to access non-volatile memory on your microcontroller: graphics or audio files for a user interface, maps or almanac data for telemetry, sensor or usage logs, interpreted code scripts, firmware updates, security certificates, etc. these files are too big to be stored in simple EEPROM chips that max out at a few kB. The next step up is to use NOR Flash – you can get up to 256 Megabytes in size!

Compared to EEPROM which comes in 1-Wire, I2C or SPI, you definitely have to use an SPI interface for NOR Flash. It’s also possible on many chips to have 4-bit-at-a-time QSPI or even 8-bit OSPI interfacing for fast reads. And that’s the thing that’s really nice about NOR: instant reads of any byte anywhere in memory just like EEPROM.

Unlike EEPROM you can’t write just one byte at a time anywhere in the storage, you have to write a ‘page’ and erase a ‘sector’ at a time – and each page tends to be about 256 bytes, a sector is often 4KB.

That means if you want to update a file, you’ll need to read the whole 4K block into a memory cache, change the bytes you want to, then erase and re-write the block out. The good news though is once you write out a page, you can pretty much assume it will stay for many years: there’s rarely corrupted data in NOR flash.

And, although erasing and writing is a bit of a pain, the instant-access means NOR is great for ‘XIP’ or other dynamic memory access.

If NOR is so great, why bother with NAND? One is cost: a 2MB NOR chip isn’t too bad about 45 cents in quantity but once you get to the biggest 256 MB ones the pricing gets high pretty quickly: $15 in tray quantities. Considering you can get a 64G SD card for that price, NOR isn’t very cost effective. Second is sizing: if you want 1GB for large files, it just isn’t available. For that kind of density you need NAND flash.

NAND flash is the kind of flash you get when you buy a USB key or microSD card, although those have USB or SDIO interface chips that are wire bonded to the NAND flash chips.

You get a lot more for the price: instead of $15 for 256MB NOR, it’s $3. You also don’t need more pins!

We always thought that NAND flash required a lot of pins since it comes in 48-TSSOP but turns out that you can get it in a QSPI 8-pin format.

That makes it easy to integrate without needing an 8-bit wide memory controller.

However, the architectural decisions that give ISSI NAND the massive size and low cost that we love also make it more complex to use than NOR flash. For one, you can no longer get random access to any byte you like.

Instead, an entire page must be read at once into a 2176-byte cache, and then it can be accessed. This is fine for most uses except we can’t use XIP anymore and there are probably some memory access use cases that don’t work nearly as nicely. Also that high density means that bits are more likely to go ‘bad’ and flip. While you can sorta-kinda get away with not doing error correction or wear leveling on NOR, you absolutely must do error correction and wear leveling on NAND!

ISSI includes a simple multi-bit ECC system that can handle repairing up to 8 bits per 2176-byte page. And, every time there’s ECC errors, you will need to ‘refresh/rewrite’ the data to clean it up. That refresh counts against the 60K or 100K write cycle – which means you are more likely to need wear-level management, even if you don’t expect to write that often. Basically, check to see if your microcontroller SDK has a NAND controller library that can manage this all for you.

So, if you need to level up your storage, with easy-to-use SPI or QSPI-interface, ISSI has many NAND options to let you quickly and inexpensively add 1 or 2 gigabits of non-volatile memory with built in ECC support and block cache. DigiKey will be stocking them shortly, sign up to be notified when they drop into stock mid-next month!

See the video:


Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!

Join us every Wednesday night at 8pm ET for Ask an Engineer!

Join over 38,000+ makers on Adafruit’s Discord channels and be part of the community! http://adafru.it/discord

CircuitPython – The easiest way to program microcontrollers – CircuitPython.org


New Products – Adafruit Industries – Makers, hackers, artists, designers and engineers! — New Products 11/15/2024 Featuring Adafruit bq25185 USB / DC / Solar Charger with 3.3V Buck Board! (Video)

Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi

EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey

Adafruit IoT Monthly — The 2024 Recap Issue!

Maker Business – Adafruit Daily — Apple to build another chip at TSMC Arizona

Electronics – Adafruit Daily — SMT Tip – Stop moving around!

Get the only spam-free daily newsletter about wearables, running a "maker business", electronic tips and more! Subscribe at AdafruitDaily.com !


No Comments

No comments yet.

Sorry, the comment form is closed at this time.