Electronics ru
Advanced Search +
Go Back   RadioLocman Forum > Electronics and ... > Projects and Advices

Projects and Advices Schematics and projects for elrctronic engineers.

Thread Tools Search this Thread
Old 11-14-2015, 08:51 AM   #1
Join Date: Oct 2013
Posts: 58
Anatoly is on a distinguished road
Default Need a simple latch circuit using logic gates

In my current project, a 3 to 8 decoder that takes input from a PICAXE 08M2, splits it into 2 sets of 4 outputs (from the 8) and powers a 4x4 array of LEDs. I came across a problem, the 3 to 8 decoder (I built from inverters and 2 input AND gates) can only output one thing at a time, so because I have 4 total outputs from my picaxe 08M2 I can use it with my passive matrix like so:
output column controller 'pin' (1-4)
put into latching circuit with 'timer' ouput from picaxe
stop outputting column controller pin
latch stays on as long as latch circuit gets 1 of 2 inputs
ouput row controller pin (5-8)
hold for as long as needed
(the timer tells the circuit how long to hold the column controller pin)

Does that make sense?
I'll supply a schematic if it's critical but these previous parts of the circuit aren't important to me, the important thing is the latching part.
Think of it like I get 2 inputs, and I want to hold them as long as one of the two is on. Then output that to an LED.

My idea is to use an AND gate, and feed the output back into the input via a diode so that it will stay on. Here's a schem:
Here's a link instead

The problem with this circuit is with S1 I think, because if I use a switch and try the circuit, if it's on, it stays on as long is S2 is closed the whole time. That's just what I want.
But, if I use an automated on-off system via a uController it doesn't work (except by accident once, and I can't replicate). A new idea comes to mind to use an OR gate and feed that into the place of S1, will that work? Does anyone know why the AND latch doesn't work if it's input is from an AND gate that gets it's input from a picaxe? PLEASE help! It's day 4 of this project and I'm exhausted, this is as close to the last step as I've ever been.
Anatoly is offline   Reply With Quote
Old 11-16-2015, 02:44 PM   #2
Senior Member
Join Date: Oct 2013
Posts: 128
symbol is on a distinguished road

The schematic doesn't show in the forum. Is it on a server with limited access?
symbol is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Need 500pF 10Kv doorknob capacitors Anatoly Electronic Components 0 08-10-2015 05:28 PM
Discussion: Simple circuit indicates a low battery Radiolocman Robot Projects and Advices 2 02-10-2015 05:37 PM
Discussion: Simple circuit lets you characterize JFETs Radiolocman Robot Projects and Advices 1 12-13-2013 04:45 PM
Discussion: Simple Circuit Communicates Over Low-Voltage Power Lines Radiolocman Robot Projects and Advices 1 12-01-2013 05:41 PM
Discussion: mini Logic analyzer on AVR Microcontroller Radiolocman Robot Projects and Advices 1 11-24-2013 07:59 PM

All times are GMT. The time now is 06:07 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Slices ↓
Radiolocman facebook Radiolocman twitter Radiolocman google plus