Hey, i'm really new to PIC's etc so if i make stupid mistakes please forgive me.
I'm building a RFID scanning system using a ID-12 Reader. When a RFID is scanned, it is read through the USART Rx pin, where it is picked up by an interrupt.
My issue is that when the array inputString[] is outputted to hyper terminal, I receive no tag. However, If i remove all the checks etc, and leave a bare bones code such as
Code:
if(GET_DATA)
inputString[i]=DATA;
i++;
inputString[] gets the full RFID Tag.
Can someone help me figure out whats wrong please?
So would you suggest I simply dump the RFID into an array, and then process it after the whole RFID has been received? Or is there a better way to do it?
It means that if another byte is received before you finish processing the previous byte, DATA doesn't get over written. The temporary variable effectively buffers an extra byte.