??? 02/23/09 06:43 Read: times |
#162674 - Please read that FAQ (again). Responding to: ???'s previous message |
Snake Cater said:
Can anybody give me a C code which configure 8051 ports as output. Did you actually read that FAQ entry that I suggested? I mean, of course, http://www.8052.com/faqs/120176 - the one which says, Don't think of it this way. If you do, it will only be a matter of time before you're trying to figure out why something else on the bus isn't working ... just stop thinking about putting it in either INPUT or OUTPUT modes at all. and Actually, there is nothing to set a standard 8051 pin as an input; all pins are always bidirectional*. In the light of this, why are you still asking to "configure 8051 ports as output" ?! As Richard says, if you don't understand the basics of how the ports actually work, there's no point in asking for code - in any language - that makes them do things that they can't! You probably also need to study the so-called "bible" for a foundational understanding of the 8051 essentials: http://www.8052.com/faqs/120112 |
Topic | Author | Date |
helo | 01/01/70 00:00 | |
FAQ: How to set the '51 port pin into input (output) mode? | 01/01/70 00:00 | |
How to set port as output | 01/01/70 00:00 | |
Dedicated instruction? | 01/01/70 00:00 | |
Maybe it's too soon to consider 'C' | 01/01/70 00:00 | |
Please read that FAQ (again).![]() | 01/01/70 00:00 | |
Instruction sheet ? | 01/01/70 00:00 |