PreviousNext
Memory peripherals
Help > Introduction > Memory peripherals

The following table lists the characteristics of DPA memory peripherals.

 

 

RAM

Size

PERIPHERAL_RAM_LENGTH

 

TR-7xD: 48 bytes

TR-7xG: 80 bytes

DPA addressing

0…PERIPHERAL_RAM_LENGTH-1

 

TR-7xD: 0…47

TR-7xG: 0…79

C code addressing

uns8 PeripheralRam[PERIPHERAL_RAM_LENGTH];

 

 

Internal EEPROM

Size

PERIPHERAL_EEPROM_LENGTH

 

[N]: 192 bytes

[C]: 64 bytes

DPA addressing

0…PERIPHERAL_EEPROM_LENGTH-1

 

[N]: 0…191

[C]: 0…63

C code addressing

using eeReadByte, eeReadData, eeWriteByte, eeWriteData

address range PERIPHERAL_EEPROM_START (PERIPHERAL_EEPROM_START+ PERIPHERAL_EEPROM_LENGTH-1)

C code initialization

#pragma cdata[ __EESTART + PERIPHERAL_EEPROM_START + MY_ADDRESS ] = MY_BYTE0, …

 

 

External EEPROM

Size

EEEPROM_READ_LENGTH

 

32 Kbytes

DPA addressing

read: 0…EEEPROM_READ_LENGTH (32 Kbytes)

write: 0…EEEPROM_WRITE_LENGTH (16 Kbytes)

C code addressing

same as DPA addressing using eeeReadData and eeeWriteData

C code initialization

#pragma cdata[ __EEESTART + MY_ADDRESS ] = MY_BYTE0, …