Reply
Posts: 4
Registered: ‎04-17-2017

cpt112s i2c

hi everyone,

      i follow the standard i2c protocol to communicate with cpt112s but i don't get ack on i2c. the communication start when INT pin goes low. my i2c communication code below attached. please help me.

Posts: 4
Registered: ‎04-17-2017

Re: cpt112s i2c

i didn't able find slave address in data sheet.

Posts: 1,956
Registered: ‎10-14-2014

Re: cpt112s i2c

The address could be customized.

I suggest you try to use the Xpress configurator in Simplicity Studio to get the default slave address.

If you did not customized the CPT112S device, I think the address is 0xE0.

 

My views are my own and do not necessarily represent the views of Silicon Labs

WeiguoLu
Posts: 4
Registered: ‎04-17-2017

Re: cpt112s i2c

hi

     what about my i2c communication code?

Posts: 1,956
Registered: ‎10-14-2014

Re: cpt112s i2c

@abdullah

I don't know which device you are using as the I2C bus host to communicate with CPT112S, so it is hard for me to add any comment on it.

If you have a EFM8 STK board from Silabs, you could see there is some example code (in simplicity studio) that used to demo the CPT112S function test.

 

 

 

WeiguoLu
Posts: 4
Registered: ‎04-17-2017

Re: cpt112s i2c

Thank you @delu.