I have a PIC i want to connect to a RF transceiver. The data input and output of the transceiver is on a single pin. Is it possible to connect two different ports of the PIC to a single pin on the transceiver? or is this incorrect?
Looking at the data sheet, you would connect 1 pin to the data line and another pin to the T/R line. To receive you would set the data pin to input and the R/W pin Low. To transmit, set the R/W line high before setting the data pin to output.
If you want to clear them, you need to do it in the programme - generally though I've never found any reason to want to do this? - any GPR's which are read before they are written I preload with the required value (which most probably isn't zero). Any which are written before they are read don't need clearing anyway.