Other Parts Discussed in Thread: DRV10987
Hi,
I'm using raspberry pi. I connected SDA,SCL and GND of DRV10987EVM (J3) to SDA,SCL and GND of raspberry pi. VCC 15V is given to pin1 of P1. I tried to read and write the configuration registers (0x90 to 0x96) using python program.
For writing to register, I used
slave = 0x52
bus = 1
i2c_handle = I2C.get_i2c_device(slave,bus)
i2c_handle.write16(reg,value)
For reading, I used
length = 2
i2c_handle = I2C.get_i2c_device(slave,bus)
reg_read = i2c_handle.readList(reg,length)
return reg_read
Is this format correct ?
Thanks
- Archana