1Kbit EEPROM

class EEPROM.EEPROM[source]

Bases: object

Class object of the MCP79410 EEPROM chip.

EEPROM_END = 127
EEPROM_PROTECTED_END = 247
EEPROM_PROTECTED_START = 240
EEPROM_Read(mem_address)[source]

The function reads a data byte from the EEPROM.

Parameters:mem_address – Address of register.
Returns:reg - Register content.
EEPROM_ReadPage(mem_address)[source]

This function reads a single page from the RTCC EEPROM.

Parameters:mem_address – EEPROM address to write to
Returns:buffer - Page buffer
EEPROM_SREG = 255
EEPROM_START = 0
EEPROM_SetBlockProtection(protSetting)[source]

This function sets the EEPROM Block protection settings.

Parameters:mem_address – EEPROM address to write to.
Returns:reg - Page buffer.
EEPROM_Write(mem_address, ee_data)[source]

Write a single byte in the I2C EEPROM.

Parameters:mem_address – Memory register to write to.
Returns:ee_data - Byte data to write.
EEPROM_WritePage(mem_address, buffer)[source]

This function writes a single page to the RTCC EEPROM.

Parameters:mem_address – EEPROM address to write to
Returns:buffer - Page buffer
EEPROM_WriteProtected(mem_address, ee_data)[source]

Writes to the special protected EEPROM space.

Parameters:mem_address – Memory register to write to.
Returns:ee_data - Byte data to write.
readRegister(rtcc_reg)[source]

Read the value of the register.

Parameters:rtcc_reg – Address of the register.
Returns:Register byte content
writeRegister(rtcc_reg, dat)[source]

Write a new value on the register.

Parameters:
  • rtcc_reg – Address of the register.
  • dat – Byte value to be written on the register.
Returns:

none

class EEPROM.PROTECTION_t[source]

Class type for EEPROM protection settings.

ALL = 3
HALF = 2
QUARTER = 1

Previous topic

Real Time Clock And Calendar with battery backup

Next topic

Altimeter/ Barometer/ Temperature sensor

This Page