I am using pic simulator ide .When i run your program in pic simulator ide, i open it's hardware serial port and i transmit some data to my pic then LCD shows "Welcome" message.Then i send another data to pic LCD shows "Final Year" this message..
Here UART1_write(string);
string is not present in your program so it shows an error ,but string1 is present.
Then next problem
for(i=0;i<4;i++)
both start and end value of "i" is fixed ,so it transmit same data of string not changes the data,but your concept is transmit different data when you press your switch.
Sorry for late reply.
I am having my final exam in the pass few week so just concentrate about my coursework.
Now i will try to do the hardware part and hope my coding will function correctly. Thanks for your advice, and i will ask for help from you again if i face any problem yet...Thanks again for your sharing. =]
I got a question to ask u...can i just use the transmitter coding as i was attached here instead of the coding you have been shared to me before?
Because i have an idea which is the string is control by receiver part and the transmitter side just need to press a button to let the uart ON and the Receiver part's uart to ON also. So what i mean is just transmit an analog signal which is a click button (0 - 1 - 0) and let the RC6/TX/CK pin(UART) to toggle and connect to and make the RC7/RX/CK pin(UART) work up.
This is my simple transmitter side to send a analog signal to uart at receiver side. Can you help me take a look?
I have doubt with my simple transmitter coding because when i was connected the Tx uart to Rx uart between this 2 PIC, the string will show or jump "automatically" in sequence on LCD without press the button.
Yup! I have tried the receiver side by connect the Rx pin on receiver side to a button, and when i press 1 by 1 and the string will show out 1 by 1. So I think this is correct already. That mean once got input then can work as the condition i want.
I have do a simple experiment by connected the LED as an output on the Tx pin at transmitter side, and the LED is normally ON, theorytical on my coding is when i pressed the button the LED should OFF and released the button LED will ON. But how i pressed the button it wont OFF but automatically no order of blinking. (so this is same as automatically transmit the signal? could i explain like this?)
Erm, my final result of the simulation is the string displayed on the LCD automatically with the sequence or condition i have been write in code (correctly) but without pressed the button at transmitter side.
In you transmitter side program ,there is no code for reading your key(porta).So default case it transmit some data that's why you get display in your rxr lcd.
Sir, please help me again. I am rushing my project now, but I am really cannot do well in the programming side, i have try and try and try but its still cannot get the result i want.