F fusian New Member Mar 12, 2008 #1 i am using pic16F877A USART function, so i need to set the port RC7(RX) and RC6(TX) as output or input??
i am using pic16F877A USART function, so i need to set the port RC7(RX) and RC6(TX) as output or input??
P Pommie Well-Known Member Most Helpful Member Mar 12, 2008 #2 From the data sheet, Bit SPEN (RCSTA<7>) and bits TRISC<7:6> have to be set in order to configure pins RC6/TX/CK and RC7/RX/DT as the Universal Synchronous Asynchronous Receiver Transmitter. Click to expand... So, the answer is Input. Mike.
From the data sheet, Bit SPEN (RCSTA<7>) and bits TRISC<7:6> have to be set in order to configure pins RC6/TX/CK and RC7/RX/DT as the Universal Synchronous Asynchronous Receiver Transmitter. Click to expand... So, the answer is Input. Mike.