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.

is there any way to make port as i/p or o/p?

Status
Not open for further replies.

vikrant

Junior Member level 2
Joined
Jun 30, 2006
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,425
hi friends,

I want to know is there any method which will configure I/O port as input
or outputport in 8051. if so whats the logic behind that. plz help?
 

hai
the logic is very simple
when u r writing data to the port
u can say it's as an output port
when u r reading from the port
u can say the port is input.
this way you can use the same port as either input/output/both.
but u will have to configure before reading from /writting to the port
this is done by writting either 00h or ffh to the port before the actual read/write
hope that the idea is clear


sun
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top