hi.......
how to choose the slave address for peripheral device ?
i am using nrf52382 and segger version 15.2
because i want to pass the address in twi sensor
guide me
hi.......
how to choose the slave address for peripheral device ?
i am using nrf52382 and segger version 15.2
because i want to pass the address in twi sensor
guide me
It would help a bit if you could tell us what address your TWI slave has. Maybe attach the spec for the slave device for others to understand what kind of addressing mode it responds to.
Hi... susheel ,I need to send the data over ble using i2c .. slave device is temperature sensor ...I dono how to choose the slave address.. there are different combination
ps_anu said:slave device is temperature sensor
your temperature sensor will come with its product specification for its model version, which will tell you the exact slave address that needs to be used and how to interact with it (command/response interface).
but there are different combination ... using scl..sda..vcc ... i dono how to select
SEE THE SAMPLE like this in my datasheet
A0 A1 A2
scl sda vcc 90h
gnd sda vcc 80h
gnd scl sda a3h
I am not sure what you have pasted here. I think you need some help to understand how you the TWI standard works and you also need to understand how you can use it to interact with sensors before trying to find the API from our side to interact with the slave.
In your data sheet for the temperature sensor you should have very detail info on how to communicate with the sensor. Which temperature sensor are you using. Can you give the sensor name and model number for the IC?