Forum Discussion
Inematov
New Contributor
6 years agoHi all I am using the i2C IP Core. In NIOS i would like to get data from an Bosch BME280.
Now i get (console output) always the same value, nothing changes.. Also not if i try to get data from other geisters. So i believe i do something wrong, but i don`t know what.. or where to start sea...
AnandRaj_S_Intel
Regular Contributor
6 years agoHi,
- Temperature data may be randomly changing better read some other register.
- The tx buffer contains the 1-byte address, Is address (FA)correct ???
it should be 2 bytes FA & FB for temperature data.
Instead of reading temp data, read chip id and check if you are getting expected output for debugging.
Buffer[0]=D0;
alt_avalon_i2c_master_tx_rx(i2c_ptr,buffer,1,buffer,1,0);
Regards
Anand