That wont even compile. Can you post code that at least compiles. The first line that gives an error is the line I asked about 1 month ago.
Code:
unsigned char data[3]="A","T","R"; //store bytes in array because bytes are to be sent one by one.
Mike.
i am sorry i forgot to change my code before i posted. I used the 2nd method u told me a month ago which is
unsigned char data[4]="ATR";
i am really so sorry
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
i did tests on the osc just a few mins back and i found out that i dont need to even define the ASCII characters as my compiler wil just send out the hex value straight out the Tx Pin.
all not needed#define A 0x41 //assign ASCII byte code to A
#define T 0x54 //assign ASCII byte code to T
#define R 0x0d //assign ASCII byte code for Carriage Return
if thats the case, how should i send out the CR command?
thanks Mike