??? 10/07/05 12:01 Read: times |
#102076 - Answers Responding to: ???'s previous message |
Suresh said:
So should it be made low using the codes to make the relay connected to that specific port to operate..? Yes, that's a good idea. In this the start button (push button switch)connected to p3.2 could produce bounce . So, can any one tell me How to over come this problem by altering codes or circuits(in what manner). Connect a pull-up of about 4k7 from P3.2 to Vcc and connect the switch in such a way, that when pushing the button P3.2 is pulled-down to 0V. Debouncing could be done by the following: Read P3.2 every 10msec, or so. Let a high to low transition make start the timing interval, but only if P3.2 was high for 10...20 succeeding samples before this high to low transition occured. Another option would be to additionally only accept a high to low transition, when the timing interval is over. But that depends on your actual application, from which we do not know much about. I need to connect a ferrite bead to ground the Microcontroller. Do never use a ferrite bead in the ground line of microcontroller or any other chip!! You can put a ferrite bead in series with supply line, in combination with decoupling capacitor to form a very effective LC-lowpass filter. But inserting it into the ground connection would totally erode signal integrity due to the enormous voltage drops across it. That would be a total disaster!!! Kai |
Topic | Author | Date |
Doubts regarding AT89C51 Port Usage | 01/01/70 00:00 | |
Answers | 01/01/70 00:00 | |
your suggestions were useful | 01/01/70 00:00 | |
Central ground star point | 01/01/70 00:00 | |
doubts | 01/01/70 00:00 | |
Why using an interrupt? | 01/01/70 00:00 | |
use an interrupt for debounce, not key | 01/01/70 00:00 | |
This is what iam going on with | 01/01/70 00:00 | |
Why even consider sleep mode for a machi | 01/01/70 00:00 | |
can RC network eleminate bounce | 01/01/70 00:00 | |
nope, you will be hanging at the noise m | 01/01/70 00:00 | |
Debounce | 01/01/70 00:00 | |
Possible, but... | 01/01/70 00:00 | |
What else does your program? | 01/01/70 00:00 | |
outside of 50 sec slot | 01/01/70 00:00 | |
do I get it right | 01/01/70 00:00 | |
yes | 01/01/70 00:00 | |
ttthhattsss all fffolks | 01/01/70 00:00 | |
here is my code | 01/01/70 00:00 | |
I did not ask that | 01/01/70 00:00 | |
Avoid my previous post "here is my code"![]() | 01/01/70 00:00 |