Thank you IanP. I have followed your suggestion.
I have found that my transmitter code works without any problem.
However the receiver code didn't work and I have been trying to pinpoint the problem for hours. Fortunately I have found the error in my receiver code.
I realised '5' should NOT be used because
ERROR - Receiver code
Code:
ERROR --> if (received_data_G==5)
{
RED_LED=ON;
Delay_Loop(50);
RED_LED=OFF;
}
0x35 should be used instead of '5' because I did not realise that any letter must be changed into hexdecimal in accordance with ASCII codes. Therefore the receiver code should be like this:
Code:
if (received_data_G==0x35)
{
RED_LED=ON;
Delay_Loop(50);
RED_LED=OFF;
}
By the way, I have been using termv19b and I have not experience any problem with it as I could send and receive character.
However the hyperterminal from window would not allow me to enter character as I pressed one character and it didn't come on the screen but it accepts the data coming from my microcontroller chip. So can anyone explain why i experience that problem?
Maverick Max