treyz
Member level 5
Hi everyone,
I have a problem reading what is in my buffer.
I am sending a BIG frame: STX-DATA-CHECKSUM-ETX (1 byte each), from my PC to a PIC(18f4680) via RS232.
The things is, I am using a Blue LED to tell me if the buffer is filled in and a GREEN LED to tell me if the PIC can read the first byte which would be STX(0x02).
I can see the BLue LEd turns on but not the GReen Led. I have the right baud rate(9600 daud).
Do you have any idea of what might cause this issue?
I have attached my code.
I have a problem reading what is in my buffer.
I am sending a BIG frame: STX-DATA-CHECKSUM-ETX (1 byte each), from my PC to a PIC(18f4680) via RS232.
The things is, I am using a Blue LED to tell me if the buffer is filled in and a GREEN LED to tell me if the PIC can read the first byte which would be STX(0x02).
I can see the BLue LEd turns on but not the GReen Led. I have the right baud rate(9600 daud).
Do you have any idea of what might cause this issue?
I have attached my code.