2 answers without reading my question properly. The link above shows a project in which the “receive()” function is called to receive a character in SBUF. Unless you make the following modification nothing will come in SBUF!
The function should be like below:-
//Function to receive serial data
void recieve(unsigned char value)