Dear Jan Pospisilik,
Thanks for your response.
I´m going to send the entire project but first I have to translate it into English, it is in Spanish.
On the other hand, I found that if I put below LCD_SendBlock();, LCD_ClearTxBuf(); It clears all buffer and the text inside SendBlock, vanishes, Here an example:
LCD_SendChar(12);
while(IRSCS1_TC==0){};
Pausa1s(); // Delay 1 seg aprox.
LCD_SendChar(148);
while(IRSCS1_TC==0){};
LCD_SendChar(18);
while(IRSCS1_TC==0){};
LCD_SendBlock("La tension de la fase R es: ",28,&SND);
while(IRSCS1_TC==0){};
//LCD_ClearTxBuf(); IF I UNCOMMENT THIS, THE PREVIOUS MESSAGE DOESN´T APPEAR.
resultado=(byte)Datos[0][45].datocompl/0x0333;
resultado=0x30+resultado;
LCD_SendChar(resultado);
while(IRSCS1_TC==0){};
resultado=(byte)Datos[0][45].datocompl%0x0051;
resultado=0x30+resultado;
LCD_SendChar('.');
while(IRSCS1_TC==0){};
//LCD_ClearTxBuf();
LCD_SendChar(resultado); //envia el decimal
while(IRSCS1_TC==0){};
LCD_SendBlock(" Volts",6,&SND);
while(IRSCS1_TC==0){};
//LCD_ClearTxBuf(); THE SAME, Volts DOESN´T APPEAR ON A SERIAL DISPLAY if I uncomment
Pausa1s();
I tried with delays(); before clear, but the same, the display is @ 19200 Bauds, and I configure the bean according to this, The size of Tx buffer is 50 bytes. However in simulation, the program works fine, and I can see all the text sended.
Well, here is a preview of the program.
Thanks and regards
Pablo