It seems we write our reply at the same time...
As i experiment when Picbasic Pro is use, you don't really need to define them by any TRIS stuff. In many case you can use the same i/o pin for getting entry from push button and out to a led without any TRIS define
And you write this for PIC16F876
TRISC.6 = 1
TRISC.7 = 0
but PORTC.6 is for trasmit, so output... must be set to 0
and PORTC.7 is for receive....................must be set to 1
oops
regards
Bookmarks