heello evrey one,
i am trying to sent 8 bit data from pic18f8520 into arduino ,but without any success ,i allways get -1
when i am sending the same data into the pic rx the data is good, and when i want to sent data from the arduinu (from the arduino tx to the pic thats good too), so i dont realy know where is the problem any one can help me please ’
i am using this code:
void setup() {
// initialize both serial ports:
Serial.begin(9600);
/ }
void loop() {
// read from port 1, send to port 0:
int inByte = Serial.read();
delay(1000);
Serial.print(inByte);
}
thanks
eagal