Jump to content
43oh

joeyeisinger

Members
  • Content Count

    5
  • Joined

  • Last visited

  1. Hmm, I tried that and now the TI examples are working. I don't understand what was wrong before, but oh well. I am still working on my own code for I2c, so I will let you all know how it goes. thanks
  2. ok, thanks for the advice. I thought I would try the TI code examples in the slac080h zip, since they are published by TI, I figured they would work no problem. It doesn't work for me. The lights indicating a nack come on for both master and slave. Has anyone else experienced this? I used the code exactly from the example, except I changed the header file to msp430g2231. I am no longer using external pullup resistors, just internal, my multimeter suggests that they are at the right level, perhaps my problem was hooking up the sda and scl to a microcontroller that was off. Does anyone know i
  3. I am using a version of the TI code, an example that I found in slac080, file msp430x20x3_usi_07.c I have had a lot of trouble with this code, for instance I am using CCS and it doesn't seem to compile the switch block correctly, once the code encounters the first break statement, it exits the block without checking that i2c_state has changed to a new number and that it should now run the next case, so it just exits the ISR. At least that is what I am seeing with the debugger. Anyone else see this? So I stripped the code down quite a bit just to try and get it to send the address and a write
  4. Thanks, I forgot about the jumper pin. An interesting note though: I had internal pull-ups enabled on SDA and SCL, but the code wouldn't run right until I externally pulled up SCL as well. Not sure what that is about.
  5. Hello, I am having some trouble with using my msp430g2231 on a breadboard. I am trying to get some I2C code running, and have found that when the chip is plugged into the launchpad, the code runs as expected. When I plug into a breadboard and hook up Vcc, GND, and RST, the code does not run properly. It seems to get stuck in an ISR. However, if I run a wire from P1.6 (clock signal) on the chip to the corresponding spot on the launchpad, the code runs correctly. Does anyone know what is behind this? Does the emulator on the launchpad do something with the clock signal? Any ideas to get the th
×
×
  • Create New...