tag:blogger.com,1999:blog-33508498.post2216460591118061645..comments2022-10-08T00:52:22.624-07:00Comments on form_feed: Debounce Machine! A state approach.Unknownnoreply@blogger.comBlogger7125tag:blogger.com,1999:blog-33508498.post-11080898014252233632013-06-18T10:40:37.053-07:002013-06-18T10:40:37.053-07:00Helli Tamil
It is very easy to understand.
The out...Helli Tamil<br />It is very easy to understand.<br />The outside numbers represent the signal that come form the input pin, with noise, sampled in a continuous rate preferably. The numbers inside the circles, represent the signal to be returned as active signal debounced. The start state is pointed by the arrow. If the signal do not stay in one for long time enough, (in the exemple picture, 4 Hernandi Krammeshttps://www.blogger.com/profile/06094470654843526151noreply@blogger.comtag:blogger.com,1999:blog-33508498.post-9818395203328385472013-06-17T03:10:01.862-07:002013-06-17T03:10:01.862-07:00Hi Chico,
Thanks for sharing your Debounce machin...Hi Chico,<br /><br />Thanks for sharing your Debounce machine code. I can understand the code. Could you explain me the state machine diagram. i could n't understand it .<br /><br />Regards,<br /><br />tamiltamil vananhttps://www.blogger.com/profile/16022073436665115611noreply@blogger.comtag:blogger.com,1999:blog-33508498.post-89963409310086243762013-06-17T03:07:25.021-07:002013-06-17T03:07:25.021-07:00This comment has been removed by the author.tamil vananhttps://www.blogger.com/profile/16022073436665115611noreply@blogger.comtag:blogger.com,1999:blog-33508498.post-8053688283701214712010-11-11T23:36:12.934-08:002010-11-11T23:36:12.934-08:00thanks for the fast answer. i have used the code a...thanks for the fast answer. i have used the code again that is listed here (Listing 2):<br /><br />http://www.ganssle.com/debouncing.pdf<br /><br />works in most circumstances but needs loots of tweaking and trying if you change the time of the irs calls or use different switches.<br /><br />for the next pic project, I'll try your code again.underwoodhttps://www.blogger.com/profile/11199290722248048136noreply@blogger.comtag:blogger.com,1999:blog-33508498.post-29997103317138188822010-11-11T15:47:09.231-08:002010-11-11T15:47:09.231-08:00Still, look that in the code:
...
if (tmp == 0){
...Still, look that in the code:<br />...<br />if (tmp == 0){<br /> if(keyA_state == 0) keyA = 0;<br />...<br />I am using exacly == 0 (equal ZERO). if your pin data (second) 2° bit, so your input will be always 00000010, that means = 2 in decimal, and never will ==1, and the code will ot work.<br />Make sure, as I say, to use the right AND and OR and plus the RIGHT(I mean precise) Hernandi Krammeshttps://www.blogger.com/profile/06094470654843526151noreply@blogger.comtag:blogger.com,1999:blog-33508498.post-16805154877605728922010-11-11T15:39:28.450-08:002010-11-11T15:39:28.450-08:00Hi underwood.
This is just a basic scope.
I am sur...Hi underwood.<br />This is just a basic scope.<br />I am sure you implement all the rest and inicalize the variables (0), and your routine is getting right the IOPINDATA, and you are doing the right OR and AND logic operation to detect 0 or 1 on incoming data.<br />I am usign such algoritm implemented at pic ASM, and is light and operational.<br />I dont know how this routine will behave with Hernandi Krammeshttps://www.blogger.com/profile/06094470654843526151noreply@blogger.comtag:blogger.com,1999:blog-33508498.post-57927592374997382672010-11-11T09:19:25.701-08:002010-11-11T09:19:25.701-08:00Hello, doesn't work for me. I have raised HIGH...Hello, doesn't work for me. I have raised HIGH to 20 and called the IRS only every 8ms.underwoodhttps://www.blogger.com/profile/11199290722248048136noreply@blogger.com