Hey guys, I'm trying to ID some logic in a circuit. There are three chips I need to ID.

The first has 3 pins, and has "12W" and "54" written on it. The "54" is written 90 degrees anti-clockwise after the "12W".

The second has 3 pins and says "340 J" on it.

The last has 8 pins and says "MXAE" written on it, with "T01C" written underneath that.

Not much to go on, I know, but any suggestions are welcome.