Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

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
:cry:
 

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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top