Skip to content

Commit

Permalink
Merge pull request #33 from GlibSkunk/master
Browse files Browse the repository at this point in the history
Add MB85RS4MTY 4MBit FRAM Chip
  • Loading branch information
hathach authored Aug 28, 2024
2 parents 801479b + 7a67d02 commit 0d912ef
Showing 1 changed file with 7 additions and 0 deletions.
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;
}

0 comments on commit 0d912ef

Please sign in to comment.