Author Topic: 8-bit Computer Register  (Read 9650 times)

0 Members and 1 Guest are viewing this topic.

Online tggzzz

  • Super Contributor
  • ***
  • Posts: 19517
  • Country: gb
  • Numbers, not adjectives
    • Having fun doing more, with less
Re: 8-bit Computer Register
« Reply #25 on: December 21, 2017, 03:50:34 pm »
Okay, so is there any way to troubleshoot the registers using multi-meters :-DMM I am not able to get the correct values from the bus to the register and vice versa.

Make sure you understand VOH VOL VIH VIL listed in the data sheet. You can measure the output voltage with a multimeter.

But a multimeter won't show any transients due to poor construction technique.
There are lies, damned lies, statistics - and ADC/DAC specs.
Glider pilot's aphorism: "there is no substitute for span". Retort: "There is a substitute: skill+imagination. But you can buy span".
Having fun doing more, with less
 

Offline Balakumaran SelvarajiTopic starter

  • Contributor
  • Posts: 26
  • Country: in
Re: 8-bit Computer Register
« Reply #26 on: December 22, 2017, 07:23:51 am »
So does the 74ls245 chip is pulled high or low? and also I referred to the 74ls245 datasheet and it tells me that the VIH Min = 2V and VIL Max = 0.8... and can anybody tell me what is the exact reason behind this problem... I am so confused...
Also, the datasheet is attached below.
« Last Edit: December 22, 2017, 07:34:36 am by Balakumaran Selvaraji »
 

Offline paulca

  • Super Contributor
  • ***
  • Posts: 4055
  • Country: gb
Re: 8-bit Computer Register
« Reply #27 on: December 22, 2017, 09:41:25 am »
I'm confused.  In the original video the yellow LEDs showing the input to the bus are all 0, OFF, nada.  When you set the load enable and pulse the clock the register shows all 0, off, nada.

What's the problem?  More importantly, why do you think the first two LEDs should change and the others remain the same?  Because you pulled them to ground?  What on earth would that do when there is no power on them anyway?  The only thing I can think is that pulled to ground gives a clear logical low, rather than the pretty much disconnected state the others seem to be in.

If those yellow LEDs are showing the state of the bus, then the register is correctly capturing the bus.

Remove all the yellow LEDs.  Wire the odd wires to Vcc and the even wires to GND.  Set the load enable and pulse the clock.  What happens?

EDIT:
Further.  In the second video you posted about the clock problem.  The bus is all 0.  When you enable the load and pulse the clock the register then shows all 0.  That's what's meant to happen!

I currently have the flu and maybe I'm away with the fairies but why would you expect something else in the register?  Where would it get that data from?

Maybe you are trying to load the bus from the register, in which case the direct link to ground without resistor for the first two bits is surely just going to short the bus transceiver output to ground when it sets those outputs high, dropping Vcc into the floor and resetting the logic chips.
« Last Edit: December 22, 2017, 10:01:21 am by paulca »
"What could possibly go wrong?"
Current Open Projects:  STM32F411RE+ESP32+TFT for home IoT (NoT) projects.  Child's advent xmas countdown toy.  Digital audio routing board.
 

Offline Balakumaran SelvarajiTopic starter

  • Contributor
  • Posts: 26
  • Country: in
Re: 8-bit Computer Register
« Reply #28 on: December 22, 2017, 12:29:18 pm »
Okay, so my registers(A,B and Instruction) and ALU seems to be working perfectly fine. But I faced this very problem and would like to know the possible solutions to it :

Scenario:
   So I tried to connect all the led's to ground via some jumper wires and the only power which was to these led's was a common ground from some register. Now, I haven't connected the power as I burnt up one of my led's  :P as passed in too much voltage through it. So, now when I try to connect some of these jumper wires to ground and as well as have my load active in one of the registers, I noticed that the value was not taken by the registers and it defaulted to zero. So, I watched his video(Ben Eater) on "TroubleShooting the ALU" and he seems to get it working perfectly alright. So, I am wondering what might be wrong...  ::)
   
 

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: 8-bit Computer Register
« Reply #29 on: December 22, 2017, 12:43:49 pm »
Your leds have a series current limiting R in their connection, right ?


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 

Offline Balakumaran SelvarajiTopic starter

  • Contributor
  • Posts: 26
  • Country: in
Re: 8-bit Computer Register
« Reply #30 on: December 22, 2017, 12:49:34 pm »
Your leds have a series current limiting R in their connection, right ?


Regards, Dana.

The LED's in my register have them but not the LED's on the bus.
 

Offline ebastler

  • Super Contributor
  • ***
  • Posts: 6510
  • Country: de
