Lion Guest
|
Communicational code problem in USART. |
Posted: Wed Jul 09, 2008 10:41 pm |
|
|
Hello,
Because I did not describe my problem very clear in last post, I post my question again
I am using PIC16f877 and MPLAB v8.10 with CCS.
I try to use PIC16f877 (PIC A) to control a bluetooth by USART and to communicate with another PIC (PIC B )which also has a bluetooth device on it.
My question is that I need to send some command to bluetooth such as "get address" which is to get the address of bluetooth or "con 00:8A:16:7C:89:7L" which is a command to connect to the other bluetooth.
I do not know how to send the string to bluetooth TX (PIN_C6) in PIC A or get a string from RX(PIN_C7) in PIC B.
I am really really new on C and PIC so could you tell me how to do that?
By the way, I knew the basic concept of stream but I have no idea how to use it with USART or how to write a code with it.
Could you guys kindly explain to me or give me some example to understand how to use it?
Any help will be really really appreciate.
Thank you very much.
Sincerely,
Brian |
|