Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How real world signals are sampled by processor

Status
Not open for further replies.

pintuinvlsi

Member level 3
Joined
Jul 13, 2007
Messages
61
Helped
19
Reputation
38
Reaction score
10
Trophy points
1,288
Activity points
1,631
Suppose we have a switch which an user can press to interrupt some processor. Now whenever it is pressed how can assure that our processor samples it only once. Since we press for less than 1 second. Is there any ckt which will generate a high logic for a clock pulse whenever that switch is pressed?

Anyone can tell me or knows any ckt which is used for this.

Thanks,
 

Let say when we press the switch it will get the logic '1' and release or uninterrupt condition give logic '0'. Now the processor will try to monitor the logic '1', when some 1 press, the processor will detect a rising edge and execute the command and the processor will advanced to next state. In this state, the processor will waiting the falling edge for the signal, if the switch didnt release then the processor will keep waiting before proceed to next state.

If you wanna the switch to act like the keyboard, for example when u press the 'a' button and never let go, the 'a' char will keep appear. We just add the clock at the waiting state i mention above, so that the 'a' char will keep appear with the period according to the clock you apply.

however,this only work for the ideal switch means no bouncing will occur when the switch is pressed. For the real world switch, we need to monitor the switch at some interval time to make sure that the switch is settle to the stable state, because when the switch is in bouncing condition, the processor may detect as the switch have been press many times.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top