English Amiga Board


Go Back   English Amiga Board > Support > support.Hardware

 
 
Thread Tools
Old 22 July 2009, 15:37   #1
kipper2k
Registered User
 
Join Date: Sep 2006
Location: Thunder Bay, Canada
Posts: 4,323
using a momentary switch and logic "And" chip

Hi all,

i am trying to create a simple circuit so that when i press a momentary switch with 5V on it it will cause a logic chip to output 5V and remain on once the momentary switch has been released.

Heres my thoughts, Take an "And" logic chip, feed one input with 5V continuous, and the other input wired to the momentary switch with 5V on it. pressing the momentary switch sends 5V to the other input and will cause the "And" chip to output 5v. Feed the output back to the (momentary switch) input of the "And" chip so once the chip has gone high then hopefully it should remain high until all power is removed, ie, computer shut down

I could then use the 5v output in my main circuit as a control voltage.

I dont have any logic chips on hand to test this theory.

Any thoughts ?
kipper2k is offline  
Old 22 July 2009, 16:52   #2
Photon
Moderator
 
Photon's Avatar
 
Join Date: Nov 2004
Location: Eksjö / Sweden
Posts: 5,604
I guess you've already decided on using a momentary switch even though a normal switch to +5V through a resistor should do what you want.

Me, I'd just be lazy and use a latch http://en.wikipedia.org/wiki/Latch_(electronics)

Remember that different IC families have different foldout (5-20 or so). So you usually can't drive a bus or port with a simple AND chip, let alone power even a LED with it.
Photon is offline  
Old 22 July 2009, 17:14   #3
kipper2k
Registered User
 
Join Date: Sep 2006
Location: Thunder Bay, Canada
Posts: 4,323
Thanks Photon,

This is what i am trying to do. I have a 27c800 EPROM with 2 kickstarts on it. I am looking for a way to use the momentary switch, (which is really tiny and low profile so it can't be accidentally flipped, knocked etc). I have quite a few of these that i salvaged from old floppy drives so i'd like to play and also put them to good use. These little things can be easily placed so they are accessible and look a little tidier than a toggle switch

So heres what i hope should happen...

- Turn on A600 normally and it boots KS 3.1 (lower 512K memory of the 27C800)

- Turn on computer while holding momentary switch, switch can be released as soon as the computer sees 5v. the 5V is tied to the high address line on the 27C800 and will remain high causing the upper 512K of menory (KS 2.05) in the 27c800 to be accessed until computer powers down.
kipper2k is offline  
Old 22 July 2009, 23:45   #4
Shadowfire
Registered User
 
Shadowfire's Avatar
 
Join Date: Aug 2001
Location: Connecticut USA
Posts: 617
Its a simple holding circuit. Be aware that you need a pulldown resistor on the 2nd input to the AND gate (10K to ground should be sufficient) to make sure it powers up in the correct state, and a feedback resistor (~330 ohms) between the output and the input to limt the current when you push the switch, as you are shorting the AND low output directly to VCC when you press the button.
Shadowfire is offline  
Old 23 July 2009, 03:31   #5
kipper2k
Registered User
 
Join Date: Sep 2006
Location: Thunder Bay, Canada
Posts: 4,323
Quote:
Originally Posted by Shadowfire View Post
Its a simple holding circuit. Be aware that you need a pulldown resistor on the 2nd input to the AND gate (10K to ground should be sufficient) to make sure it powers up in the correct state, and a feedback resistor (~330 ohms) between the output and the input to limt the current when you push the switch, as you are shorting the AND low output directly to VCC when you press the button.
Excellent,

Thanks Shadowfire
kipper2k is offline  
Old 23 July 2009, 10:54   #6
RedskullDC
Digital Corruption
 
RedskullDC's Avatar
 
Join Date: Jan 2007
Location: Dorrigo/Australia
Age: 60
Posts: 355
Hi Kipper2k,

Quote:
Originally Posted by kipper2k View Post
Hi all,

i am trying to create a simple circuit so that when i press a momentary switch with 5V on it it will cause a logic chip to output 5V and remain on once the momentary switch has been released.
...
Any thoughts ?
Turning the machine off/on to select the ROM version would be a nuisance.

Suggest you use a 74LS74 flip-flop.

Tie the CLOCK input to the Amiga's *RESET line.

Wire *SET and *CLEAR both to 5v.

Wire your momentary switch to the 'D' input.

Use either the Q or *Q outputs for your high address bit on the eprom, depending on how you have burnt the kickstart images.

When the machine is turned on, or reset, at the rising edge of the *RESET signal, the 'D' input will be sampled.
The flip-flop will stay in the same state till the next reset

Hope this helps,

Red


Fil
RedskullDC is offline  
Old 23 July 2009, 14:22   #7
kipper2k
Registered User
 
Join Date: Sep 2006
Location: Thunder Bay, Canada
Posts: 4,323
Thanks Red,

I'll try this out too.

Thanks

edit. there are a few out there, is this the correct 74ls74 below. I see there are also some with a preset. looks like the same circuit can be achieved using 2 Quad input Nand chips (which i do have kicking around). oops never mind, they are all 3 input Nands on the 74ls74

http://www.datasheetcatalog.org/data.../SN74LS74N.pdf

Last edited by kipper2k; 23 July 2009 at 14:34.
kipper2k is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
"special" chip-mem allocation 68K-ASM Herpes Coders. System 4 13 June 2013 11:42
"Origins" by 4mat (ex-amiga musician's new chip music album) 4mat_ News 8 05 May 2012 15:08
"Ready" Logic Eclipse support.Hardware 9 17 January 2008 12:49
Kickstart ROM chip "390630-02" , for what amiga???? keropi support.Hardware 8 15 May 2007 17:44
Poltergeist-like "ECS Agnus" switch bug MethodGit support.WinUAE 2 12 December 2003 21:33

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:14.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.12666 seconds with 13 queries