Jump to content
43oh

dfskGT

Members
  • Content Count

    6
  • Joined

  • Last visited

Everything posted by dfskGT

  1. Thanks again for your guide. I'll look into that. However, I found that using Wire library, the read of 6 bytes takes almost 6ms. This is way too slow that I got from using modified CCS example which takes under 0.5ms. Is this a issue with the library or I did something wrong?
  2. I'm sure this is no a problem with pull-ups. I tried to add two 4.7k pull-ups to SDA and SCL lines. Same thing happens. And I used the following line to check if new data is available too. while((i2cReadReg(L3G4200D_REGISTER_STATUS_REG) & 0x08) == 0); It seems CCS works fine to me, but not Energia.
  3. Hi zeke, thanks for the quick response. When it hangs, the SCL line stays HIGH and SDA line stays low. Do you have any comment on that? The strange thing is I'm able to get correct data for the first 2 minutes (maybe a bit longer). I checked on other's code for the same chip, I'm pretty sure the code to get raw data is OK. Any suggestions from anybody would be appreciated. Thanks!
  4. Hello, I just received a TM4C1294XL connected launchpad. I'm trying to get it working with L3G4200D gyroscope (it's a module from Parallax with pull-ups). The program runs as expected for a while and then freezes and I have to long press the reset button to get it working again. By importing the Energia sketch into CCSv6, I was able to find the program hangs at the Wire.endtrsmission(), in particular at line //Wait for any previous transaction to complete while(ROM_I2CMasterBusBusy(MASTER_BASE)); in the Wire library. I tried with another sensor and experience the same problem. C
  5. It's a different question. Happens to have a similar title. Mine works for a while. It's a breakout board with pull-ups ready, shouldn't be hardware problem.
  6. Hello, I just received a TM4C1294XL connected launchpad. I'm trying to get it working with L3G4200D gyroscope (it's a module from Parallax with pull-ups). The program runs as expected for a while and then freezes and I have to long press the reset button to get it working again. By importing the Energia sketch into CCSv6, I was able to find the program hangs at the Wire.endtrsmission(), in particular at line //Wait for any previous transaction to complete while(ROM_I2CMasterBusBusy(MASTER_BASE)); in the Wire library. I tried with another sensor and experience the same problem. Co
×
×
  • Create New...