I have a huge code (more than 10000 lines), but is something like this:
void setup()
{
Serial.begin(9600); // PC
Serial1.begin(1200); // Flex Led
Serial2.begin(1200); // FL do BMV que testa o BMC
Serial3.begin(1200); // FL do BMC que testa o BMV
Wire.begin(); // entra como mestre i2c
analogWrite(5, 100);
}
void loop
{
Wire.beginTransmission(9);
Wire.write('a');
Wire.endTransmission();
Wire.beginTransmission(10);
Wire.write('b');
Wire.endTransmission();
if (Serial2.available()>0) Serial.print( Serial2.read());
if (Serial3.available()>0) Serial.print( Serial3.read());
if (Serial1.available()>0) Serial.print( Serial1.read());
}
My problem is, Serial(2,3,1).available is returning nothing, but I can read the characters with a scope.
I know it's not a connection problem... does someone know about any "compatibility" problem because to many communications + PWM?
I'm trying to eliminate the possibilities, I'm also considering a RAM problem (but the sofware is not freezing anyway).
Could someone help me?
Any hint is welcome