+ Reply to Thread
Results 1 to 5 of 5

Thread: Need Some Not-So-Basic Help

  1. #1
    Wire Noob DarthRogue's Avatar
    Join Date
    Jul 2008
    Posts
    20

    Question Need Some Not-So-Basic Help

    I need to have a chip that resets to zero on input, stays at zero for about a second, then go to one, and stay there until it resets to zero

    hopefully one of u will help me
    "Sir we are surrounded."
    "Excellent! We can attack in any direction now!"

  2. #2
    Wire Noob lalanotlistening's Avatar
    Join Date
    Jul 2008
    Posts
    3

    Default Re: Need Some Not-So-Basic Help

    Expression Chip:
    Code:
    N@ WaitOneSecond
    I@ Button
    O@ Value
    
    first() -> Value = 1;
    
    If Button == 1 -> 
    Value = 0;
    schedule(1000);
    
    clk() -> Value = 1;

  3. #3
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,009

    Post Re: Need Some Not-So-Basic Help

    Code:
    N@ WaitOneSecond
    I@ Button
    O@ Value
    first() -> Value = 1;
    ~Button&Button&Value-> Value=0 schedule(1000);
    clk() -> Value = 1;
    lalanotlistening,
    The ; after your value=0 shouldn't be there.

    DarthRouge,

    ~Button&Button&Value->
    the &Value part prevents the second pause to be restarted while counting.
    Make it:
    ~Button&Button->
    if you don't want that.

    Your sig made my laugh out loud by the way

  4. #4
    Wire Sofaking Azrael's Avatar
    Join Date
    Aug 2007
    Posts
    1,946

    Default Re: Need Some Not-So-Basic Help

    Quote Originally Posted by DarthRouge View Post
    I need to have a chip that resets to zero on input, stays at zero for about a second, then go to one, and stay there until it resets to zero

    hopefully one of u will help me
    A way to do it without an expression chip (because they are for wusses) would be to have a constantly running timer, and have a greater than chip comparing the timer value and a constant value of 1. Then, the Reset input of the timer will make the timer go back to 0, and then it will take 1 second before the greater-than chip will go back to outputting one

    Quote Originally Posted by l3ulletje View Post
    Your sig made my laugh out loud by the way

  5. #5
    Wire Noob lalanotlistening's Avatar
    Join Date
    Jul 2008
    Posts
    3

    Default Re: Need Some Not-So-Basic Help

    Quote Originally Posted by l3ulletje View Post

    lalanotlistening,
    The ; after your value=0 shouldn't be there.
    Oops. See what I get for all that C++ and Java? ^_^
    A trigger-happy right pinky.

+ Reply to Thread

Similar Threads

  1. PyroTuts [- Basic CPU -]
    By Pyro-Fire in forum CPU, GPU, and Hi-speed Discussion & Help
    Replies: 51
    Last Post: 11-24-2011, 09:04 AM
  2. Need help with basic if's
    By Echo51 in forum Expression 2 Discussion & Help
    Replies: 3
    Last Post: 02-27-2009, 04:36 PM
  3. BASIC chip
    By Koolguy007 in forum Ideas & Suggestions
    Replies: 13
    Last Post: 01-15-2009, 07:45 AM
  4. Basic inf on gpu needed
    By goluch in forum Installation and Malfunctions Support
    Replies: 8
    Last Post: 01-03-2009, 04:50 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots