Hello Unregistered ,
This can work just fine: 1. Set up a timer interrupt at 10ms. Or even at 1ms and after ten int's do step 2. 2. Every interrupt read the buttons into the arrays. You can use a low priority...
I also found the MAX6818 debouncer, but it's $4.37 for 8-bit at JLCPCB. More like master of none. :wink:
Nice chip! I did not knew that one although I am of the CMOS era! Anyway, since you master the art of software, I think is waste of money to add hardware when you can debounce in software. ...
Yes, the Config block generated errors. Solved by writing : ASM __config _CONFIG1, _FOSC_INTOSC & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_ON & _CPD_ON & _BOREN_OFF & _CLKOUTEN_OFF & _IESO_ON...
Those errors comes from using the wrong syntax for the CONFIG block. The example Ioannis posted compiles just fine.
Wow, I designed those into counting circuits about 45 years ago.....
It looks like you have a 16F1826 selected instead of 16F1827.
Thank you ! Just tried ... What could cause these two errors?
Got this from AllAboutCircuits. First time I hear about a MC14490, Hex Contact Bounce Eliminator: https://www.youtube.com/watch?v=BeFYsx6M3BM Too bad it's in multiples of 6 pins. It would...
If you expect the signal to swing between 0 and +5V then set the trigger level to somewhere around 2.5V. As with input coupling the trigger coupling can usually be set to either AC or DC. Perhaps...
Re: Scanning encoder debounce on new scope
This can work just fine:
Ioannis Today, 06:571. Set up a timer interrupt at 10ms. Or even at 1ms and after ten int's do step 2.
2. Every interrupt read the buttons into the arrays. You can use a low priority...