TMC8462 Datasheet • Document Revision V1.4 • 2018-May -09
168 / 204
5. Write upper byte of the memory address
I2C_DATA_W <= 0x12
6. Send Data
I2C_CONTROL <= 0x04
7. Write lower byte of the memory address
I2C_DATA_W <= 0x34
8. Send Data
I2C_CONTROL <= 0x04
9. Send Repeated-Start Condition
I2C_CONTROL <= 0x20
10. Write the slave address and the R bit ((0x50 « 1) + 1 = 0xA1)
I2C_ADDR <= 0xA1
11. Command: Receive Data and send ACK
I2C_CONTROL <= 0x02
12. Read the data
databyte <= I2C_DATA_R
The last two steps can be repeated as long as it is necessary, for the last byte send a NACK instead:
13. Command: Receive Data and send NACK
I2C_CONTROL <= 0x01
14. Read the data
databyte <= I2C_DATA_R
15. Write 0x10 (Send Stop Condition) to the I2C_CONTROL register.
©2018 TRINAMIC Motion Control GmbH & Co. KG, Hamburg, Germany
Terms of delivery and rights to technical change reserved.
Download newest version at www.trinamic.com