Re: 8-bit Computer Register
« Reply #31 on: December 22, 2017, 03:18:47 pm »
Scenario:
   So I tried to connect all the led's to ground via some jumper wires and the only power which was to these led's was a common ground from some register. Now, I haven't connected the power as I burnt up one of my led's  :P as passed in too much voltage through it. So, now when I try to connect some of these jumper wires to ground and as well as have my load active in one of the registers, I noticed that the value was not taken by the registers and it defaulted to zero. 

Sorry, I find your description hard to follow. Can you please try again, and be more specific? What is connected to one side of the LED, what is connected to the other?

Also, *all* your LEDs should be connected via series resistors! Without resistors, you can damage your chips or cause the circuit to work unreliably due to nasty current peaks. You should read up on how to calculate the right resistor value based on the drive voltage, the LED's forward voltage, and the desired LED current. But for the time being, simply use 470 Ohm or so -- much better than connecting them without a resistor!
 

Offline Balakumaran SelvarajiTopic starter

  • Contributor
  • Posts: 26
  • Country: in
Re: 8-bit Computer Register
« Reply #32 on: December 22, 2017, 03:26:30 pm »
I too had that doubt in my mind but when I watched the youtuber's model then I was like, it was working for him but why not me?
I will try to add resistor's and see if the problem resolves.
 

Offline cracked_machine

  • Newbie
  • Posts: 8
  • Country: gb
Re: 8-bit Computer Register
« Reply #33 on: December 25, 2017, 07:34:27 am »
Seriously just buy this https://www.amazon.co.uk/Hobby-Components-24MHz-Logic-Analyser/dp/B00DAYAREW/ref=sr_1_1?ie=UTF8&qid=1514187041&sr=8-1&keywords=logic+analyser

It's less than £15 and you would have resolved the problem by now already...  Is there a reason you are resisting this? :-//
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2416
  • Country: us
Re: 8-bit Computer Register
« Reply #34 on: December 25, 2017, 08:28:52 am »
I too had that doubt in my mind but when I watched the youtuber's model then I was like, it was working for him but why not me?
I will try to add resistor's and see if the problem resolves.

5V LED's can be had with integrated resistors that are not visually obvious, which might explain the confusion: https://www.mouser.com/new/kingbright/kingbright-resistor-LEDs/
It's more expensive than adding the resistor yourself, but having them can make breadboarding easier.
 

Offline Balakumaran SelvarajiTopic starter

  • Contributor
  • Posts: 26
  • Country: in
Re: 8-bit Computer Register
« Reply #35 on: December 26, 2017, 03:52:38 pm »
Okay, So he was not using the LED's with built in resistors as you said. He once mentioned that some of the TTL chips have current limiting resistors on the output so that no resistors are needed :)
 

Offline Old Printer

  • Frequent Contributor
  • **
  • Posts: 747
  • Country: us
Re: 8-bit Computer Register
« Reply #36 on: December 26, 2017, 05:53:10 pm »
 I have watched Ben Eater's logic gate videos to death, but I am still not knlowadgble enough to troubleshoot your problem. I will say that the devil is in the details, and judging by the system he has built from wires and breadboards he has discovered a lot of Devils. Have you watched his video on choosing good breadboards from bad ones?
 

Offline Balakumaran SelvarajiTopic starter

  • Contributor
  • Posts: 26
  • Country: in
Re: 8-bit Computer Register
« Reply #37 on: December 27, 2017, 03:18:56 am »
The problem is resolved few days back. I have no idea what it was....
 

Offline Old Printer

  • Frequent Contributor
  • **
  • Posts: 747
  • Country: us
Re: 8-bit Computer Register
« Reply #38 on: December 27, 2017, 03:34:54 am »
The problem is resolved few days back. I have no idea what it was....

That's too bad, you had a lot of input on that situation, it would have been nice to come away from it with a conclusion, though by reading between the lines it seems possible there was nothing actually wrong, just a different expectation. Rule #1 in troubleshooting - never change more than one thing at a time if you really want to come to a solid conclusion.
 

Offline Balakumaran SelvarajiTopic starter

  • Contributor
  • Posts: 26
  • Country: in
Re: 8-bit Computer Register
« Reply #39 on: December 27, 2017, 07:59:55 am »
Yup, I learnt that when I was troubleshooting the ALU module :)  :-+
 

Offline Nusa

  • Super Contributor
  • ***
  • Posts: 2416
  • Country: us
Re: 8-bit Computer Register
« Reply #40 on: December 27, 2017, 09:54:24 am »
Okay, So he was not using the LED's with built in resistors as you said. He once mentioned that some of the TTL chips have current limiting resistors on the output so that no resistors are needed :)

That may be adequate if all you're doing is displaying the output on the LED. However, if you're also trying to use that output as an input to something else, remember that the diode (that's what an LED is!) tied to ground on that input may pull the voltage down enough to change it's digital value.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf