Hi all,
I'm doing the project about Tx/Rx signalling. I have 2 PICs, these 2 PICs will use USART to transmit/receive the signal.
Each PIC will check the signal on PORTB pin0 (whether 5V or 0V in digital) and send this signal to the other PIC to inform that it is high or low. And the same procedure for the other PIC.
I want to write the code C that will transmit the condition of PORTB to one PIC and receive the condition at the other PIC sent at almost the same time (I know that it is impossible to do this, so one has to happen before the other. Because the time the PIC runs so quick that we feel like it is parallelly running).
Would you please give me some idea about the source code!
Thanks
I'm doing the project about Tx/Rx signalling. I have 2 PICs, these 2 PICs will use USART to transmit/receive the signal.
Each PIC will check the signal on PORTB pin0 (whether 5V or 0V in digital) and send this signal to the other PIC to inform that it is high or low. And the same procedure for the other PIC.
I want to write the code C that will transmit the condition of PORTB to one PIC and receive the condition at the other PIC sent at almost the same time (I know that it is impossible to do this, so one has to happen before the other. Because the time the PIC runs so quick that we feel like it is parallelly running).
Would you please give me some idea about the source code!
Thanks