Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MB85RS4MTY 4MBit FRAM Chip #33

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 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,11 @@ 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;
}