AT28C16 EEPROM learning experiments | Page 3 | on ElectriciansForums

Discuss AT28C16 EEPROM learning experiments in the UK Electrical Forum area at ElectriciansForums.net

_q12x_

DIY
Joined
Jan 22, 2021
Messages
587
Reaction score
212
Location
New York
Thanks to mister @marconi , I received his chip AT28C16 gift from England !
I will start to make the 5x7 led matrix project that you did.
I will make it alone as much as I can (as usual). And I will ask you for clarifications on the way.
 
Swap the cmos AND gate for the circuit shown in the attachment. This circuit makes a 2 input AND gate from two NAND gates. I think you have two TTL nand gates spare in ic J33 a 7400.
 

Attachments

  • [ElectriciansForums.net] AT28C16 EEPROM learning experiments
    97385337-A2CB-47FA-B1A1-25A9F16CF3E9.jpeg
    259.2 KB · Views: 20
A new AND Gate , a new breakthrough ! But still not good.
Now Im trully desperate. I have NO idea what to do next.
Please see this small video here and tell me what you think.
The discrete diode AND gate will not work because when its inputs are connected to 0V, the output does not become 0V ie logic 0. If you study my diagram you will see that the output of CMOS is like a switch and the two resistors. When the output is logic 0 a current will flow creating a voltage drop Vx and there will be the forward voltage Vf = 0.7V across the silicon diode. Thus Vo = Vx + Vf = Vx + 0.7. For TTL 74LS the maximum voltage which will interpreted as a logic must be less than 0.8V. You can see then that this circuit cannot produce a logic 0 when both inputs either or both inputs are logic 0 - the output will always be greater than 0.8V. It might work if you used germanium diodes which have a Vf of 0.2V. But see my later post about using two 7400 NAND gates.

PS: You also have an output pin loading problem because you drive the LEDs directly from them. This will disturb the voltages at their output in logic state 1 since you turn on the LEDs then. Better practice is to drive each LED via a buffer gate. The buffer gate and LED circuit I use is in the second attachment. I wire the LED like this from the 5V rail because generally logic gates can 'sink' more current to the 0V rail than they can 'source' current from the 5V rail. I leave you to look up the terms sink and source.
 

Attachments

  • [ElectriciansForums.net] AT28C16 EEPROM learning experiments
    A612A9C0-400E-415A-A531-92F95C00F6E1.jpeg
    350.4 KB · Views: 18
  • [ElectriciansForums.net] AT28C16 EEPROM learning experiments
    CEB0AD0E-C53F-4EF4-845B-36F084009813.jpeg
    272 KB · Views: 19
Last edited:
Ive noticed the HIGH voltage is 3.5V when the power supply is at 5V.
I push up to 6V the power and the HIGH become 4.5V, very close to 5V.
But still no effect. I reverted to 5V as it was.
 
I told you, this 7493 counter needs something 'special' on its R01. As you remember from my previeous videos, if I give it a direct metal wire link to other pins, it is working without any issues. Im thinking maybe the voltage is too low, being absorbed by the AND gate and not enough to drive the pin of the counter....Im thinking a transistor to buffer up the voltage?
 
😀 Please see video of your circuit slightly modified counting states 0 to 6 and then resetting and repeating. It is important that Ro1 and Ro2 go high and low at exactly the same time so that all four ff are reset to 0 at the same time too.

You may find two 2 input CMOS AND gates or the 3 input diode circuit will do what my 4 NANDS do below - to AND together Qa, Qb and Qc.

Note well please that the far right gate is a NAND - I missed off its small circle on the output.
 

Attachments

  • IMG_0860.mp4
    16.5 MB
  • [ElectriciansForums.net] AT28C16 EEPROM learning experiments
    979367DA-5A1C-4D6A-9E4D-0E0CDB98716D.jpeg
    385.4 KB · Views: 22
Last edited:
counting states 0 to 6 and then resetting and repeating

yes, indeed it is counting to 7, 6 visible but 7 resets to 0 but is still a 7.
if you start counting from 0 to 6, you get 7 counts.
Note well please that the far right gate is a NAND - I missed off its small circle on the output.
ok so 4 NAND Gates. Got it.
Glad that you made it work !!!! I was out of any ideas.
Will see if it will work on mine now.
Let me try it quickly in the simulator first to confirm it.
then I will get into real thing.
 
While at this stage... can you explain to me how you think? How is your logic about these logic gates? How did you managed to come to this circuit? The logic before making the circuit ! What you were thinking?
 
While at this stage... can you explain to me how you think? How is your logic about these logic gates? How did you managed to come to this circuit? The logic before making the circuit ! What you were thinking?
The 4 Nand gates are used to make two 2 input And gates. If you study the circuit you can see how first Qa and Qb are combined by And. The output of this And is an input to the second And gate along with Qc. The second and gate produces a logic 1 when Qa, Qb and Qc are all logic 1 to send a reset pulse to R1 and R2.

Why it matters to connect R1 and R2 together is because we have to ensure that the reset inputs go to logic 1 and logic 0 at exactly the same time. There is actually rather more technical detail but forgive me for saying it would not be easily understood by you now. Just to mention that propagation delays, assertion and de-assertion durations for the reset signals, reset recovery times, meta-stable states of the flip flops and the timing of state changes including of the clocks ClkA and ClkB come into play. Things happen very quickly inside the 7493 but not instantaneously - there is sequencing of internal state changes which take a finite time to complete and are ensured by the modifications I have shown you.
 
Last edited:
Why it matters to connect R1 and R2 together is because we have to ensure that the reset inputs go to logic 1 and logic 0 at exactly the same time.
From that entire explanation, what is trully important to me and actually explains a behaviour, a cause and effect if you will, is ONLY this proposition. Try to concentrate on this kind of explanation at least with me. To advance faster and further !!! Its our only goal, right?
 

Reply to AT28C16 EEPROM learning experiments in the UK Electrical Forum area at ElectriciansForums.net

Similar Threads

  • Question
Hello fellow sparks, I’m looking to do my testing and inspection course which starts on the 30th of April, but I have not got much testing...
Replies
0
Views
514
Switch by the door, pendant holder and a 100W bulb, some will remember, others weren't born yet when it went out of fashion, but this was the...
    • Like
Replies
0
Views
178
  • Article
Amazing, very informative and brilliant system.
Replies
1
Views
1K
Thanks all for your comments, advice and suggestions. The following is probably pretty boring for most, and is simply a summary of how the job...
Replies
8
Views
487

OFFICIAL SPONSORS

Electrical Goods - Electrical Tools - Brand Names Electrician Courses Green Electrical Goods PCB Way Electrical Goods - Electrical Tools - Brand Names Pushfit Wire Connectors Electric Underfloor Heating Electrician Courses
These Official Forum Sponsors May Provide Discounts to Regular Forum Members - If you would like to sponsor us then CLICK HERE and post a thread with who you are, and we'll send you some stats etc

YOUR Unread Posts

This website was designed, optimised and is hosted by untold.media Operating under the name Untold Media since 2001.
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock    No Thanks