In SX Microcontrollers, SX/B Compiler and SX-Key Tool, VelocitąPaola wrote: The 2N2222 in the TO-92 package is certainly smaller than the TIP110 in the TO-220 package. The main difference is that the TIP110 is a Darlington pair, or one transistor switching another. The advantage of such being high current gain. With the 2N2222 you'll need to calculate the values for the correct biasing resistors depending on supply voltage, anticipated current draw, etc.. The TIP110, on the other hand, can be used with only a 220 or 470 ohm resistor between its base and the I/O pin... mainly for the SX's protection. The underscore between the upper and lower bytes in my sample code is solely to make reading it easier. You can also place them where commas might go in large decimal numbers, such as "10_000." You could time the button presses as you did in your second to last post, or you could just use the PULSIN command. The next line of code would check the result of PULSIN, and if it's large enough, the SX would go to sleep. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=276305#m276546 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)