Hello! it's been a while!
So i bring more problems.
I was trying to make a i2c slave with msp430g2553 and a master with msp430f5529. Problem is it wasn't working
Tracked it to be, the code on the msp430f5529 frezes when it reaches wire.Write() command.
Here is the code (i used the //in each command until i knew wich one made the led stop blinking)
#include <Wire.h>
void setup()
{
// put your setup code here, to run once:
//P4REN|=BIT2+BIT1;
pinMode(P1_0,OUTPUT);
Wire.begin();
digitalWrite(P1_0,LOW);
}
void loop()
{
digitalWrite(P1_0,HIGH);
// put your main code here, to run repeatedly:
Wire.beginTransmission(0x21); // transmit to device #44 (0x2c) // device address is specified in datasheet
Wire.write(1); // sends value byte
Wire.endTransmission(); // stop transmitting
delay(500);
Wire.beginTransmission(0x21); // transmit to device #44 (0x2c) // device address is specified in datasheet
Wire.write(0); // sends value byte
Wire.endTransmission(); // stop transmitting
digitalWrite(P1_0,LOW);
delay(500);
}
Hope anyone can help