I was recently helping a guy on another forum troubleshoot some weirdness on an MK boot. He had some questions about a chip on the board so I wrote a quick primer on reading datasheets. I've left the post mostly unedited to show context - we were talking about some 244/245 buffers that were getting warm and a bit about what they're used for.
If anyone has another datasheet they want me to take a stab at, post up a link or the IC p/n and I'll have a go. I know many here will read this and think "dur" but when I started out I realised understanding the datasheets were about 40% of fixing a board so hopefully this'll help some of our members who are just starting out.
Questions etc very welcome.
- - -
Good spot on the buffers. The 245 is a bi-directional buffer and most of the info on the datasheet can be ignored but the useful part is the pinout and the truth-table that I've copied below:
The proper title for the chip is a bi-directional octal line driver/buffer with tri-state outputs.
That is EEng geek for the chip has eight (octal) internal units, "line driver" means it takes a maybe weak input and restores it back to proper signal strength on the corresponding output, buffer = just repeating the line driver bit to sound cool
, tri-state = the signal pins (so all apart from power and ground) can be either logic high, low, or Z (aka high impedance).
Z is where the chip doesn't want to pass any signal on to whatever it's wired to, so it's kind of a "I'm not here, nothing is wired to me" state. And the bi-directional bit is what makes it different from 74LS244 - it can route data from the A to B pins, or you can route from B to A. This is controlled by the state of pin1 - DIRection. An LS244 only routes data from A to B so is a one-way setup instead.
Obviously the pinout explains which pin does what. On all the 74 series logic you're likely to see ground (aka 0volts or Vss in geek) is the bottom right pin, and power (aka 5volts or Vcc in geek) is the top left. Any board voltage measurement should be taken across these pins as it's the best reflection of what the chips are truly getting.
The truth table explains the function of the chip. /E means the same as E with a line above it and it means active low. Normally a pin is active when the signal is logic high, but an active low pin is asserted when it's low. You'll see things like /RESET /OE /CE and so on - they are all enabled when a logic low is present.
Decoding the truth table into English shows:
When /Enable is Low and DIRection is Low then data flows from all B pins to all A pins. So B1 is wired to A1, B2 to A2 and so on.
When /Enable is Low and DIRection is High then data flows from all A pins to all B pins. So A1 is wired to B1, A2 to B2 and so on.
When /Enable is High and DIRection is X (X means don't care) then all A pins are disconnected from all B pins. So if /Enable isn't low, the chip doesn't pass any signals at all.
Referring back to the pinout we can see that when pin 19 /Enable is low (therefore active, 'cos it's active low) and pin 1 DIRection is High, any data present on pins 2-9 will be copied to pins 18-11 respectively.
And that is what a 245 does
Once you get the hang of it then googling "74LSxxx datasheet" for any chip you find will get you a similar doc that decodes in the same way; it's fine once you get the hang of it.
Going back to your board, if you use the continuity test (aka beep test) on your meter you will find that the JAMMA edge connector pins corresponding to the joystick or kick harness pins route to 245s, that /Enable is probably always low (in fact will probably be soldered to ground which is logic Low) and that your joystick/button wires connect to one side (either the A or B side) of the 245 and the other side is connected via more logic to the CPU.
When you push a button on JAMMA, the signal is temporarily grounded so it makes a Low appear on the 245 which is then transferred to the other side and can be seen by the CPU - this is the buffer part of the IC description as it's buffering the signal and restoring it to normal TTL logic levels.
If you can find a pin which goes low on your logic probe or test meter whenever you hold a button, figure out the other side pair (eg A4 to B4) and probe the far side pin whilst tapping the button - you'll see the buffer working by transferring the logic state over.
As well as acting as input buffers they're also used to buffer between ROM/RAM/CPU/etc. In a simple system, a CPU will sit between ROM and RAM. The sprites are in ROM and the RAM produces what you see on screen. To make a sprite appear on the screen the CPU needs to copy the data from ROM into RAM. These can't all be wired together as you'd get an issue called fan-out which isn't very relevant at the moment, but you need a way of letting the ROM/CPU/RAM see each other, and only when it's appropriate.
If you have the CPU sit in the middle and have a buffer between CPU and ROM on one side, and CPU and RAM on the other you can wire the CPU so it controls the enable lines when it wants to talk to the ROM or the RAM, so only one is enabled on the data bus at any time.
I've yaddered on about that because it goes some way to explaining why you had hot 245s. A 245 which is only buffering joystick isn't going to get many changes between high and low per second, even if you're a kick-ass player
But a 245 which is constantly buffering data between a CPU and ROM/RAM will have millions of logic state changes each second, and each transition generates a tiny amount of heat, so you'll find that busy 245s (and indeed any busy logic, such as RAMs) get quite warm. So unfortunately it's not a cast-iron reliable method of identifying screwed chips.
What works much better is to use a logic probe and the datasheet pinout and check that if you've got logic state transition on one side of a buffer (e.g. an A pin) you've got corresponding activity on the other side IF the /Enable and DIRection pin (for a 245, as 244s are unidirectional) show the right state for data transfer as explained above.
trm2020-10-07 00:10:56
If anyone has another datasheet they want me to take a stab at, post up a link or the IC p/n and I'll have a go. I know many here will read this and think "dur" but when I started out I realised understanding the datasheets were about 40% of fixing a board so hopefully this'll help some of our members who are just starting out.
Questions etc very welcome.
- - -
Good spot on the buffers. The 245 is a bi-directional buffer and most of the info on the datasheet can be ignored but the useful part is the pinout and the truth-table that I've copied below:
The proper title for the chip is a bi-directional octal line driver/buffer with tri-state outputs.
That is EEng geek for the chip has eight (octal) internal units, "line driver" means it takes a maybe weak input and restores it back to proper signal strength on the corresponding output, buffer = just repeating the line driver bit to sound cool
Z is where the chip doesn't want to pass any signal on to whatever it's wired to, so it's kind of a "I'm not here, nothing is wired to me" state. And the bi-directional bit is what makes it different from 74LS244 - it can route data from the A to B pins, or you can route from B to A. This is controlled by the state of pin1 - DIRection. An LS244 only routes data from A to B so is a one-way setup instead.
Obviously the pinout explains which pin does what. On all the 74 series logic you're likely to see ground (aka 0volts or Vss in geek) is the bottom right pin, and power (aka 5volts or Vcc in geek) is the top left. Any board voltage measurement should be taken across these pins as it's the best reflection of what the chips are truly getting.
The truth table explains the function of the chip. /E means the same as E with a line above it and it means active low. Normally a pin is active when the signal is logic high, but an active low pin is asserted when it's low. You'll see things like /RESET /OE /CE and so on - they are all enabled when a logic low is present.
Decoding the truth table into English shows:
When /Enable is Low and DIRection is Low then data flows from all B pins to all A pins. So B1 is wired to A1, B2 to A2 and so on.
When /Enable is Low and DIRection is High then data flows from all A pins to all B pins. So A1 is wired to B1, A2 to B2 and so on.
When /Enable is High and DIRection is X (X means don't care) then all A pins are disconnected from all B pins. So if /Enable isn't low, the chip doesn't pass any signals at all.
Referring back to the pinout we can see that when pin 19 /Enable is low (therefore active, 'cos it's active low) and pin 1 DIRection is High, any data present on pins 2-9 will be copied to pins 18-11 respectively.
And that is what a 245 does
Going back to your board, if you use the continuity test (aka beep test) on your meter you will find that the JAMMA edge connector pins corresponding to the joystick or kick harness pins route to 245s, that /Enable is probably always low (in fact will probably be soldered to ground which is logic Low) and that your joystick/button wires connect to one side (either the A or B side) of the 245 and the other side is connected via more logic to the CPU.
When you push a button on JAMMA, the signal is temporarily grounded so it makes a Low appear on the 245 which is then transferred to the other side and can be seen by the CPU - this is the buffer part of the IC description as it's buffering the signal and restoring it to normal TTL logic levels.
If you can find a pin which goes low on your logic probe or test meter whenever you hold a button, figure out the other side pair (eg A4 to B4) and probe the far side pin whilst tapping the button - you'll see the buffer working by transferring the logic state over.
As well as acting as input buffers they're also used to buffer between ROM/RAM/CPU/etc. In a simple system, a CPU will sit between ROM and RAM. The sprites are in ROM and the RAM produces what you see on screen. To make a sprite appear on the screen the CPU needs to copy the data from ROM into RAM. These can't all be wired together as you'd get an issue called fan-out which isn't very relevant at the moment, but you need a way of letting the ROM/CPU/RAM see each other, and only when it's appropriate.
If you have the CPU sit in the middle and have a buffer between CPU and ROM on one side, and CPU and RAM on the other you can wire the CPU so it controls the enable lines when it wants to talk to the ROM or the RAM, so only one is enabled on the data bus at any time.
I've yaddered on about that because it goes some way to explaining why you had hot 245s. A 245 which is only buffering joystick isn't going to get many changes between high and low per second, even if you're a kick-ass player
What works much better is to use a logic probe and the datasheet pinout and check that if you've got logic state transition on one side of a buffer (e.g. an A pin) you've got corresponding activity on the other side IF the /Enable and DIRection pin (for a 245, as 244s are unidirectional) show the right state for data transfer as explained above.
trm2020-10-07 00:10:56