10 / 18 page

- 10 -
© Andigilog, Inc. 2006
www.andigilog.com
December 2006 - 70A05012
aSC7531A / aSC7531B
8
8
8
8
RAM Addr
Write Data
Write Data
FCS
0x20
0x25
0x28
0x1B
Figure 11. Example Register Write
ReadReg()
Reads from the sensor’s internal registers.
Write Data Length:
0x02 (command + address)
Read Data Length:
N (Number of bytes to read)
Command Code:
0xE1
Example bus transaction to read a sensor located at address 0x48. This example reads 2 consecutive locations (0x20 and 0x21).
8
8
8
8
Target Address
Write Length
Read Length
Command
0x48
0x02
0x02
0xE1
8
8
8
8
RAM Addr
FCS
Read Data
Read Data
FCS
0x20
0x9D
0x25
0x28
0x37
Figure 12. Example Register Read
VenCmdEnable()
Vendor Command Enable enables the Vendor Specified Extensions.
Write Data Length:
0x01
Read Data Length:
0x00
Command Code:
0xE2
8
8
8
8
8
Target Address
Write Length
Read Length
Command
FCS
0x48
0x01
0x00
0xE2
0xE0
Figure 13. Vendor Command Enable
VenCmdDisable()
Vendor Command Disable disables the Vendor Specified Extensions.
Write Data Length:
0x01
Read Data Length:
0x00
Command Code:
0xE3
8
8
8
8
8
Target Address
Write Length
Read Length
Command
FCS
0x48
0x01
0x00
0xE3
0xE7
Figure 14. Vendor Command Disable