Hello;
Sorry for my English, it's not my first language.
I have a serial communication problem.
I use this piece of code:
char Receive;
If (Term1_KeyPressed () == 1)
{
Term1_ReadChar (& Receive);
}
I do not understand why, it affects where I save data (0xF000), if I remove the data record from my code, I have variables that changes by itself.
Also, Term1_KeyPressed () is always 1.
I am able to transmit without problem using: SendChar (Cr);
I test this code and work well:
while(1)
{
SendChar (Cr);
If (Term1_KeyPressed () == 1)
{
Term1_ReadChar (& Receive);
}
}
I do not understand how to read a character. Could you help me
Thank you for your help.