Using a logic probe...

chubsta

Active member
Feedback
4 (100%)
Credits
547CR
OK, time to sort Joust out - it has a fault where some colours are missing.

The manual says that it is likely to be a fault with chips 1a, 1b, 2b or 2c. I have also been advised to check 3 transistors which are near those chips.

I will just replace the transistors as that is easy enough, however if possible i would like to check the chips first before i go replacing them.

I have looked up how logic probes work so have a little idea, but i am still confused as to what readings i would expect from the chip.

the chip i will be testing will be a 74ls374 "dual d-type flip flop", i have looked at the datasheet for it and am still non the wiser as to what the logic probe will do to show the chip is working or not.

Any advice before i go blindly poking about? (Im sure ill short it anyway but what the hell!)
 

trm

Who loves you, and who do you love?
Feedback
2 (100%)
Credits
2,877CR
Hi dude,

Welcome to becoming a board fixing pro!

This is the datasheet I'm using in case you want to open it http://lois.ultrax.org/trmatthe/forumimages/74LS374.pdf

First decoding the datasheet.

74LS374 is a flip flop (which I never thought a very helpful explanation) also known as a latch (which makes much more sense). These chips will latch (freeze, hold, stick) their output pin to the state of the input pin when a certain condition occurs.

From the datasheet description:

3-state octal d-type edge-triggered flip-flop.

3-state: this means the outputs can be either high, low or Z. The first two are obvious but Z state aka high impedance means they can go into a don't care, don't affect the bus mode. Wouldn't worry about this atm.

octal: there are eight of them.

d-type: there are a few types of flip-flop which are controlled differently and have different uses. A d-type flip flop has a data input which is copied to the output whenever a clock pulses. This is a pretty decent explanation of the other types http://www.dummies.com/how-to/content/digital-electronics-types-of-flipflop-circuits.html

edge-triggered: the flip flop carries the input to the output every time there is a clock level transition, so when the clock goes from low to high the output Q will be set to the state of the input D.

The truth table (sometimes called function table) for a logic chip shows what happens for each of the input states. This is key to understanding what the chip does and will be present on all datasheets.

74ls374_truthtable.jpg


/OC - Output Control is pin 1 and is an active low signal. It causes useful things to happen when it's low.

CK - Clock is pin 11. It synchronises all activity of the chip.

D1-D8 - arrayed over the chip, these are the data inputs.

Q1-Q8 - again arrayed over the chip, these are the latched outputs.

Line 1 of the truth table shows that when /OC is low, the clock is on a rising edge and a data input is high, the corresponding data output will also be high. So if /OC is low, D1 is high, CK is pulsing then Q1 will be high.

Line 2 shows that if /OC, CK are the same as before but a data input is low, the corresponding data output will also be low. So /OC low, D1 low, CK pulsing, Q1 will be low.

Line 3 shows if /OC is low, CK is low and not pulsing then the data input is irrelevant, the output will be whatever it was before the clock stopped.

Line 4 shows if /OC is high, then the CK and data input are irrelevant and output will be Z state which means it's not outputting anything and isn't affecting anything it's wired to. Kind of in sleep mode.

To recap the key points, /OC is the master enable signal and is active low as indicated by the / symbol. If it's not low, the '374 isn't doing jack. When /OC is low and you have a working clock, the input data will be copied to the output data.

This chip doesn't sound like it's very useful - input copied to output and that's it? But often the CK signal will be controlled by another chip and won't be a regular clock such as you'd find feeding a CPU. So you could use this by feeding the input states you want, pulse CK and whilst CK doesn't pulse, the Q1-8 outputs will be latching the data you setup, which gives opportunity to do something else on the input side. I suspect this is what it's used for in the video part of Joust.

Next post how to logic probe this, but first I'm gonna find schems.
 

chubsta

Active member
Feedback
4 (100%)
Credits
547CR
thanks for such a detailed reply, all seems a bit much at the moment but i just need to take the time to understand it - the way i see it is if other people can do it there is no reason i wont be able to!
 

chubsta

Active member
Feedback
4 (100%)
Credits
547CR
Same here, I have a probe sat oing nothing because I have no idea how to use it! Might set up a jamma test rig nd grab a chep board to experiment with
 

