I have come here as a last resort. I am attempting to control the sc16a with my arduino and the software serial library. I used this code.
#include <SoftwareSerial.h>
#define rxPin 2
#define txPin 3
byte data = 0;
byte data1 = 0;
byte data2 = 0;
SoftwareSerial mySerial = SoftwareSerial(rxPin, txPin);
void setup()
{
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
mySerial.begin(9600);
}
void loop()
{
mySerial.print( 65, BYTE );
mySerial.print( 65, BYTE );
mySerial.print( 0, BYTE);
mySerial.print( 60, BYTE);
}
Basically this sends the numbers 65, 25, 25, and 60 to pins 2 and 3 configured for serial. This appears to be the correct protocol but I would like that verified as well. My main question however is why this code will not work.