terenceang / SDisk2

SD card interface for Apple 2 computers
24 stars 5 forks source link

Tactile switches question - Can I just wire them to active high #6

Closed mamejay closed 6 months ago

mamejay commented 1 year ago

Hello there, I am wanting to make a version of this using SMD components as much as possible. I read through your firmware notes and you mention tactile switches. Can I just wire them up to VCC and keep them active high similar to you design? Do you see this as being a problem at all?

Thanks

JPT77 commented 1 year ago

My exact question. Did you find a solution yet?

mamejay commented 1 year ago

Did not get an answer. I have PCB's and all parts and just need to assemble a board and test. Hoping to get this done in the next week or so and see what happens with the buttons.

Silicon-Surfer commented 1 year ago

The touch switches are configurable but by default they pull the output high, and they work in this circuit that way. So you can just replace them with mechanical switches connected to VCC.

mamejay commented 1 year ago

Oh. I have my switches pulled connected to ground. I am sure I read you can recompile the code to work with switches being pulled low to enable.

JPT77 commented 1 year ago

Cool. Silicon-Surfer could you please share your board through github? When you are sure it works... I do not want to reinvent the wheel another time ;)

mamejay: Yeah, my guess was to wire the switches to ground too, because you can enable the 20k pullups in the atmega if they aren't already. Do you need to put another resistor between switch and ground? (Sorry, I am a total newbie)

Just don't understand the code, though. I am a total C illiterate ;)

mamejay commented 6 months ago

Cool. Silicon-Surfer could you please share your board through github? When you are sure it works... I do not want to reinvent the wheel another time ;)

mamejay: Yeah, my guess was to wire the switches to ground too, because you can enable the 20k pullups in the atmega if they aren't already. Do you need to put another resistor between switch and ground? (Sorry, I am a total newbie)

Just don't understand the code, though. I am a total C illiterate ;)

@JPT77 I have forked this repo and uploaded my Eagle schematic and PCB. Also have updated hex file, compiled to work with the tactile switches.