newbie needs input / output definition
bert
Posts: 3
· Hi, I am a newbie and hope to learn to program the basic stamps but need some help on a basic issue.·I· am learning about electronics in school but microcontrollers are new to me.··My question is basically what is the difference electronically in setting pins as inputs or outputs.· I understand that an ouput can have a logical high or low state but what happens with a pin set as an input?··I don't think I quite understand about sinking and sourcing or what is going on inside the chip.·My dad is taking me to the library today to look for books on microcontrollers·but I hope you might give me a few pointers.· Thank you very much
Comments
Does that help?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Visit the Piggyback Page
http://hometown.aol.com/newzed/index.html
·
To put it more simple:
An INPUT is a pin where a signal comes IN. So you can measure or detect something on that pin.
An OUTPUT is a pin where a signal goes OUT. So you can switch or control something from that pin.
The pins on a Stamp can be gonfigured either as input or as output. You will have to tell the Stamp at some time what you want a pin to be, input or output.
I hope this helps a bit,
Klaus
When you sink something, a ground is provided for current to flow through the compoent.
When you·source something, power is provided for current to flow through the component.
The "component" could be a light bulb, motor, resistor, LED etc.
See attached.