Download Print this page

Renesas ClockMatrix 8A3 Series Application Note page 6

Advertisement

ClockMatrix
The EEPROM buffer register is 128 bytes long, and is the location where the data is either written to the EEPROM
or read from the EEPROM. For PR4.0, the location is 0xCF80.
The following is an example of an SPI 2-byte addressing sequence that shows how to program the first 128 bytes
of an EEPROM. This example is based on PR4.0 Firmware. For a different firmware, see the appropriate 8A3xxxx
Family Programming Guide.
3.4
Write EEPROM Example
7F FD 80 10 20
#Set the Clock Matrix page register (SPI 2-byte addressing)
4F 68 50
#Write to CF68, set EEPROM_I2C_ADDR=0x50
4F 69 80
#Write to CF69, set EEPROM_SIZE=128 bytes.
4F 6A 00 00
#Write to CF6A, set EEPROM_OFFSET= 0 (write starting at location 0).
4F 80 85 AA 85 AA 84 AA 84 AA 83 AA 83 AA 82 AA 82 AA 81 AA 81 AA 80 AA 80 AA 79 AA 79 AA
78 AA 78 AA 77 AA 77 AA 76 AA 76 AA 75 AA 75 AA 74 AA 74 AA 73 AA 73 AA 72 AA 72 AA 71 AA
71 AA 70 AA 70 AA 69 AA 69 AA 68 AA 68 AA 67 AA 67 AA 66 AA 66 AA 65 AA 65 AA 64 AA 64 AA
63 AA 63 AA 62 AA 62 AA 61 AA 61 AA 60 AA 60 AA 59 AA 59 AA 58 AA 58 AA 57 AA 57 AA 56 AA
56 AA 55 AA 55 AA 00 00 00 00
#Write to CF80, these are the 128 bytes that will be written to the EEPROM.
4F 6C 02 EE
#Write to CF6C, EEPROM_CMD="0xEE02", trigger EEPROM write
#add a wait time to allow the chip to write to the EEPROM. For now, use 100mS. Alternatively, read back the
EEPROM_STATUS and verify that it is 0x8000 and then proceed.
Repeat this for each 128 bytes of EEPROM data.
3.5
Read EEPROM Example
4F 6A 00 00
#Write to CF6A, set offset
4F 6C 01 EE
#Write to CF6C, trigger EEPROM read
#add a wait time to allow the chip to write to the EEPROM. For now, use 100mS.
7F FD 80 10 20
#Set page register
#Read from CF80, read back buffer (note that MSB is set for read commands)
CF 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00
For instructions on how to update the firmware on an EEPROM on a ClockMatrix evaluation board, see the
document ClockMatrix Evaluation Board: Update Firmware on Device and EEPROM.
Feb.10.20
EEPROM Programming Instructions
Page 6 of 7

Advertisement

loading