dim912
Junior Member level 2
I am using microC UART library to communicate between two PIC devices.
but it always gives unexpected results.
I have some point to get clarified..
(1) in microC library we use UART1_Data_Ready() function to get to know whether RX data is available.
if we use UART1_Read() function, after UART1_Data_Ready() gives 1, does UART1_Data_Ready() gives 1 longer? or it gives 0 after UART1_Data_Ready() is executed.
(2) if the PIC receives a text like "edaboard",
does UART1_Data_Ready() gives 1 until all characters are read out using UART1_Read() function.
(3) If the PIC is waiting for a RX character stream like "HelloWorld", should we continuously check UART1_Data_Ready() function?
(4) when the above case is considered, does UART1_Data_Ready() give 1 just after receiving the first character of the character streem?
I am asking all above because, I was not able to receive a character stream sent by one pic to Other PIC. it always losses data and gives unexpected results.
I tried using both UART1_Read() and UART1_Read_Text() functions..
if you please direct me to any successful microC program to receive a character stream..
thanks all....!
but it always gives unexpected results.
I have some point to get clarified..
(1) in microC library we use UART1_Data_Ready() function to get to know whether RX data is available.
if we use UART1_Read() function, after UART1_Data_Ready() gives 1, does UART1_Data_Ready() gives 1 longer? or it gives 0 after UART1_Data_Ready() is executed.
(2) if the PIC receives a text like "edaboard",
does UART1_Data_Ready() gives 1 until all characters are read out using UART1_Read() function.
(3) If the PIC is waiting for a RX character stream like "HelloWorld", should we continuously check UART1_Data_Ready() function?
(4) when the above case is considered, does UART1_Data_Ready() give 1 just after receiving the first character of the character streem?
I am asking all above because, I was not able to receive a character stream sent by one pic to Other PIC. it always losses data and gives unexpected results.
I tried using both UART1_Read() and UART1_Read_Text() functions..
if you please direct me to any successful microC program to receive a character stream..
thanks all....!