Can a programmer help?

Discussion in 'Embedded Systems and Microcontrollers' started by rokz_2005, Jun 1, 2011.

  1. rokz_2005

    Thread Starter Member

    May 14, 2011
    68
    0
    Hi I'm hoping someone can at least point me in the right direction.

    I have a PIC18F2550 microchip.

    My projects consists of
    2x Tactile switch (A & B)
    2x LED light (Red and Blue)
    Pic Microchip
    Relevant resistors and other components


    I need to make a fairly simple circuit.
    When I press and hold Switch A for 1s I want the red LED to light up for 10s
    When I press and hold Switch B for 1s I want the blue LED to light up for 10s
    However while either of the LED is on (in the 10 second loop) I would like to cancel/reset the circuit by pressing either of the switches (no need to hold for 1second)

    How can I Achieve this.

    My alternative at the moment is (without programming)
    Use a ramp up circuit for the 1 second hold
    Use a 3rd switch to reset the circuit if either of the LED is on


    I am a total newbie by the way, But I am self teaching on top of a full time job.
     
Loading...