can we make same pin as an input and output in pic mcu

Status
Not open for further replies.

nasirsadiq

Newbie level 4
Joined
Jun 18, 2008
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,303
Dear All,
plese help me I'm biggner in pic mcu I need help can we make same pin as an input and output in pic mcu like in PIC16F870.I'm using basic language.
Thanks in advance
 

You can make it an input OR an output, not both at the same time.
You can change it from your code but I can't give you the code because I haven't used basic.

The register you have to use is TRISA, TRISB etc.

Alex
 

hi nasirsadiq,

Another possibility beyond described by alexan, and I already used, is to share some funcional pin ( not generic I/O ).
For example, when pinout account is not enough I often use ICSP input also like regular output.
The only care is to hang proper impedance within acceptable range , according datasheet specifications.

+++
 

Thanks for some help from forest I’ll check and let you know.
Thanks again:-
:-D
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…