trm

Who loves you, and who do you love?
Feedback
2 (100%)
Credits
2,877CR
Right, found some decent schematics at the mirror I host for ArcArc http://ultrax.org/arcarc/PDF_Arcade_Williams/Joust_Drawing_Set_(16P-3006-103%20Rev%20A)_Dec_1982.pdf which are way better than the woodcuts I found at PDFTextFiles :)

PDF page 5 is the one we want. Zoom it big and we're focusing on the lower right section reproduced here.

joust_vid_out_clip.JPG


Working back from the 74LS374 at 1A it functions a little bit like this:

'374 @ 1A has its pin 11 CK input fed at 6 MHz from a '74 @ 4D. This should be a strong glow from Pulse and equal Hi/Lo. We know this is working because without this there would be no video.

The outputs (Q1-8 in the datasheet earlier) pins 19, 2 & 5 go through resistors (google resistor ladder) and feed the red transistor. Pins 16, 15, 6 do the same for green, and pins 9 & 12 feed blue. You should see Pulse, Hi & Lo for all of these. Note these are all outputs and by convention are normally drawn on the right hand side of an IC on schematics to make it simpler.

Input side (D1-8 in datasheet) has pins 18, 3 & 4 providing the red data input, 17, 14 & 7 providing green input and 8 & 13 for blue. These should pulse the at the same rate as their corresponding Q outputs on the other side of the latch.

Pin 1 is /OE (output enable, aka /OC output control) and is wired to ground as is pin 10 ground, so these will show no Pulse and only Lo.

If you've got good Pulse on the above D and Q pins then it's showing that the latch is being fed data and is carrying it through to the outputs. An inactive Q pin means no data is being output, either because no data is going to the corresponding D input (is D dead too?), or the latch is buggered on that flip-flop (if D=Pulse, Q output must be knacked).

Feeding the latch are a pair of 7489s @ 1B/2B which are 64 bit RAMs addressed as 16x4bit words. I've never seen these in the wild before but I do like the idea of a 64 bit RAM chip :)

These have 4 address input pins 1, 15, 14 & 13 (so you can select addresses from 0000 binary to 1111 binary, which corresponds from 0 decimal to 15 decimal which is 16x bit in the 16x4bit words I mentioned above).

They have 4 data input pins on 4, 6, 10 & 12 which are part of the Data Bus as shown on the schematics. The 4 data pins make up the x4bit part of the 16x4bit description - 16 slots of 4 bits capacity each.

They have 4 data out pins on 5, 7, 9 & 11 which provide the inputs to the '374 we just checked out. As these chips are only 4 bit data there are a pair, each handling one half of the 8 bits of video data.

Pin 3 is a /Write control fed by the OR gate @ 6E. Pin 8 is ground and pin 2 is wired to ground.

Briefly, image data is zipping over the data bus which is wired to the '89s inputs. When an address is provided on the address input pins, and pin 3 /WRITE goes low (active low signal) the 4 bits on the data input pins are stored at the address set by the address pins.

To get the data out, the address is again provided on the addr inputs and /WRITE is pulled high, causing whatever data was stored at that address to be written to the data outputs.

There's a little wrinkle in that the data is written in what's known as complemented format due to how these chips work. That just means a 0 comes out as a 1 and vice versa. But don't worry about that.




Probing the 7489s - this will be the same for both so do one first then the other. Pin 3 /WRITE will be very active, so a lot of Pulse and probably equal Hi/Lo. Addr input pins 1, 15, 14 & 13 should Pulse lots too. Data input pins 4, 6, 10 & 12 will Pulse lots, as will data out pins 5, 7, 9 & 11. Pins 8 ground and 2 won't Pulse and will be Lo.




Any pin which isn't pulsing, particularly on the output side indicates a fault.




We know that the 7432 OR @ 6E is working because we'd have no video if it wasn't generating /WRITE to copy data from the video data bus into the 7489 RAMs.




This only leaves the 74257 @ 2C which is a quad multiplexor. The datasheet for this looks a little hairy initially but it's pretty simple.




