I also found the MAX6818 debouncer, but it's $4.37 for 8-bit at JLCPCB.
More like master of none.
I might still go for that. But I'd really like to avoid any debounce on the PICs so they are free to USART with the main USB PIC.
I also found the MAX6818 debouncer, but it's $4.37 for 8-bit at JLCPCB.
More like master of none.
I might still go for that. But I'd really like to avoid any debounce on the PICs so they are free to USART with the main USB PIC.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
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 interrupt if the PIC supports it.
3. Either with or without interrupt use the hardware USART to communicate. If you choose interrupt driven USART, use it as high priority, or Disable as long as you do serial, the timer interrupt.
Problem solved.
Ioannis
I wanted to see just how sharp a Schmitt trigger could clean up a signal.
This is using a MR0102 with rocker actuator, followed by the Bourns RC debounce circuit, and then inverted with a TCC74HC14 Schmitt trigger, followed by LED/330R resistor:
(text on image has been corrected)
Datasheet says negative threshold is 1.6V at 4.5V. This is USB 5V, so 1.8-1.9V seems ok to me.
Last edited by Demon; - 11th June 2024 at 04:02.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
What a magic tool Oscilloscope is, right?
Ioannis
Darn tootin' right.
It's nice to finally use it as a diagnostic/testing tool. The scope has always been a mystery to me. I've always wanted to use one, but never had any electronics training. So it's slow; getting old and a worsening memory doesn't help, but help from you folk make it fun.
One thing is for sure, I wouldn't hire me to do this stuff.![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Your waveforms seem to indicate that you might benefit from adjusting the trimmer capacitor on your probe(s).
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Bookmarks