From 2756b58621b14a6e74bd99ecd527eb6cc052ba53 Mon Sep 17 00:00:00 2001 From: GlibSkunk Date: Tue, 30 Jul 2024 11:18:37 -0400 Subject: [PATCH] Add MB85RS4MTY 4MBit FRAM Chip 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 --- Adafruit_FRAM_SPI.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Adafruit_FRAM_SPI.cpp b/Adafruit_FRAM_SPI.cpp index 81f2e00..095e67a 100644 --- a/Adafruit_FRAM_SPI.cpp +++ b/Adafruit_FRAM_SPI.cpp @@ -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 @@ -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; }