From Null Space Labs
Interfacing an LED
The simplest circuit. IO, resistor, LED and ground.
Press the H with your left mouse button to toggle the High / Low output of the micro controller.
With the above we see the electronics/hardware side of the project. Now we will look at the software side.
The H/L part above that switches the LED on and off is connected to a specific pin on the uC, this pin is then mapped to either a memory location or a port. Changing the state of that location or port will change the state of the LED.
Some uC's ( like the avr/arduinos) have tristate or bidirectional inputs, this is covered here UC_IO_Types. With these processors we tell the ports what they are, either input, output or do nothing(the third state).
Back to Index UcInterfacingClass