Dec 03, 2014
05:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 03, 2014
05:02 AM
Hello,
I am trying to set up a communication between the XMC1100 and a Bosch pressure Sensor via I2C to read out the calibration parameters from the sensor. I tested the communication with a logic analyzer and in Debugging Mode. Both tests were fine. The logic analyzer showed that the sensor sends the required datas back and in Debugging mode I also get datas, cause the Receive Interrupt Flag (RIF=1) is set to read out the datas. But for some reason just the first data Byte is saved. So i just can read out the first data Byte. Any ideas what i am doing wrong?
Thanks for your help.
BR George
I am trying to set up a communication between the XMC1100 and a Bosch pressure Sensor via I2C to read out the calibration parameters from the sensor. I tested the communication with a logic analyzer and in Debugging Mode. Both tests were fine. The logic analyzer showed that the sensor sends the required datas back and in Debugging mode I also get datas, cause the Receive Interrupt Flag (RIF=1) is set to read out the datas. But for some reason just the first data Byte is saved. So i just can read out the first data Byte. Any ideas what i am doing wrong?
Thanks for your help.
BR George
1 Reply
Not applicable
Dec 03, 2014
06:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 03, 2014
06:04 PM
Hi George,
Did you use FIFO buffer for your received data?
If not, you have to keep reading the data from the receive buffer every time a byte is received, then only the next data will be shifted in.
Did you use FIFO buffer for your received data?
If not, you have to keep reading the data from the receive buffer every time a byte is received, then only the next data will be shifted in.