r/beneater • u/z80RM • 10d ago
8-bit CPU Testing registers problem
Im afraid im stuck. Ive wired up register a and register b along with the ALU. Im trying to test the registers first before moving on to test the ALU. Ive sent a signal to the bus (using red jumper wires) 10101010. This is clearly on the bus because the bus leds light up to confirm this. The problem i have is that the leds on register A dont match the leds on the bus. Register a shows 01010101.
Im concerned with fixing register a at the moment. Can anyone say why the leds dont match what's on the bus? Register b seems to have the same issue. The first bit should be 1 but it shows 0.
What is the correct procedure for testing both registers?





7
u/The8BitEnthusiast 10d ago
As a hard rule, when you hard wire the bus bits to vcc or gnd with these red jumpers for the purpose of inputting a value into registers, ALL outputs of the LS245s on the board must be disabled, i.e. their pin 19 must be connected to Vcc. On the picture, it looks like the 245s on reg A, reg B and ALU are enabled while the red jumpers are connected. If I'm right, this creates a potentially damaging electrical conflict on the bus. Make sure you disable the LS245 outputs when using the red jumpers to "set" values on the bus.
It also seems that the LS245 wire connections to the bus are reversed, which would lead to reg A and reg B values to be reversed as well when loaded. For instance, LS245 pin 11 should connect to the least significant bit of the bus (far right).
It looks like you did OK loading a value in the registers, so with the these two things fixed, you might be good. Just remember to always disable the LS245s when manually entering a value on the bus.
Hope this helps