Hi,
I am having an odd problem with the software serial: I am trying to transmit 0xAA out of the tx port on my Duemilanove, but it is transmitting a datastream far longer than a byte (maybe 80bits, who knows!). Also, 0xAA doesnt show up anywhere in this long stream of bits. I have also tried 0xF0 (11110000) and couldn’t spot that either.
Fortunately, I confirmed that it is transmitting at 9600baud and that there is 500ms spacing between transmissions - this means that the arduinio is at least not totally messed up!
The code is simple!
#include <SoftwareSerial.h>
uint8_t tx =1;
uint8_t rx =0;
uint8_t verReq[6] = {0xCC};
SoftwareSerial nss (rx,tx);
void setup() {
nss.begin(9600);
Serial.begin(9600);
}
void loop() {
nss.print(0xAA);
delay(500);
}
Does anybody know why arduino would behave this way?
Unfortunately at work i dont have access to photobucket so I cant provide you with photos. I can once I get home if anybody wants to see some screenies.
Thanks for any help
Rich