It's a group of four, two-input multiplexors. It has two control lines: /OC - Output Control and Select. /OC is an active low 'master' control. If this isn't low, then the all outputs are Z state. If /OC is low, then Select controls whether InputA or InputB is copied to output Y.




It has four groups of InputA, InputB and OutputY. If /OC is low and Select is low, InputA is copied to OutputY. If /OC is low and Select is hi, InputB is copied to OutputY.


This multiplexor is used to generate the addr inputs for the pair of 7489 RAMs. /OC is wired low so the chip is always active and depending on whether Select on pin 1 is hi or low, the Y outputs which make the RAM addresses will either copy data from the serial0, 1, 2 & 3 lines or from A0, A1, A2 & A3 on the address bus.





Probing this you should see fast Pulse on pin 1 Select, fast Pulse on pins 2, 5, 11 & 14 (address bus feeds), fast Pulse on 3, 6, 10 & 13 (serial0-3 feeds) and very fast Pulse on output pins 4, 7, 9 & 12. If any of these are dead there's a fault.




Right, my brain is getting a bit spongy so I'm going to wrap up with what I think you'll find based on the photo you uploaded.




Again, my commentary is working back from the outputs of the 374 @ 1A. I think you'll see pulses on all of the output pins - you clearly can generate red, green & blue, and that needs to come from the 374 outputs.




The pair of RAMs @ 1B/2B - these take their data from the data bus and I think you'd have game crap-out problems if this bus was missing signals so I think the data bus is good. You're not missing any of the three primary colours: the RED feed into 374@1A comes from 89@1B so the 89's outputs are good for them. The GREEN feed into 374@1A comes from both 89@1B and the 89@2B so I think those outputs are good too. And you have BLUE which is fed into the 374@1A from the 89@2B so that's outputting good. All of which suggest to me the 89s are doing their thing.




This leaves the multiplexor @ 2C and I think this is where the fault lies. 2C generates the addresses that are used when image info is being read into the RAMs and written back out. If the address lines aren't being setup properly, data that's being fed from the data bus is going to be overwritten e.g. because the address isn't increasing/decreasing and it's not going to be outputted to the 374@1A when it should because it's not present in the RAMs.




Whether the fault is that a Y output on 2C has died, or whether some of the input lines are duff I can't tell, but I'd expect that the A inputs from the system address bus are good because a knacked address bus would probably crash the game (I'm assuming throughout that the address bus and data bus are the CPUs addr/data busses too). I don't know what the serial0-3 lines come from so it's possible one or more could be dead without killing the game and just knackering up the address generation to the RAMs.




Hopefully you'll find a dead/stuck (Hi or Lo) pin of a Y output of 2C. If so, there's your problem :)




Finally, I probably should mention how to use the logic probe
smiley36.gif
Connect the red & black clips on it to 5V and GND respectively. Power on the game board and touch the probe tip to each of the pins. If it has a TTL/CMOS switch, set it to TTL (this sets the voltage levels that are considered Hi or Lo). You'll have three LEDs - Pulse, Hi & Lo. A solid Hi or Lo indicates an unchanging level. Touching power pins will always give you a solid Hi, touching ground will give you a solid Lo. The Pulse LED normally flashes at a rate relative to how fast the signal is changing. A very fast changing signal will give you a bright Pulse and also some illumination to Hi & Lo. A pulsing signal that's mainly Lo but still pulsing will give you Pulse, a brighter Lo and a dimmer Hi. Conversely, a pulsing signal that's predominantly high will give you Pulse, bright Hi and dimmer Lo.





I've had a read-back and I don't think I've made any egregious errors, but it's half two and I've got to be up soon so hopefully I've not written crap. I'd definitely recommend googling for the chip datasheets when you're probing as alongside these instructions they'll give you an idea what the chip is doing even if it doesn't yet make complete sense.




Good luck and report back!




tim
 
G

Guests

Guest
Great thread you guys!

It has to be said Timbo.... you're than man for this!

Excellent!

*edit - not forgetting Mike (Macro) of course. You guys are well clued up on this stuff!*

PAC-MAN2013-10-18 11:31:55
 
Top