I have solved all. I did not want, but if I use the interrupt, then all is well. Regards and good luck to all. //------- My Code ---- #use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7) #define BUFFER_SIZE 32 BYTE KeyBuffer; BYTE next_in = 0; BYTE next_out = 0; #int_rda void serial_isr() { int t; KeyBuffer=getc(); t=next_in; next_in=(next_in+1) % BUFFER_SIZEby salvatore - Serial & I2C Devices
I looked in the forum I also ccsinfo. It is a common problem and it seems that it resolves itself using an interrupt, which I wanted to avoid. I tried to see what was possible using the C18 compiler, but I think it's the same. Thank you for now, let you know when solved. PS. Instead I was reading the datasheet for the BV4619, I understand that in this case the key code is sent one byteby salvatore - Serial & I2C Devices
Using the CCS compiler, as mentioned in the first post version 4.130by salvatore - Serial & I2C Devices
Hi Jimeer, thanks very much for the prompt response to my question. Tonight I tried a thousand ways to use "ack" as you suggested. I have not had any positive results, I do not understand where I'm wrong. I add the code again with the latest tests done with a few more comments. I would love to win this battle, to see the BV4618 no longer exclusive Arduino. Thanks again for eby salvatore - Serial & I2C Devices
Hi, I am trying to run the BV4618 with a PIC 18F series with the RS232. With the Display everything works fine. To read the keys I have a problem. When I give the command (ESC ; int count fputc(0x1b);printf("=getc(); conta++; } //-----------the following is the test that writes on dispaly the received codes--------------- GotoxyLCD(2,1); WriteIntLCD(Bytby salvatore - Serial & I2C Devices