EEPROM Protocol

Command format, byte 0 bitfield, and address spaces for EEPROM access on the Lucas 5AS.

Setup: 5-baud init with address 0x9D (replies 0x55 0x83 0xF7).

Address spaces:

  • EPROM/RAM: 0x000xFF
  • EEPROM: 0x1000x1FF

A command is always 4 bytes. Write size is always 1; read size is set in byte 0.

IndexFieldHow
0Bitfield (see below)
1Address bits 8:1address >> 1
2Value to write0x00 to read
3Terminatoralways 0xAA

Byte 0 bitfield

BitFieldHow
0Address bit 0LSB of the target address
1–3Read sizevalue 0–7, reply length = value + 1 (1–8 bytes)
4unused
5Write flag1 = write, 0 = read
6EEPROM select1 if address ≥ 0x100, else 0
7unused

Full address: (byte1 << 1) | (byte0 & 1).