Eeprom Programming; Writing And Reading Of Eeprom Pages - Infineon TLE5014P16 User Manual

Gmr-based angle sensor
Table of Contents

Advertisement

TLE5014
GMR-Based Angle Sensor

EEPROM Programming

7
EEPROM Programming
The EEPROM of the TLE5014 consists of user accessible and locked pages with eight 16-bit data words each.
To access a page of the EEPROM, the page is mapped onto a range of registers, which can then be read or
written via the SICI interface.
7.1

Writing and Reading of EEPROM Pages

To read or write data form the EEPROM, the desired page has first to be mapped to working registers EEP_0 to
EEP_7 (address 0x60 to 0x67) by writing the desired page number (0..15) to the EEP_PAGE register (address
0x68, see
Table
13). The content of the EEPROM page can then be read from registers EEP_0 to EEP_7.
Before EEPROM content can be read or written, the steps describes in
Programming the EEPROM is done by sending the following command sequence (example for EEPROM page
0x009):
Map the desired EEPROM page to the registers EEP_0 to EEP_7 (0x60 to 0x67) by writing the page number
into the EEP_PAGE register 0x68 (example for EEPROM page 0x006):
– WRITE-CMD to 0x68: 0x4681
– DATA: 0x0009 (maps EEPROM page 0x009 to working registers 0x60 ... 0x67)
Read the content of the desired EEPROM page by sending a read command to registers EEP_0 to EEP_7,
then change the desired bits and write the content back to registers EEP_0 to EEP_7:
– READ-CMD to 0x60: 0xC601 (reads working register 0x60 = EEP_0)
– DATA: content of working register 0x60 (corresponds to EEPROM register 0x0090
– ...
– READ-CMD to 0x67: 0x8671 (reads working register 0x67 = EEP_7)
– DATA: content of working register 0x67 (corresponds to EEPROM register 0x009E)
To change EEPROM content, first overwrite register EEP_0 to EEP_7 (0x60 to 0x67) with the desired
content:
– WRITE-CMD to 0x60: 0x0601
– DATA: 0xFFFF (example for writing 0xFFFF in EEPROM register 0x0090)
– ...
To program the data from registers EEP_0 to EEP_7 back into the EEPROM page, the following commands
have to be sent:
– WRITE-CMD to 0x68: 0x4681
– DATA: 0x03FF
– WRITE-CMD to 0x67: 0x4671 (program with automatic verification)
– DATA: 0x0009
After writing/reading the EEPROM, send a write command to the ACSTAT register (address 0x01) with data
word 0x0001 to trigger a chip reset:
– WRITE-CMD to 0x01: 0x4011
– DATA: 0x0001 (chip reset)
The EEPROM data is protected by checksums. When changes are made to one or more EEPROM registers, the
respective checksum has to be recalculated and written into the corresponding register. Therefore, the
complete register range which is covered by the checksum has to be read, and the checksum calculation has
to be performed as described in Chapter 2.3. The addresses of the checksum registers and the register range
covered by each checksum are listed in
User's Manual
Table
10.
39
Chapter 6.2.5
have to be performed.
Rev. 1.0
2019-03-12

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tle5014s16Tle5014c16Tle5014s16dTle5014c16dTle5014p16d

Table of Contents