In SX Microcontrollers, SX/B Compiler and SX-Key Tool, TheBandit wrote: Basically what I want to happen is: if pushbutton is pressed and held for x time, power down components (for example, make output to a transister go to 0) and go into sleep if there has not been a change in the encoder for x time, power down components and go into sleep if in sleep and pushbotton is pressed, come out of sleep and power up components It it is okay if the SX is reset when coming out of sleep. From the specs it looks like the components I am powering (encoder and display) will suck a maximum of about 200mA, most of which is from the display. Do you have any suggestion on what kind of transistor to use for powering these components? You're saying I should switch off a common ground from the encoder and display? Can someone explain how to use the sleep function using SX/B? I don't understand how it's used or how to have a pushbotton/input control it. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=276305#m276513 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)