Neil, Tom, and Tony, the `bottom line' is that all the data books,
for all the PIC 16x devices that have USARTs, have always said and still
do, that they should both be inputs. The choice seems simple to me...
- Tom
At 06:09 PM 2/25/00 -0500, Cherry, Neil J, SOCOO wrote:
{Quote hidden}>>Tony Nixon wrote:
>>
>>> "Thomas C. Sefranek" wrote:
>>>
>>> > WARNING: You MUST set both I/O bits to input on PORTC!
>>> > (Even though one line is an OUTPUT!!!)
>>>
>>> I have never done this on any PIC I have used, and have had no problems
>>> to date.
>>> I have always set the TX pin to an output.
>>
>>O.K. I tried it today!
>>19,2K baud, PIC16C73A
>>Set bit 6 (PORTC) to output, it DOES NOT work!
>>Set bit back to input, IT WORKS!
>>Set bit back to output (0), it DOES NOT work!
>>Set bit back to input, IT WORKS!
>>
>>Seems pretty straight forward to me.
>
>Seems like they fixed that on the 16F877. I set the TX to output
>and the RX as input. It does seem weird, doesn't it!
>
>Neil Cherry
------------------------------------------------------------------------
Tom Handley
New Age Communications
Since '75 before "New Age" and no one around here is waiting for UFOs ;-)