Next: GPIO on an AVR
Up: Basic Input and Output
Previous: General Concept
Contents
This particular MCU can perform many interesting input and output
functions. Just to give you an idea:
- input: detect whether the electrical potential at a pin is
``high'' or ``low''
- output: change (drive) the electrical potential at a pin so that
it is either high or low
- intput/output: utilize changing electrical potential as a means to
communicate with other MCUs or computers (Universal Asynchronous
Receiver Transmitter)
- output: generate square wave of a certain frequency but with a varying
duty cycle (on time)
- input: measure the amount of time when the electrical potential of a pin
goes high or low
- input: notifies software when the electrical potential of a pin changes
- input: quantifies (measures) the electrical potential at a certain pin
Obviously, we will not get into most of these items. We will, however,
talk about the first two items. These are commonly called ``general
purpose input/output'', or GPIO in short.
Tak Auyeung
2003-11-10