User Tools

Site Tools


the_led

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

the_led [2013/08/13 12:13] (current)
Line 1: Line 1:
 +=====  Interfacing an LED  =====
 +
 +The simplest circuit. IO, resistor, LED and ground.<​BR>​
 +<​java_applet ​
 +<​code>​
 + ​code=Circuit
 + ​height="​156"​ width="​500" ​
 + ​archive="​Circuit.jar" ​
 + ​p1name="​pause"​ p1value=20 ​
 + ​p2name="​startCircuit"​ p2value="​led.txt" ​
 + ​p3name="​startLabel" ​ p3value="​Simple LED circuit" ​
 + ​p4name="​useFrame"​ p4value="​false"</​code>​
 +/>
 +<BR>
 +Press the H with your left mouse button to toggle the High / Low output of the micro controller.
 +
 +<HR>
 +<​BR><​BR>​
 +With the above we see the electronics/​hardware side of the project. Now we will look at the software side.
 +<BR>
 +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.
 +<BR>
 +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).
 +<BR>
 +
 +
 +
 +
 +<​BR><​BR><​BR>​
 +//Back to Index// [[UcInterfacingClass]]
  
the_led.txt ยท Last modified: 2013/08/13 12:13 (external edit)