NOR Flash Memory 2Mbit

class S25FL204K.S25FL204K[source]

Bases: object

Class object for 4Mbit NOR flash memory chip

CE_DESELECT()[source]

Deselect flash memory.

Parameters:none
Returns:none
CE_OUTPUT()[source]

Configure Chip Enable pin as output.

Parameters:none
Returns:none
CE_SELECT()[source]

Select flash memory chip.

Parameters:none
Returns:none
blockErase(address)[source]

Erase a block from the flash memory chip.

Parameters:address – Block initial address
Returns:none
chipErase()[source]

Flash memory chip class.

Parameters:none
Returns:none
close()[source]

Close the SPI interface for the flash memory chip.

Parameters:none
Returns:none
deepSleep()[source]

Put the memory in deep sleep mode.

Parameters:none
Returns:none
isWriteBusy()[source]

Check if a write is in process.

Parameters:none
Returns:none
jedec_ID_Read()[source]

Flash memory chip class.

Parameters:none
Returns:none
readArray(address, arrayLength)[source]

Flash memory chip class.

Parameters:
  • address – Starting address of array
  • arrayLength – Array length in bytes
Returns:

none

readByte(address)[source]

Read one byte from the given memory address.

Parameters:address – Address of data in memory.
Returns:none
readID()[source]

Flash memory chip class.

Parameters:none
Returns:none
readStatusRegister(statReg)[source]

Read the contents of the status register.

Parameters:statReg – Address of one of the status registers
Returns:stat - Status register contents
sectorErase(address)[source]

Erase a sector from the flash memory chip.

Parameters:address – Sector address
Returns:none
setBlockProtection(prot)[source]

Set the contents of a specific block as protected.

Parameters:prot – Specific block
Returns:none
wakeUp()[source]

Wake up from deep sleep mode.

Parameters:none
Returns:none
writeArray(address, pData, arrayLength)[source]

Write an array to the memory chip.

Parameters:
  • address – Address of data in memory.
  • pData
  • arrayLength
Returns:

none

writeByte(data, address)[source]

Write one byte at a specific address in the memory chip.

Parameters:
  • data
  • address
Returns:

none

writeStatusRegister(statReg)[source]

Write a new value to the contents of the status register

Parameters:statReg – Address of one of the status registers
Returns:none

Previous topic

Accelerometer / Magnetometer with advanced motion detection capabilities and tap gesture detection

Next topic

Real Time Clock And Calendar with battery backup

This Page