Can a programmer help?

Thread Starter

rokz_2005

Joined May 14, 2011
68
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.
 
Top