Search the Community
Showing results for tags 'Wire'.
-
I am using MSP432P401R and wanted to increase the I2C frequency from 100kHz(Standard) to 400kHz(Fast). In the Wire library for arduino, there is a function Wire.setclock(). Has anybody written such a function for energia? Because it is not there in energia. I went through the wire and twi libraries and found the following, In wire library, Wire.endTransmission calls a fucntion in twi library, twi_writeTo() which has the following line of code, UCBzCTL1 |= UCSSEL_2; // SMCLK Is this the line of code that sets the clock speed? Also in the twi.h lib
- 4 replies
-
- msp432p401r
- i2c
-
(and 2 more)
Tagged with:
-
Hi, I just noticed an excessive consumption of ram by Wire on G2553 (I did not test on other µC) : 400 bytes !! I took a look at Wire.h but can't find where this memory is used. If anyone can confirm this and/or have an idea about this issue ? Regards
- 6 replies
-
- i2c
- msp430g2553
-
(and 2 more)
Tagged with:
-
Good morning, I'm using the latest Energia 18 build with Windows 10. I'm plugged into an MSP430 Launchpad with an MSP430G2553 chip on the board. The following code hangs on the Wire.endTransmission() statement.. Can somebody throw me a bone here and tell me how to fix this? int findAddress(int fromAddress, int toAddress) { int address = 0; for (int a = fromAddress; a < toAddress; a++) { Serial.print(a); Serial.print(" - beginTransmission.. "); Wire.beginTransmission(a); // delay(3); // Wire.write(1); Serial.print(" e
-
Stumbled on this strange behavior when using Energia with 430G2553 Launchpad and also Fraunchpad. Any time I try to do a long write to I2C device, only 17 bytes get put on the actual wire. What am I missing here? Code typically looks like this- I start transmission, sit in the loop sending data and then end transmission. Here is an example with a bunch of debug : { byte temp=0; Serial.println("Transmitting display data"); Wire.beginTransmission(SSD_ADDR); Serial.print("\t"); Serial.print(SSD_DUMMY_BYTE_C,HEX); Serial.print("\t"); Serial.println(Wire.writ
-
I am failing to compile some legacy Arduino projects that call Wire.setClock() (or Wire.setSpeed()). Are these unsupported in the Energia IDE library implementations? I looked but didn't find them in $\hardware\cc3200\libraries\Wire\Wire.c or Wire.h. How else to set 400kHz I2C operation (vs default 100 kHz)? --Don
-
Hi everyone! I am trying to get a PAC1710 chip as a slave working with the MSP430G2553. I am having a ton of trouble doing so and can't seem to even get the address of the slave for the msp. I am going off of the master_reader code as an example. My first question is I know that you need to give the slave an address but I am not sure how to do so. On the data sheet of the pac1710, the address is as follows - 0011000. Thanks!
-
hello all! why are energia wire lib don't work? I have connected my launchpad 430g2553 to PCF8576 LCD 10. P1_6 to SDL and P1_7 to SDA . I try to write some code to use Software I2C Library but it did't work in energia . But EAR lib for software i2c work correct way. what i can to do to connect LCD with energia ? no software no hardware energia code don't work what 's the reason?
-
Hello everyone! im here again for the 3rd time to ask for some advice/help. This forum has been so helpful! Recently i've implemented some code on a msp430g2553 to read a 7 segment LED display. My next step is to send that reading to another msp430 or maybe a c2000 micro-controller. End goal: Msp430-1 decodes the LED display and sends 2 digit number to the Msp430-2 then i display the numbers on my monitor. I was looking at the "wire" master write and slave read examples. I have implemented them but they seem not to work, i'm not sure of a couple of things. How do i address SCL and
-
Hi all, I would like to interface an I2C ADC (PCF8591) for one of my application. I have tried a lot with the sample programs. But still my launchpad is not even generating the clock pulse. Can anybody help me.
- 2 replies
-
- MSP430
- MSP430G2553
-
(and 3 more)
Tagged with:
-
Hi All, I am trying to make an Anduino program to work on the MSP430G2553 using Energia. After testing and debugging the problem seems to be stuck at Wire.endTransmission(). I am using the LP, connecting to an RFID reader. LP1.6->SCL LP1.7->SDA and have the code below for I2C pull up: pinMode(P1_6, INPUT_PULLUP); pinMode(P1_7, INPUT_PULLUP); The code is void SL018::transmitData() { Serial.println("Transmitting 1"); // wait until at least 20ms passed since last I2C transmission while(t > millis()); t = millis() + 20; Serial.println("Transmit