Skip to content

Commit

Permalink
Add MB85RS4MTY 4MBit FRAM Chip
Browse files Browse the repository at this point in the history
Added product ID and modified wake time for part.

There's more functionality to the chip which is still unused.
https://www.fujitsu.com/jp/group/fsm/en/documents/products/feram/lineup/MB85RS4MTY-DS501-00065-3v0-E.pdf
  • Loading branch information
GlibSkunk authored Jul 30, 2024
1 parent 9e6c8e8 commit 2756b58
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Adafruit_FRAM_SPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ const struct {
{0x04, 0x4803, 256 * 1024UL, true}, // MB85RS2MTA
{0x04, 0x2803, 256 * 1024UL, true}, // MB85RS2MT
{0x04, 0x4903, 512 * 1024UL, true}, // MB85RS4MT
{0x04, 0x490B, 512 * 1024UL, true}, // MB85RS4MTY

// Cypress
{0x7F, 0x7F7f, 32 * 1024UL, false}, // FM25V02
Expand Down Expand Up @@ -410,5 +411,10 @@ bool Adafruit_FRAM_SPI::exitSleep(void) {
spi_dev->endTransactionWithDeassertingCS();
delayMicroseconds(100);

// MB85RS4MTY requires 450us (extra 50us) to wake from "Hibernate"
if(_supported_devices[_dev_idx].manufID == 0x04 && _supported_devices[_dev_idx].prodID == 0x0B) {
delayMicroseconds(50);
}

return true;
}

0 comments on commit 2756b58

Please sign in to comment.