Jump to content
43oh

vim505

Members
  • Content Count

    5
  • Joined

  • Last visited

Everything posted by vim505

  1. Hi, I am trying to get the status from a I2C transmission. But the Wire.endTransmission() always returns a zero. It is not a problem of the wire library, because I can find the same problem using code composer studio using the TI compiler as well with the Gnu Compiler. On the osciloscope I can see that the Master sending, bit 9 has a nack, no bytes are send afterwards, so the cpu knows it isn'r right but the I2C Master Control/Status register only gives Idle(32), also ROM_I2CMasterErr returns a 0 I have tried: uint8_t sendTxData(unsigned long cmd, uint8_t data) { d
  2. Hi L.R.A, Thanks for the help, I have got it working. cheers, John
  3. Hi Mr Cruz, I2c is not that tricky, I have done a lot of i2c on arduino, thing is the TM4C1294 has 8 separate I2c channels. So you have to tell energia what chanel to use. For this you use the setmodule command. Then you tell the master start communicating with the slave. The master starts by putting a clock and an adress on the sda and scl lines. And here is my problem on my oscciloscope I cannot see these signals, further more the software hangs trying to execute these commands. That brings me to the conclusion that there is something wrong inside the libraries. I am fully aware tha
  4. Hi, I am trying to get i2c working on a EK-TM4C1294XL on energia. I am trying to use i2c channel 0. So they should be on pb2 and pb3. Thing is, I do not see any signal on sda or sck on the scope except for the pullup. On the serial debug I see "Start" and "Loop" but "Loop2" never appears. Like it is stuck sending I2c. As simpel as this program is, I am not getting it or something is wrong in the libraries. Hope you can help, cheers John #include <Wire.h> void setup() { Wire.setModule(0); Wire.begin(); // join i2c bus (address optional for master)
  5. Hi, I am trying to get i2c working on a EK-TM4C1294XL on energia. I am trying to user i2c channel 0. So they should be on pb2 and pb3. Thing is, I do not see any signal on sda or sck on the scope except for the pullup. On the serial debug I see "Start" and "Loop" but "Loop2" never appears. As simpel as this program is, I am not getting it or something is wrong in the libraries. Hope you can help, cheers John #include <Wire.h> void setup() { Wire.setModule(0); Wire.begin(); // join i2c bus (address optional for master) Wire.setModule(0); Seri
×
×
  • Create New...