5.3.2.2 : Select I2C Slave Address
When using the raw I2C read and write commands, a slave device address must first be selected. After
entering the “a” command, a prompt will be displayed to enter the address. The device address must be
two hexadecimal characters, and should be entered in 7-bit format (the address is shifted down by one
bit so that the Read/Write bit is not included).
=> a
Enter the new I2C address: 4c
=>
5.3.2.3 : Raw I2C Read
Perform a single byte read on the local I2C bus and display the result. The following example shows
the steps necessary to get the current temperature reading from the ADT7461 sensor using raw I2C
commands. First bus 1 is selected, then the device address (0x4c) is set. A write to the device is performed
to set its internal address pointer (0x00), and finally the read is performed and the result is displayed
(0x5E).
=> 1
=> a
Enter the new I2C address: 4c
=> w
Enter the data to write: 00
=> r
Data read from I2C: 0x5E
=>
5.3.2.4 : Raw I2C Write
Write one or more bytes to the local I2C bus. After entering the “w” command, a prompt will appear to
enter the data to write. The data should be entered in hexadecimal format. Multiple bytes may be entered
and the data should be terminated with a carriage return. The following example shows how to write a
byte (0xA5) to address 0 of the on-board EEPROM using raw I2C commands.
=> 2
=> a
Enter the new I2C address: 50
=> w
Enter the data to write: 00a5
=>
VP3500 User Manual • Document Number 101-3500-0001 • Revision A0
Property of Rigel Engineering, LLC. Confidential & Proprietary
690 Cone Park Court, Merritt Island, Florida 32952
page 87