Memory Objects

MPLAB declares one Python Memory object for each memory type:

memPgm , memData, memRegs, memSFR, memUser

These objects expose the following methods:

  • Read8/Read16/Read32(address) - return a 1,2 or 4 byte little endian integer read at address
  • Write8/Write16/Write32(address,val) - writes a 1, 2 or 4 bytes val in little endian to address
  • Read( address, src, offset, count) - read count bytes from offset in src to address
  • Write( address, dest, offset, count) - write count bytes from address into the byte array dest at offset offset